-
Notifications
You must be signed in to change notification settings - Fork 382
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
Add a non-normative note stating elements in shadow trees aren't exposed as named properties #304
Comments
I don't understand this feedback. This applies to a huge number of APIs. It wouldn't make sense to enumerate them all. Why this one? |
That too. It's a bit strange to explicitly call out this one. Does DOM spec says only nodes that are in the document (i.e. its root ancestor node is the document) are exposed as named properties? |
It seems pretty clear about "active document": https://html.spec.whatwg.org/multipage/browsers.html#named-access-on-the-window-object The only curious thing might be whether an |
It should create a nested browsing context, right? I don't think there is anything special about iframes inside shadow trees. |
Well, if it creates a nested browsing context (and that requires a changed definition of "is in a document" iirc), it would be exposed on |
As the short time fix, we should change |
This is a duplicate of #145 I think. |
I think the following text in the spec
is meant to clarify that elements in shadow trees aren't exposed as named properties on
Window
.Perhaps we want to add an informative note stating that explicitly.
The text was updated successfully, but these errors were encountered: