Skip to content

JQuery Selectors on Gmailr 'body' and 'canvas' objects #5

@JohnYangSam

Description

@JohnYangSam

In main.js:
When trying to access the Gmailr 'body' and 'canvas' objects, it seems that they are only responsive to JQuery calls $("tagname", [object]). Selecting by class or id doesn't seem to return any elements for known id's or classes. Standard Javascript DOM traversal also doesn't seem to work on the objects.

I have been able to reach the DOM using notations such as:

top.document.getElementsByTagName("iframe")[4].contentDocument;

I may just need to dig deeper into the library, but has anyone else found similar issues?

Also, this may take more digging, but I can't seem to find where top is explicitly declared (I was hoping maybe it could be used to add the support for standard Javascript DOM traversal to the Gmailr object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions