You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a flag for elements which cannot have shadow trees #85
I wonder why element groups such as "form-associated elements" or "Submittable elements" are not part of that. It seems "kind of content" is perhaps mostly about document conformance?
Hmm. Do you have any idea besides adding a sentence like "xxx elements have private shadow tree content" to all the relevant elements? A centralized list seems nicer, like the ones you mention, but I am not sure what section it would belong in.
Activity
annevk commentedon Sep 2, 2015
"Private shadow tree content"? Bit long.
domenic commentedon Sep 2, 2015
What do you think of flag vs. kind of content? I kind of like the latter now that I look at it.
annevk commentedon Sep 2, 2015
I wonder why element groups such as "form-associated elements" or "Submittable elements" are not part of that. It seems "kind of content" is perhaps mostly about document conformance?
domenic commentedon Sep 2, 2015
I think you are right. Looking at https://html.spec.whatwg.org/#content-models in more detail it's largely about that.
Hmm. Do you have any idea besides adding a sentence like "xxx elements have private shadow tree content" to all the relevant elements? A centralized list seems nicer, like the ones you mention, but I am not sure what section it would belong in.
annevk commentedon Sep 2, 2015
Probably either a new section nested in "Common DOM interfaces" (2.7) or "Elements" (3.2).
foolip commentedon Sep 3, 2015
FWIW, the flag (virtual function actually) is called
areAuthorShadowsAllowed()in Blink. So I guess the "allow shadow root flag" or similar?Note elements which cannot be shadow hosts
foolip commentedon Sep 21, 2015
Media elements (
<audio>and<video>) should also be excluded.annevk commentedon Feb 29, 2016
Closing this per the PR. For now the relevant method in Shadow DOM will simply have a safelist.