aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/domimplementation/createdocument/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:14 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commitc05efa8d7ae464235cf83d7c0956e42dc6974103 (patch)
tree6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/domimplementation/createdocument/index.html
parent13a5e017558b248ee1647d4a5825f183b51f09ad (diff)
downloadtranslated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/domimplementation/createdocument/index.html')
-rw-r--r--files/fr/web/api/domimplementation/createdocument/index.html85
1 files changed, 0 insertions, 85 deletions
diff --git a/files/fr/web/api/domimplementation/createdocument/index.html b/files/fr/web/api/domimplementation/createdocument/index.html
deleted file mode 100644
index 63bccf3cb1..0000000000
--- a/files/fr/web/api/domimplementation/createdocument/index.html
+++ /dev/null
@@ -1,85 +0,0 @@
----
-title: DOMImplementation.createDocument()
-slug: Web/API/DOMImplementation/createDocument
-tags:
- - API
- - DOM
- - Méthode
- - Reference
- - implementation
-translation_of: Web/API/DOMImplementation/createDocument
----
-<p>{{ApiRef("DOM")}}</p>
-
-<p>La méthode <strong><code>DOMImplementation.createDocument()</code></strong> crée et retourne un {{domxref("XMLDocument")}}.</p>
-
-<h2 id="Syntaxe">Syntaxe</h2>
-
-<pre class="syntaxbox"><em>doc</em> = document.implementation.createDocument(<em>namespaceURI</em>, <em>qualifiedNameStr</em>, <em>documentType</em>);</pre>
-
-<h3 id="Paramètres">Paramètres</h3>
-
-<dl>
- <dt><em>namespaceURI</em></dt>
- <dd>Est une {{domxref("DOMString")}} <em>(chaîne de caractères)</em> contenant l'URI de l'espace de noms du document à créer, <code>ou null</code> si le document n'appartient à aucun espace de noms.</dd>
-</dl>
-
-<dl>
- <dt><em>qualifiedNameStr </em></dt>
- <dd>Est une {{domxref("DOMString")}} <em>(chaîne de caractères) </em>contenant le nom qualifié, c'est-à-dire optionnellement un préfixe et deux points, plus le nom local de l'élément racine, du document à créer.</dd>
-</dl>
-
-<dl>
- <dt><em>documentType </em>{{optional_inline}}</dt>
- <dd>Est le <a href="/fr/docs/Web/API/DocumentType"><code>DocumentType</code></a> du document à créer. Vaut <code>null </code>par défaut.</dd>
-</dl>
-
-<ul>
-</ul>
-
-<h2 id="Exemple">Exemple</h2>
-
-<pre class="brush: js">var doc = document.implementation.createDocument ('http://www.w3.org/1999/xhtml', 'html', null);
-var body = document.createElementNS('http://www.w3.org/1999/xhtml', 'body');
-body.setAttribute('id', 'abc');
-doc.documentElement.appendChild(body);
-alert(doc.getElementById('abc')); // [objet HTMLBodyElement]
-</pre>
-
-<h2 id="Spécifications">Spécifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaire</th>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG', '#dom-domimplementation-createdocument', 'DOMImplementation.createDocument')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Modification du type retourné par <code>createDocument()</code> de {{domxref("Document")}} à{{domxref("XMLDocument")}}.<br>
- Le troisième argument de <code>createDocument()</code>, <em>doctype</em>, est maintenant optionnel et vaut <code>null</code> par defaut.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM3 Core', 'core.html#Level-2-Core-DOM-createDocument', 'DOMImplementation.createDocument')}}</td>
- <td>{{Spec2('DOM3 Core')}}</td>
- <td>Pas de changement depuis {{SpecName("DOM2 Core")}}.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM2 Core', 'core.html#Level-2-Core-DOM-createDocument', 'DOMImplementation.createDocument')}}</td>
- <td>{{Spec2('DOM2 Core')}}</td>
- <td>Définition initiale.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
-
-<p>{{Compat("api.DOMImplementation.createDocument")}}</p>
-
-<h2 id="Voir_aussi">Voir aussi</h2>
-
-<ul>
- <li>L'interface {{domxref("DOMImplementation")}} à laquelle la méthode appartient.</li>
-</ul>