semanticsAndTags
disposition: bound, direction: spec-to-code, basis: implementation
An anatomy rule of the Web Components 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
Operands
Every fact the rule reads. Nothing outside this set participates.
| Operand | From |
|---|---|
element.type | spec document |
element.role | spec anatomy (ADR-067) |
conventions.specs.states | declared conventions, through the shared concept table |
Tag cases
Ordered — first match wins.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | element.role present | the role's tag, inside the shadow tree | A role names a control the platform has a native element for |
| 2 | element.type = text | span | Text is phrasing content |
| 3 | element.type present | div | The structural default — no phrasing-context arm here; the shadow tree starts its own content model |
ARIA cases
Ordered — first match wins.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | concept = claimed by this element's role | nothing from the generic path — the role emits the platform-native mechanism | Role over states for the mechanism, from the same shared module as React |
| 2 | concept.prop = shared with a concept the role claimed | nothing | One prop cannot announce two ways at once |
| 3 | concept present | the concept's aria attribute inside the shadow tree, when the driving prop is set | The generic path; selection attributes land on :host while a role’s attributes land in the shadow tree |
Otherwise
the default tag, no ARIA — An element with no role and no state entry keeps the pre-roles behavior
Event-handler composition is expected to mirror the React binding’s handlerCases through the shared events model, and instance role routing the same — both left undeclared here until confirmed against this emitter. The precedence module is shared, so suppression cannot diverge.