gmailr icon indicating copy to clipboard operation
gmailr copied to clipboard

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

Open JohnYangSam opened this issue 13 years ago • 0 comments

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.

JohnYangSam avatar Aug 13 '12 20:08 JohnYangSam