Remove "allow declarative shadow roots"#1478
Conversation
This is now a parser flag rather than a document associated boolean. See whatwg/html#12624
| <a for=Document>URL</a>, <a for=Document>origin</a>, <a for=Document>type</a>, | ||
| <a for=Document>mode</a>, and <a for=Document>allow declarative shadow roots</a>, to those of | ||
| and <a for=Document>mode</a>, to those of | ||
| <var>node</var>. |
There was a problem hiding this comment.
wrapping
I guess this also means there's a change in behavior here?
There was a problem hiding this comment.
I don't think so because "allow declarative shadow roots" is only false for inert documents created for the purpose of fragment-parsing, and those are never cloned AFAICT.
In blink "allow declarative shadow roots" is a fragment parser config rather than something that stays on the document.
There was a problem hiding this comment.
What about XMLHttpRequest? It's not setting that flag today and I think that was intentional. Do we have tests?
There was a problem hiding this comment.
https://whatpr.org/html/12624/parsing.html#allow-declarative-shadow-roots is false by default, and https://xhr.spec.whatwg.org/#document-response uses the default settings, so I think spec-wise this is OK.
There is a test for this here.
|
We still need this because of |
This is now a parser flag rather than a document associated boolean.
See whatwg/html#12624, also for checkboxes.
Preview | Diff