4 ms·
The reason for textual range is maintaining textual selection / editing interactions and 1:1 character<->value matching, so by deleting one character you delete
by dy108 3y ago
The reason for textual range is maintaining textual selection / editing interactions and 1:1 character<->value matching, so by deleting one character you delete one value.
It is almost same as your suggested representation, just do `String.fromCharCode(values.map(v => v + 0x100))` or manually as `XX;XX;XX;` in HTML.