You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Dart, the above properties do not exist in the generated Native Wrappers, but can be accessed through JsObject ;
Element e = new Element.iframe();
document.body.append(e);
JsObject enative = new JsObject.fromBrowserObject(e);
print (enative['contentWindow']['document']);
print (e.contentWindow.document);
produces:
[object HTMLDocument]
Breaking on exception: Class '_DOMWindowCrossFrame' has no instance getter 'document'.
Same for contentDocument.
The text was updated successfully, but these errors were encountered:
This issue was originally filed by dpidcock...@google.com
I'm trying to access the document element of an iFrame in Chrome.
In Javascript I would try the following :
(frame.contentDocument || frame.contentWindow.document);
In Dart, the above properties do not exist in the generated Native Wrappers, but can be accessed through JsObject ;
Element e = new Element.iframe();
document.body.append(e);
JsObject enative = new JsObject.fromBrowserObject(e);
print (enative['contentWindow']['document']);
print (e.contentWindow.document);
produces:
[object HTMLDocument]
Breaking on exception: Class '_DOMWindowCrossFrame' has no instance getter 'document'.
Same for contentDocument.
The text was updated successfully, but these errors were encountered: