FAILURE MAP
← Case archive

FA-53424 / Accessibility interaction semantics / Member archive

UTF16 range adapter counts astral text as one unit · case 04

UTF16 range adapter counts astral text as one unit.

Member previewVariant 4 · 3 implementations · 10 checks per implementation

Case contract

Input [text,start,end,unit] where indices are measured in utf16 or codepoint units. Negative indices count backward from end, clamp to valid extent, and sort reversed endpoints. A boundary inside a surrogate pair expands outward (start down, end up). CRLF is exposed as one LF after slicing. NUL becomes replacement character. Return [exposed_text,normalized_start,normalized_end,source_units]. UTF16 offsets refer to original source, not normalized text.

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
surrogate interior expands["Z", 5, 6, 6]["\ud83d\ude00", 4, 6, 7]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 ↗