Packagedom.core.types
Classpublic class DOMString
InheritanceDOMString Inheritance Object

Introduced in: DOM 0 
Modified in: DOM 3 Core 

A DOMString is a sequence of 16-bit units. The UTF-16 encoding was chosen because of its widespread industry practice. Note that for both HTML and XML, the document character set (and therefore the notation of numeric character references) is based on UCS [ISO/IEC 10646]. A single numeric character reference in a source document may therefore in some cases correspond to two 16-bit units in a DOMString (a high surrogate and a low surrogate). For issues related to string comparisons, refer to String Comparisons in the DOM.

See also

W3C - DOM 3 Core: DOMString