--- title: DOMString slug: Web/API/DOMString tags: - API - Chaîne de caractères - DOM - Reference translation_of: Web/API/DOMString --- <p>Une chaîne de caractères UTF-16. Comme JavaScript utilise déjà ce type de chaîne de caractères, <code>DOMString</code> est directement associé à <code><a href="/en/JavaScript/Reference/Global_Objects/String" title="En/JavaScript/Reference/Global_Objects/String">String</a></code>.</p> <h2 id="Specification" name="Specification">Spécifications</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Spécification</th> <th scope="col">Statut</th> <th scope="col">Commentaires</th> </tr> <tr> <td>{{SpecName('WebIDL', '#idl-DOMString', 'DOMString')}}</td> <td>{{Spec2('WebIDL')}}</td> <td>Reformulation de la définition pour éviter quelques cas particuliers bizarres.</td> </tr> <tr> <td>{{SpecName('DOM3 Core', 'core.html#DOMString', 'DOMString')}}</td> <td>{{Spec2('DOM3 Core')}}</td> <td>Aucun changement par rapport à {{SpecName('DOM2 Core')}}</td> </tr> <tr> <td>{{SpecName('DOM2 Core', 'core.html#ID-C74D1578', 'DOMString')}}</td> <td>{{Spec2('DOM2 Core')}}</td> <td>Aucun changement par rapport à {{SpecName('DOM1')}}</td> </tr> <tr> <td>{{SpecName('DOM1', 'level-one-core.html#ID-C74D1578', 'DOMString')}}</td> <td>{{Spec2('DOM1')}}</td> <td>Première définition</td> </tr> </tbody> </table> <h2 id="Voir_aussi">Voir aussi</h2> <ul> <li><a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/String" title="/en-US/docs/Web/API/DOMString">String</a></li> <li>{{domxref("USVString")}}</li> <li>{{domxref("CSSOMString")}}</li> <li><a href="https://developer.mozilla.org/fr/Add-ons/Code_snippets/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/String_view"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li> <li><a href="https://developer.mozilla.org/fr/docs/Web/API/DOMString/Binary">Binary strings</a></li> </ul>