From 6772831200d14c2436aea2d0c837f40dbf12156f Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Sun, 26 Sep 2021 13:11:47 +0200 Subject: Prepare Web API section for Markdown conversion (#2464) * Remove summary classes and ids * Remove unecessary hidden * Remove useless span filled with useless attributes / ids * Remove useless font * Remove notranslate * Remove id in other elements than headings * Remove name attributes * Remove
 for JS w/ language-js class

* Remove 
 for HTML w/ language-html class

* Remove 
 for other lang w/ language-* class

* Rm highlighted line in code samples

* fix links, internal, external, absolute URLs

* missing file from last commit

* Fix styles errors apart from table + some classes

* Fix notes and warnings (+ some other :x)

* fix typo during merge which broke a doc

* aand forgot a conflict

* fix remaining classes of errors except dls and images

* Fix dls

* Fix images (deki/mozillademos) and remaining style issues

* Remove script tag from svg file

* Remove script tag from svg fileS

* Compress SVG files for CI
---
 .../fr/web/api/document/createtextnode/index.html  | 46 +++++++++++-----------
 1 file changed, 23 insertions(+), 23 deletions(-)

(limited to 'files/fr/web/api/document/createtextnode/index.html')

diff --git a/files/fr/web/api/document/createtextnode/index.html b/files/fr/web/api/document/createtextnode/index.html
index 2455a75c30..7fc4bfe701 100644
--- a/files/fr/web/api/document/createtextnode/index.html
+++ b/files/fr/web/api/document/createtextnode/index.html
@@ -12,7 +12,7 @@ translation_of: Web/API/Document/createTextNode
 
 

Crée un nouveau nœud de texte.

-

Syntaxe

+

Syntaxe

var text = document.createTextNode(données);
 
@@ -22,34 +22,34 @@ translation_of: Web/API/Document/createTextNode
  • donnees est une chaîne contenant les données à placer dans le nœud de texte.
  • -

    Exemple

    +

    Exemple

    -
    <!DOCTYPE html>
    -<html lang="en">
    -<head>
    -<title>createTextNode example</title>
    -<script>
    -function addTextNode(text) {
    -  var newtext = document.createTextNode(text),
    -      p1 = document.getElementById("p1");
    +
    <!DOCTYPE html>
    +<html lang="en">
    +<head>
    +<title>createTextNode example</title>
    +<script>
    +function addTextNode(text) {
    +  var newtext = document.createTextNode(text),
    +      p1 = document.getElementById("p1");
     
    -  p1.appendChild(newtext);
    -}
    -</script>
    -</head>
    +  p1.appendChild(newtext);
    +}
    +</script>
    +</head>
     
    -<body>
    -  <button onclick="addTextNode('YES! ');">YES!</button>
    -  <button onclick="addTextNode('NO! ');">NO!</button>
    -  <button onclick="addTextNode('WE CAN! ');">WE CAN!</button>
    +<body>
    +  <button onclick="addTextNode('YES! ');">YES!</button>
    +  <button onclick="addTextNode('NO! ');">NO!</button>
    +  <button onclick="addTextNode('WE CAN! ');">WE CAN!</button>
     
    -  <hr />
    +  <hr />
     
    -  <p id="p1">First line of paragraph.</p>
    -</body>
    -</html>
    + <p id="p1">First line of paragraph.</p> +</body> +</html>
    -

    Spécifications

    +

    Spécifications

    -- cgit v1.2.3-54-g00ecf