QHTML Reference Passing Test

Page marker: reference-passing-test=20260722-1

This page logs values only. Missing references, exceptions, stale runtime files, and memory errors remain visible in the browser console.

Primary reference tree

q-component reference-leaf { q-property leafValue: "leaf-default" function describeLeaf() { return "describeLeaf:" + String(this.leafValue) } q-signal leafSignal(value) div.reference-leaf-shell { slot content { text { leaf content } } } } q-component reference-parent { q-property parentValue: "parent-default" function describeParent() { return "describeParent:" + String(this.parentValue) } q-signal parentSignal(value) div.reference-parent-shell { h3 { text { Reference parent } } reference-leaf directChild { leafValue: "direct-child" } div.transparent-wrapper { reference-leaf wrappedChild { leafValue: "wrapped-child" } button#anonymous-descendant { text { Run handler-scope logs } onclick { console.group("[QHTML handler] anonymous descendant") console.log("qhtmlResolve(parentValue)", qhtmlResolve("parentValue")) console.log("qhtmlResolve(directChild)", qhtmlResolve("directChild")) console.log("qhtmlResolve(wrappedChild)", qhtmlResolve("wrappedChild")) console.log("qhtmlResolve(someSlot)", qhtmlResolve("someSlot")) console.log("qhtmlResolve(parentObject) must not be a named parent reference", qhtmlResolve("parentObject")) console.log("qhtmlReferences keys", Object.keys(qhtmlReferences)) console.groupEnd() } } } div.slot-zone { slot someSlot { text { default someSlot content } } } } } q-component shadow-host { q-property shadowLabel: "shadow-host" div.shadow-host-shell { reference-leaf rootSibling { leafValue: "nested-rootSibling-shadow" } button#shadow-descendant { text { Run shadow-scope logs } onclick { console.group("[QHTML handler] shadow descendant") console.log("qhtmlResolve(rootSibling)", qhtmlResolve("rootSibling")) console.log("qhtmlResolve(shadowLabel)", qhtmlResolve("shadowLabel")) console.groupEnd() } } } } reference-leaf rootSibling { id: "root-sibling" leafValue: "root-sibling-value" } reference-parent parentObject { id: "parent-object" parentValue: "parent-instance-value" someSlot { span { text { explicit slot content } } reference-leaf slotChild { leafValue: "slot-child-value" } } } reference-parent secondParent { id: "second-parent" parentValue: "second-parent-value" } shadow-host shadowObject { id: "shadow-object" }

Second QHTMLDomTree construction smoke test

div#secondary-tree-marker { text { Secondary QHTML tree constructed } }

Console mirror

waiting for QHTMLContentLoaded...