-
Notifications
You must be signed in to change notification settings - Fork 1.6k
attachShadow throws type error with document-fragment ShadowRoot #47395
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
attachShadow throws type error with document-fragment ShadowRoot #47395
Conversation
EWS run on current version of this PR (hash b8af91e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe clarify that the fallback is the same as with undefined, namely the shadow host's registry, not the global registry (although often they'll be the same).
Oh, and please don't forget to upstream these tests. |
That's not happens with this code right now. I guess we should fix it in a separate PR. |
b8af91e
to
4931ef5
Compare
https://bugs.webkit.org/show_bug.cgi?id=295174 rdar://154658449 Reviewed by Chris Dumez and Anne van Kesteren. Allow customElementRegistry in ShadowRootInit to be null, in which case, we use the global registry. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/ShadowRoot-init-customElementRegistry-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/ShadowRoot-init-customElementRegistry.html: * LayoutTests/imported/w3c/web-platform-tests/shadow-dom/attachShadow-with-ShadowRoot-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/shadow-dom/attachShadow-with-ShadowRoot.html: Added. * Source/WebCore/dom/ShadowRootInit.idl: Canonical link: https://commits.webkit.org/296853@main
4931ef5
to
ec8e119
Compare
Committed 296853@main (ec8e119): https://commits.webkit.org/296853@main Reviewed commits have been landed. Closing PR #47395 and removing active labels. |
ec8e119
b8af91e