-
Notifications
You must be signed in to change notification settings - Fork 319
Allow the creation of null registry element and shadow root #1424
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
Conversation
|
@rniwa @annevk here's another PR from what we discussed. May be a dumb question: with this change, we probably no longer want to use null as the default vaule for |
|
You mean someone doing: |
|
This matches my understanding of the first set of changes proposed in #1413 (comment) and agreed to at TPAC. Good job! |
…ing null to createEleent and attachShadow per whatwg/dom#1424 Also update the existing tests to account for the behavior differences.`
…ing null to createEleent and attachShadow per - whatwg/dom#1424 - whatwg/dom#1423 Also update the existing tests to account for the behavior differences.`
annevk
left a comment
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.
Looks good modulo (my) nits.
…ing null to createEleent and attachShadow per - whatwg/dom#1424 - whatwg/dom#1423 Also update the existing tests to account for the behavior differences.`
…ing null to createEleent and attachShadow per (#56108) - whatwg/dom#1424 - whatwg/dom#1423 Also update the existing tests to account for the behavior differences.`
|
OP is just lacking implementation bugs at this point, unless you want to add more test coverage still? |
|
Added the implementation bugs in OP and the test coverage should be good for now. This PR should be ready to land :) |
… part of my earlier nits that went unaddressed)
|
While doing a final check here I noticed that the new logic would end up throwing for the combination of "is" and "customElementRegistry" way too often. While WebKit would not object to that, I doubt that was the intent. I pushed a commit to fix that (and also fix some remaining nits). Did you not yet implement this change perhaps or do we not have good test coverage for this? |
|
Thanks for catching that "is" and "customElementRegistry" combination issue and fixing the nits I missed before! We've yet to implement this change and that was indeed not intended. |
…content attribute and specifying null to createEleent and attachShadow per, a=testonly Automatic update from web-platform-tests Add new tests for customelementregistry content attribute and specifying null to createEleent and attachShadow per (#56108) - whatwg/dom#1424 - whatwg/dom#1423 Also update the existing tests to account for the behavior differences.` -- wpt-commits: cc1c056521abd0ff97456455dbebe113617a2bc1 wpt-pr: 56108
…content attribute and specifying null to createEleent and attachShadow per, a=testonly Automatic update from web-platform-tests Add new tests for customelementregistry content attribute and specifying null to createEleent and attachShadow per (#56108) - whatwg/dom#1424 - whatwg/dom#1423 Also update the existing tests to account for the behavior differences.` -- wpt-commits: cc1c056521abd0ff97456455dbebe113617a2bc1 wpt-pr: 56108
As part of the effort to support null custom element registry elements without shadow DOM, we're updating the spec to allow the creation of element and shadowroot to use null as a valid argument and create null registry element and shadowroot.
Fixes #1413 partially. We need another PR to support element attribute for null custom element registry in addition to #1423.
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff