From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- .../web/api/document/createcdatasection/index.html | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 files/fr/web/api/document/createcdatasection/index.html (limited to 'files/fr/web/api/document/createcdatasection/index.html') diff --git a/files/fr/web/api/document/createcdatasection/index.html b/files/fr/web/api/document/createcdatasection/index.html deleted file mode 100644 index f1a44c9a07..0000000000 --- a/files/fr/web/api/document/createcdatasection/index.html +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Document.createCDATASection() -slug: Web/API/Document/createCDATASection -tags: - - API - - Création - - DOM - - Document - - Méthode - - Section - - XML - - données -translation_of: Web/API/Document/createCDATASection ---- -
{{APIRef("DOM")}}
- -

createCDATASection() crée un nouveau noeud de section CDATA et le renvoie.

- -

Syntaxe

- -
CDATASectionNode = document.createCDATASection(data)
-
- - - -

Exemple

- -
var docu = new DOMParser().parseFromString('<xml></xml>',  "application/xml")
-
-var cdata = docu.createCDATASection('Some <CDATA> data & then some');
-
-docu.getElementsByTagName('xml')[0].appendChild(cdata);
-
-alert(new XMLSerializer().serializeToString(docu));
-// Affiche : <xml><![CDATA[Some <CDATA> data & then some]]></xml>
-
- -

Notes

- - - -

Spécification

- - -- cgit v1.2.3-54-g00ecf