-
Notifications
You must be signed in to change notification settings - Fork 2.9k
"look up a custom element registry" can be called with a DocumentFragment node #11227
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
Comments
It seems like the fix is as simple as:
|
Thanks! The signature also has to change. |
Actually, when would this be a |
IIRC, when parsing it uses a DocumentFragment as the parent, and then moves all its children into their actual location in the document. |
Ah, I guess this can happen with a |
What is the issue with the HTML Standard?
"Look up a custom element registry" handles Elements, ShadowRoots, and Documents. But it can be called with a DocumentFragment. Specifically I'm seeing "create an element for the token" doing so, at step 6:
"Intended parent" here is a DocumentFragment, at least in some cases. (I haven't done an exhaustive search, I'm just getting crashes because of it. 😅) This doesn't have a custom element registry.
@annevk
The text was updated successfully, but these errors were encountered: