-
Notifications
You must be signed in to change notification settings - Fork 294
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
Lack of [[PlatformBrand]] is biting us #597
Comments
([[PlatformBrand]] is whatwg/webidl#97 by the way, which would give us a way more accurate way of describing what "instance is an interface" actually means.) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I guess just like "exclusive Text node" we should have "exclusive DocumentFragment node" for now and use that. And add some tests. |
Maybe this is not a problem. It seems Chrome and Safari happily treat a ShadowRoot as a DocumentFragment and don't really branch on it when appending. Probably still worth going through all the places, but this might be all mostly fine. (Would be good to check test coverage though.)
|
I started looking into this to see if I could solve whatwg/webidl#659 (and also #636 and #719) and unfortunately it's not super straightforward.
I'll upload a PR that takes a stab at this for further discussion. |
Consider https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity. Step 4 bans
DocumentFragment
. Does it banShadowRoot
? If it does, that's fine, but also a problem, since it shouldn't banCDATASection
.I thought we had an issue tracking this, but it seems like we don't.
This is somewhat related to #457, which is about updating various algorithms to account for
Attr
nodes, which can now be passed to them again (and not all are anticipating that).The text was updated successfully, but these errors were encountered: