CSSOMString
is used to denote string data in CSSOM specifications and can refer to either DOMString or USVString. When a specification says CSSOMString
, it is left for the browser vendors to choose whether to use DOMString
or USVString
. While browser implementations that use UTF-8 internally to represent strings in memory can use USVString
when the specification says CSSOMString
, implementations that already represent strings as 16-bit sequences might choose to use DOMString
instead.
Browser | DOMString or USVString for CSSOMString |
---|---|
Firefox (Gecko) | USVString |
Chrome (Blink) | USVString |
Safari (WebKit) | USVString |
Edge (EdgeHTML) | - |
Opera (Blink) | USVString |
Specification | Status | Comment |
---|---|---|
CSS Object Model (CSSOM) The definition of 'CSSOMString' in that specification. | Working Draft | Initial definition. |
CSSOM
DOMString
USVString
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/CSSOMString