FA-53778 / Accessibility interaction semantics / Member archive
Cleared text attributes are serialized as null values · case 03
Cleared text attributes are serialized as null values.
Case contract
Input [length,default_attributes,spans] where spans are [start,end,attributes,priority]. Clamp endpoints to [0,length], discard empty/reversed spans. At each character position merge active spans over defaults by increasing priority, preserving input tie order; None attribute removes that attribute. Build maximal equal adjacent runs [start,end,attributes]. Zero length returns empty. Offsets are codepoints. Dictionary values are strings or None.
Why this case matters
Offline accessibility bridge model with explicit policy; useful for testing semantic API adapters independently of browser implementations.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| contract fixture 2 | [[0, 1, {"color": "red", "lang": null}], [1, 2, {"color": "blue", "lang": null}], [2, 3, {"color": "red", "lang": null}]] | [[0, 1, {"color": "red"}], [1, 2, {"color": "blue"}], [2, 3, {"color": "red"}]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗