/** * Realm-independent "what kind of node is this" tests for composition DOM. * * THE INVARIANT: the runtime never assumes the composition DOM was built by the * same JavaScript realm the runtime is running in. It asks what a node IS (node * type, namespace, tag name), never which window's constructor made it. * * Why that matters. `node instanceof HTMLElement` compares against the * `HTMLElement` of the realm this module was loaded into, so it answers "which * window built this node", not "what is this node". One document can hold * elements from several realms at once, and a node keeps the prototype chain of * whichever realm created it however it got there. * * MEASURED, in the Studio preview, on some loads: ``, `` and * `