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 |
|---|---|---|
| Web IDL (Second Edition) | Candidate Recommendation | Rephrasing of the definition to remove weird edge cases. |
| Document Object Model (DOM) Level 3 Core Specification | Recommendation | No change from Document Object Model (DOM) Level 2 Core Specification |
| Document Object Model (DOM) Level 2 Core Specification | Recommendation | No change from Document Object Model (DOM) Level 1 Specification |
| Document Object Model (DOM) Level 1 Specification | Recommendation | Initial definition. |