A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/fr/docs/Web/API/DOMImplementation/createDocumentType below:

DOMImplementation.createDocumentType() - Les API Web

DOMImplementation.createDocumentType()

Baseline Widely available

La méthode DOMImplementation.createDocumentType() renvoie un objet DocumentType qui peut être utilisé avec DOMImplementation.createDocument lors de la création du document ou peut être intégré au document existant avec des méthodes comme Node.insertBefore() ou Node.replaceChild().

Syntaxe
doctype = document.implementation.createDocumentType(
  qualifiedNameStr,
  publicId,
  systemId,
);
Paramètres
qualifiedNameStr

est une DOMString (chaîne de caractères) contenant le nom qualifié comme svg:svg.

publicId

est une DOMString (chaîne de caractères) contenant l'identifiant PUBLIC.

systemId

est une DOMString (chaîne de caractères) contenant les identifiants SYSTEM.

Exemple
var dt = document.implementation.createDocumentType(
  "svg:svg",
  "-//W3C//DTD SVG 1.1//EN",
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd",
);
var d = document.implementation.createDocument(
  "http://www.w3.org/2000/svg",
  "svg:svg",
  dt,
);
alert(d.doctype.publicId); // -//W3C//DTD SVG 1.1//EN
Spécifications Compatibilité des navigateurs Voir aussi

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4