diff options
author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
---|---|---|
committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/document/createcomment/index.html | |
parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/document/createcomment/index.html')
-rw-r--r-- | files/fr/web/api/document/createcomment/index.html | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/files/fr/web/api/document/createcomment/index.html b/files/fr/web/api/document/createcomment/index.html deleted file mode 100644 index 5e16be2ecb..0000000000 --- a/files/fr/web/api/document/createcomment/index.html +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: document.createComment -slug: Web/API/Document/createComment -tags: - - API - - DOM - - Méthodes - - Reference -translation_of: Web/API/Document/createComment ---- -<div>{{APIRef("DOM")}}</div> - -<p><code>createComment()</code> crée et retourne un nouveau noeud de type commentaire.</p> - -<h2 id="Syntax">Syntaxe</h2> - -<pre class="syntaxbox"><em>CommentNode</em> = document.createComment(data) -</pre> - -<h3 id="Parameters">Paramètres</h3> - -<dl> - <dt><code>data</code></dt> - <dd>Une chaîne de caractères représentant le contenu du commentaire.</dd> -</dl> - -<h2 id="Example">Exemple</h2> - -<pre class="brush:js">var docu = new DOMParser().parseFromString('<xml></xml>', "application/xml"); -var comment = docu.createComment('Voici un commentaire pas très bien caché'); - -docu.getElementsByTagName('xml')[0].appendChild(comment); - -alert(new XMLSerializer().serializeToString(docu)); -// Affiche: <xml><!--Voici un commentaire pas très bien caché--></xml></pre> - -<h2 id="Spécification">Spécification</h2> - -<ul> - <li><a href="http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#method-createComment">createComment</a></li> -</ul> |