{{APIRef}}
A UTF-16 String. As JavaScript already uses such strings, DOMString
is mapped directly to a String
.
Passing null
to a method or parameter accepting a DOMString
typically stringifies to "null"
.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('WebIDL', '#DOMString', 'DOMString')}} | {{Spec2('WebIDL')}} | Rephrasing of the definition to remove weird edge cases. |
{{SpecName('DOM3 Core', 'core.html#DOMString', 'DOMString')}} | {{Spec2('DOM3 Core')}} | No change from {{SpecName('DOM2 Core')}} |
{{SpecName('DOM2 Core', 'core.html#ID-C74D1578', 'DOMString')}} | {{Spec2('DOM2 Core')}} | No change from {{SpecName('DOM1')}} |
{{SpecName('DOM1', 'level-one-core.html#ID-C74D1578', 'DOMString')}} | {{Spec2('DOM1')}} | Initial definition. |