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

A declarative shadow DOM is written as `<template shadowrootmode="open">…</template>`. During HTML parsing (not via innerHTML), what does the parser do with this template, and what is the resulting state of `host.shadowRoot`?

<host-el> <template shadowrootmode="open"> <slot></slot> </template> </host-el>