-
Notifications
You must be signed in to change notification settings - Fork 1
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 attribute to <template shadowroot> to disable upgrades #6
Comments
This matches my mental model as well. Just like Btw, we should bikeshed on the name of the |
I worry that And before the name even, I'd want to check that a boolean attribute is the way to go here, or whether there is some kind of enum we'd want to use. ie, if this attribute applies recursively, as would be expected from the registry lookup mechanism, a nested shadow root might want a way to opt out and use the global registry. |
I agree that scoped is too general. |
I'm more neutral to this change, I see pros and cons either way. In this manner I'd rather stick with the less conflicting name. So far, |
In order to make scoped custom element registries and declarative shadow DOM work together we need a way to defer upgrading of elements in some shadow roots until their custom element registry has been set.
An attribute can tell the browser to either not upgrade the contained elements, or possibly to create an empty registry which would have the same effect.
Then when the definition of
my-element
loads, it can set the registry, in conjunction with #3, to trigger upgrades.This should be specified here, to make this proposal layer on top of declarative shadow DOM.
cc @mfreed7
The text was updated successfully, but these errors were encountered: