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

A declarative shadow root is serialized back to a string. Which mechanism allows the serializer to emit the shadow root's contents as a <template shadowrootmode> rather than dropping them, and what does it require of a 'closed' root?

el.getHTML({ serializableShadowRoots: true, shadowRoots: [closedRoot] });