USVString
corresponds to the set of all possible sequences of unicode scalar values. USVString
maps to a String
when returned in JavaScript; it's generally only used for APIs that perform text processing and need a string of unicode scalar values to operate on. USVString
is equivalent to DOMString
except for not allowing unpaired surrogate codepoints. Unpaired surrogate codepoints present in USVString
are converted by the browser to Unicode 'replacement character' U+FFFD
, (�).
Specification | Status | Comment |
---|---|---|
Web IDL The definition of 'USVString' in that specification. | Candidate Recommendation | Initial definition. |
DOMString
CSSOMString
StringView
– a C-like representation of strings based on typed arrays
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/USVString