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

Calling `setHTMLUnsafe()` versus `innerHTML` with the same declarative-shadow-DOM string differs in one specific way. What is it?

el.innerHTML = '<div><template shadowrootmode="open"></template></div>'; el.setHTMLUnsafe('<div><template shadowrootmode="open"></template></div>');