Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document is not a member of WindowBase #9224

Closed
DartBot opened this issue Mar 18, 2013 · 9 comments
Closed

document is not a member of WindowBase #9224

DartBot opened this issue Mar 18, 2013 · 9 comments
Labels
closed-duplicate Closed in favor of an existing report web-libraries Issues impacting dart:html, etc., libraries

Comments

@DartBot
Copy link

DartBot commented Mar 18, 2013

This issue was originally filed by nicolas....@gmail.com


from http://stackoverflow.com/questions/15444109/document-is-not-a-member-of-windowbase

* What steps will reproduce the problem?

IFrameElement iframe = query('#myframe iframe');
WindowBase iframeW = iframe.contentWindow;
var myframeDoc = iframeW.document; // not member error

* What is the expected output? What do you see instead?

I think it should works because, it can write this with javascrit :

var myframeDoc = document.querySelector('#myframe iframe').contentWindow.document;

I'am using build 0.4.1.0_r19425

@kasperl
Copy link

kasperl commented Mar 19, 2013

Added Area-HTML, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Mar 19, 2013

This comment was originally written by antonm@google.com


This is by design: we don't allow cross-frame DOM access. Please, use isolates or postMessage to communicate.


Added WontFix label.

@DartBot
Copy link
Author

DartBot commented Mar 19, 2013

This comment was originally written by antonm@google.com


cc @vsmenon.

@DartBot
Copy link
Author

DartBot commented Sep 11, 2014

This comment was originally written by oking...@google.com


Given this, what is the desired method for decorating an existing page? (One which is external to the dart application - think chrome extension style)

@vsmenon
Copy link
Member

vsmenon commented Sep 11, 2014

Please see 20146 - we're rethinking this limitation.

Currently, you have two options:

@DartBot
Copy link
Author

DartBot commented Sep 11, 2014

This comment was originally written by oking...@google.com


Thanks for fast response, I'll follow that issue.

Option 2 isn't a good option in this case. I really wish the dart APIs were cross-frame here because the js interop is painful :/

@DanielJoyce
Copy link

postMessage has TERRIBLE restrictions,

@zoechi
Copy link
Contributor

zoechi commented Aug 28, 2015

@DanielJoyce Usually it helps to provide concrete use cases where a bug or missing feature blocks you. I'm not entirely sure for this issue though. Looks a bit like a dead horse. But there where quite a few other issues which were finally fixed with nice solutions after a long time.

@DanielJoyce
Copy link

Which might be true. But TypedScript is stealing darts thunder, and with the death of Google Dev Editor, so dies the biggest pressing need for Google to fix the issues inherent in trying to write multi-screen chrome apps.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

5 participants