Skip to content

semanticsAndTags

disposition: bound, direction: spec-to-code, basis: implementation

An anatomy rule of the React binding. The element types named below resolve jointly here — which type a node becomes, or what tag and semantics an element takes, is decided by this rule rather than per type.

Keys. text, container, instance

Operands

Every fact the rule reads. Nothing outside this set participates.

OperandFrom
element.typespec document
element.rolespec anatomy (ADR-067) — what the element IS, at most one
element.actionsspec anatomy (ADR-087) — what activating it DOES, any number
conventions.specs.statesdeclared conventions, through the shared concept table — which prop carries a concept
context.phrasingthe emitting tree — whether an ancestor role constrains this element to phrasing content

Tag cases

Ordered — first match wins.

#WhenEmitsWhy
1element.role presentthe role’s tag — a button, an a, an input — void tags self-closingA role names a control the platform has a native element for
2(element.type = text or context.phrasing = true)spanText is phrasing content, and inside a phrasing ancestor a div would be invalid HTML
3element.type presentdivThe structural default

ARIA cases

Ordered — first match wins.

#WhenEmitsWhy
1concept = claimed by this element's rolenothing from the generic path — the role emits the platform-native mechanism: a real disabled, a real checkedRole over states for the mechanism; the states entry still names the driving prop, and the stylesheet still writes the concept’s selector
2concept.prop = shared with a concept the role claimednothingOne prop cannot announce two ways at once — a button carrying both aria-pressed and aria-selected disagrees with itself, and the second is not even valid on that role
3concept presentthe concept's aria attribute, written when the driving prop is setThe generic path, from the shared concept table

Handler cases

Ordered — first match wins.

#WhenEmitsWhy
1(element.role's own wiring logic present or element.actions present)one composed closure per event: the role's logic, then the role's contract prop, then each action body in annotation orderA consumer listening on the prop hears the event before an action can unmount the component
2element.role's contract prop, alone presentthe plain pass-through — onClick={p.onClick}Composing costs nothing when nothing composes

Instance routing

Ordered — first match wins.

#WhenEmitsWhy
1element.type = instance and element.role presentno control of this component's own — the role's contract props route to the instanced component's matching parts (ADR-067 rule 5)A role on an instance is a routing signal; the composed component keeps its own control and renders it itself

Otherwise

the default tag, no ARIA, no handlers — An element with no role, no state entry and no action keeps the pre-roles behavior

The precedence module is shared with the Web Components emitter, so the two platforms resolve collisions identically. Cross-concern by nature: it reads anatomy roles, props classifications and actions to emit one element.