DOMString 是編碼為 UTF-16 的字串。當 JavaScript 使用這類字串時, DOMString 會映射成一個 String.
傳送 null 給接受 DOMString 的 method 或參數時,會將其轉換成 "null"。
Specifications
| Specification | Status | Comment |
|---|---|---|
| Web IDL (Second Edition) The definition of 'DOMString' in that specification. |
Candidate Recommendation | 修正定義文件用詞。並移除奇特的極端請況。 |
| Document Object Model (DOM) Level 3 Core Specification The definition of 'DOMString' in that specification. |
Recommendation | 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. |
Recommendation | No change from Document Object Model (DOM) Level 1 Specification |
| Document Object Model (DOM) Level 1 Specification The definition of 'DOMString' in that specification. |
Recommendation | 初次定義 DOMString 。 |