Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLdeclarative shadow DOMSingle-choice MCQ

A streaming-capable HTML parser encounters <template shadowrootmode="open">. With the standardized 2024 behavior, at what point during parsing is the ShadowRoot actually attached to the host element, and what happens to the template element itself?

<my-card> <template shadowrootmode="open"> <slot></slot> </template> <p>light child</p> </my-card>