qhtml7

QHTML7 JavaScript API Reference

Source: qhtml_types.js
Source version fallback: 7.4.0
Audited source: 4,003 lines, 162,682 bytes SHA-256: beffb497e7621c9b602835ec2993c9f8de93541789d57521e894b7ac42783d27

Scope and accuracy

This reference is generated from the uploaded implementation, not from assumptions or external documentation. It inventories every symbol in the frozen QHTMLTypes export object, every own instance/static method on each exported class, constructor signatures, inheritance, global/CommonJS exposure, and every CSS shortcut. Inherited methods are documented once on the defining base class and are available through the listed inheritance chain. Methods ending in Js are retained as separate callable bindings and identified as aliases.

Export and loading model

Inventory summary

Top-level constants, objects, and functions

QHTML_VERSION_FALLBACK

Value: 7.4.0; source line 4.

CSS_SHORTCUTS

Type: Map<string,string>; source line 6. Maps QHTML camelCase/CSS shortcut property names to canonical CSS property names. The complete map appears in the appendix.

QHTMLJsonTools

Type: frozen object; source line 2851.

createUUID()

Source: line 98. Returns crypto.randomUUID() when available; otherwise generates an RFC-4122-style version-4 UUID string with Math.random().

qhtmlVersionString()

Source: line 94. Returns globalThis.QHTML_VERSION when truthy, otherwise QHTML_VERSION_FALLBACK.

qhtmlCssShortcutPropertyName(name)

Source: line 113. Normalizes a shortcut or canonical CSS name case-insensitively; returns the canonical CSS property name or an empty string.

qhtmlIsCssShortcutProperty(name)

Source: line 127. Returns whether qhtmlCssShortcutPropertyName(name) resolves to a nonempty CSS property.

qhtmlScalarValue(value)

Source: line 131. Trims a value and removes one matching outer quote pair (", single quote, or backtick).

qhtmlSourceQuote(value)

Source: line 143. Converts a value to a double-quoted QHTML source string, escaping backslashes and double quotes.

qhtmlEscapeText(value)

Source: line 147. HTML-escapes ampersand, less-than, and greater-than characters.

qhtmlEscapeAttribute(value)

Source: line 154. Applies qhtmlEscapeText and additionally escapes double quotes.

qhtmlInterpolateTextForContext(value, contextNode)

Source: line 408. Replaces ${expression} segments with qhtmlResolveExpressionValue results; QHTMLReference values become name or UUID.

qhtmlResolveExpressionValue(expression, contextNode, resolving = new Set(), depth = 0)

Source: line 307. Resolves this, parent, names, dotted node/object paths, QHTMLKeyword values, and QHTMLProperty/assignment values with cycle/depth protection.

qhtmlResolvePropertyValue(rawValue, contextNode, resolving = new Set(), depth = 0)

Source: line 381. Resolves interpolation, quoted scalars, JSON arrays/objects, references, or expression paths into a property value.

qhtmlResolveCssValueForContext(value, contextNode)

Source: line 404. Direct alias/delegation to qhtmlResolvePropertyValue for CSS values.

qhtmlScriptBody(value)

Source: line 173. Escapes </script as <\/script to prevent premature script-element termination.

Class API

QHTMLHash

Qt-style string-keyed map wrapper backed by JavaScript Map.

Own members

QHTMLString

Minimal QString-like wrapper around a JavaScript string.

Own members

QHTMLReference

Base identity object carrying QHTML type, name, and UUID.

Own members

Static members

QHTMLKeyword

Named scalar reference used by expression contexts.

Own members

QHTMLNamedReference

Named reference that stores another object UUID.

Own members

QHTMLObjectReference

Named reference holding a direct QHTML object.

Own members

QHTMLContext

Hierarchical lexical reference table with parent fallback.

Own members

QHTMLNode

Core mutable QHTML tree node: ownership, references, properties, serialization, rendering, parsing insertion, and logging.

Own members

Static members

QHTMLDomNode

Semantic base for nodes that participate in DOM/QHTML rendering; adds no own API.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLDomElement

Represents an HTML element, attributes, CSS shortcut assignments, interpolation, HTML rendering, and QHTML source emission.

Own members

QHTMLTextFragment

Escaped text node with interpolation-aware rendering.

Own members

QHTMLHTMLFragment

Raw HTML fragment; interpolation is applied without HTML escaping.

Own members

QHTMLUnknownFragment

Fallback fragment that preserves unknown source as escaped text.

Own members

QHTMLTypedNode

Base for declarative q-* nodes with a keyword and attribute dictionary.

Own members

QHTMLLogger

Category-filtered in-memory/logger-console diagnostic node.

Own members

Static members

QHTMLJavaScriptBlock

Non-rendering JavaScript source block serialized as base64 in JSON.

Own members

QHTMLFunction

Declarative function metadata and invocation-state recorder; call() returns the stored body rather than executing it.

Own members

Static members

QHTMLSignal

Declarative signal with parameters, bus connections, emission, and logging hooks.

Own members

QHTMLEvent

Standalone named QHTML event/action object with DOM CustomEvent interoperability.

Own members

QHTMLEventListener

Declarative listener for a visible QHTMLEvent name, backed by a DOM CustomEvent listener.

Own members

QHTMLSignalConnection

Immutable-style record pairing a signal and function receiver.

Own members

QHTMLSignalBus

Connection registry and synchronous dispatch-state recorder for QHTMLSignal/QHTMLFunction objects.

Own members

QHTMLComponentSlot

Slot declaration inside a component definition.

Own members

QHTMLSlotDefault

Non-rendering declaration of default content for a named slot.

Own members

QHTMLPropertyAssignment

Declarative name/value assignment used for attributes, CSS shortcuts, and configuration.

Own members

QHTMLLayout

Flexbox-backed q-layout base with row/column/layout child helpers.

Own members

QHTMLRowLayout

q-row specialization of QHTMLLayout using row direction.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLColumnLayout

q-col specialization of QHTMLLayout using column direction.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLComponentInstanceSlot

Mutable slot view owned by a component instance.

Own members

QHTMLComponentDefinition

Non-rendering q-component template definition with optional extends metadata.

Own members

QHTMLComponentInstance

Runtime component instance binding a definition, reference members, slot views/overrides, rendering, and serialization.

Own members

QHTMLWorker

Named q-worker declaration; this type file does not implement worker execution.

Own members

QHTMLArrayNode

Simple programmatic array-valued QHTMLNode.

Own members

QHTMLMapNode

Simple programmatic object-valued QHTMLNode.

Own members

QHTMLJsonValue

QHTMLNode wrapper around an arbitrary JavaScript/JSON value.

Own members

QHTMLJsonArray

QHTMLJsonValue specialization tagged as an array.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLJsonObject

QHTMLJsonValue specialization tagged as an object.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLJsonDocument

JSON document wrapper with parsing, shape tests, size, and typed root views.

Own members

QHTMLArray

Declarative q-array that materializes child nodes into a JavaScript array.

Own members

QHTMLMap

Declarative q-map that materializes named child nodes into a JavaScript object.

Own members

QHTMLModel

Declarative q-model that selects an array/map/JSON document child as its data document.

Own members

QHTMLProperty

Declarative property supporting scalar source values and structured array/map values.

Own members

QHTMLJavaScriptRuntime

Compile-only placeholder runtime; reports unavailable and records submitted source.

Own members

QHTMLImportNode

q-import/q-require declaration with path and cache-mode parsing.

Own members

QHTMLForNode

Declarative loop that clones child nodes for array values and renders each iteration in a local context.

Own members

QHTMLEventHandler

Non-rendering event-handler declaration containing event name, parameters, body, and propagation flag.

Own members

QHTMLPainter

Non-rendering painter declaration with source body and optional paint event child.

Own members

QHTMLCanvas

Canvas declaration rendered as an HTML canvas and exposing its paint handler/body.

Own members

QHTMLVideoAsset

Reference-only video asset descriptor; constructor stores a public attributes object.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLVideoPlayer

Reference-only video player descriptor; constructor stores a public attributes object.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLVideo

q-video node rendered as an HTML video element.

Own members

QHTMLParticleEmitter

particle-emitter node rendered as a custom element.

Own members

QHTMLConnect

Non-rendering connection declaration with source/from and target/to paths.

Own members

QHTMLTimer

q-timer declaration that owns a timeout signal.

Own members

QHTMLPropertyAnimation

Property-animation declaration owning lifecycle signals.

Own members

QHTMLScriptAction

Non-rendering animation/script action body.

Own members

QHTMLAnimationGroup

Non-rendering base for animation groups.

Own members

QHTMLSequentialAnimation

Sequential animation-group specialization.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLParallelAnimation

Parallel animation-group specialization.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLBehavior

Behavior declaration associated with a property.

Own members

QHTMLStyle

Named style declaration that can derive CSS from a raw body, cssText attribute, or property assignments.

Own members

QHTMLTransition

Transition declaration exposing property, duration, timing, and delay settings.

Own members

QHTMLTransitionApplication

Non-rendering application of a transition/property list.

Own members

QHTMLTheme

Theme/default-theme declaration with source body and default-theme detection.

Own members

QHTMLStyleApplication

Wrapper custom element applying a named QHTML style to rendered children.

Own members

QHTMLThemeApplication

Wrapper custom element applying a named QHTML theme to rendered children.

Own members

QHTMLSlot

Generic slot node specialization.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLClass

Non-rendering q-class source-body declaration.

Own members

QHTMLVar

Non-rendering q-var declaration.

Own members

QHTMLTemplate

Non-rendering q-template declaration.

Own members

QHTMLScript

Non-rendering q-script declaration with serialized body.

Own members

QHTMLModelView

q-model-view declaration exposing an item alias and a JSON-document child lookup.

Own members

QHTMLFactory

q-factory typed node; no behavior beyond inherited tree/attribute APIs.

No own callable members; behavior is constructor specialization plus inherited API.

QHTMLMethod

Non-rendering q-method source-body declaration.

Own members

QHTMLSourceFragment

Raw QHTML source fragment emitted verbatim with indentation.

Own members

QHTMLDomTree

Root document tree with signal bus, JavaScript compile recorder, JSON loading, reference rebuilding, traversal, and standalone HTML export.

Own members

Appendix A: Complete CSS shortcut map

QHTML/JS shortcut Canonical CSS property
alignContent align-content
alignItems align-items
alignSelf align-self
aspectRatio aspect-ratio
background background
backgroundColor background-color
backgroundImage background-image
backgroundPosition background-position
backgroundRepeat background-repeat
backgroundSize background-size
borderColor border-color
borderRadius border-radius
borderStyle border-style
borderWidth border-width
bottom bottom
boxShadow box-shadow
boxSizing box-sizing
color color
columnGap column-gap
cursor cursor
display display
filter filter
flex flex
flexBasis flex-basis
flexDirection flex-direction
flexGrow flex-grow
flexShrink flex-shrink
flexWrap flex-wrap
fontFamily font-family
fontSize font-size
fontStyle font-style
fontWeight font-weight
gap gap
gridArea grid-area
gridColumn grid-column
gridRow grid-row
height height
justifyContent justify-content
justifyItems justify-items
justifySelf justify-self
left left
letterSpacing letter-spacing
lineHeight line-height
listStyle list-style
listStyleType list-style-type
margin margin
marginBottom margin-bottom
marginLeft margin-left
marginRight margin-right
marginTop margin-top
maxHeight max-height
maxWidth max-width
minHeight min-height
minWidth min-width
objectFit object-fit
objectPosition object-position
opacity opacity
order order
overflow overflow
overflowX overflow-x
overflowY overflow-y
padding padding
paddingBottom padding-bottom
paddingLeft padding-left
paddingRight padding-right
paddingTop padding-top
pointerEvents pointer-events
position position
right right
rowGap row-gap
textAlign text-align
textDecoration text-decoration
textOverflow text-overflow
textTransform text-transform
top top
transform transform
transformOrigin transform-origin
transition transition
visibility visibility
whiteSpace white-space
width width
wordBreak word-break
x left
y top
zIndex z-index

Appendix B: Complete top-level export list

Appendix C: Audit notes