Declarative shadow DOM

HTML syntax that creates a shadow root from a template element during parsing.

What is Declarative shadow DOM?

Declarative shadow DOM — HTML syntax that creates a shadow root from a template element during parsing.

<article>
  <template shadowrootmode="open">
    <slot></slot>
  </template>
  Order ready
</article>

Level: Freelancer · More HTML terms at this level

Updated