Scoped registries: parser attributes

This page tests two parser-level opt-outs that leave a subtree with a null custom element registry, so a scoped registry can be attached later using registry.initialize(node):

test-element is defined in both registries: Global definition Scoped definition Not upgraded

Support

Scoped registries (prerequisite)

Testing…

shadowrootcustomelementregistry

Testing…

scopedcustomelementregistry

Testing…

shadowrootcustomelementregistry

This markup is parsed with setHTMLUnsafe():


  

scopedcustomelementregistry

This markup is parsed with setHTMLUnsafe():