MDN will be in maintenance mode on Thursday September 21st, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.

DOMString is 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
The definition of 'DOMString' in that specification.
Candidate Recommendation Rephrasing of the definition to remove weird edge cases.
Document Object Model (DOM) Level 3 Core Specification
The definition of 'DOMString' in that specification.
Obsolete No change from Document Object Model (DOM) Level 2 Core Specification
Document Object Model (DOM) Level 2 Core Specification
The definition of 'DOMString' in that specification.
Obsolete No change from Document Object Model (DOM) Level 1 Specification
Document Object Model (DOM) Level 1 Specification
The definition of 'DOMString' in that specification.
Obsolete Initial definition.

See also

Document Tags and Contributors

 Last updated by: chrisdavidmills,