A RetroSearch Logo

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

Search Query:

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

DOMImplementation: createDocumentType() メソッド - Web API

DOMImplementation: createDocumentType() メソッド

Baseline Widely available

DOMImplementation.createDocumentType() メソッドは DocumentType オブジェクトを返します。これは文書作成時に DOMImplementation.createDocument で使用したり、Node.insertBefore() や Node.replaceChild() などのメソッドで文書中に置いたりすることができます。

構文
createDocumentType(qualifiedNameStr, publicId, systemId)
引数
qualifiedNameStr

修飾名の入った文字列です。例えば svg:svg です。

publicId

PUBLIC 識別子の入った文字列です。

systemId

SYSTEM 識別子の入った文字列です。

返値

DocumentType です。

例
const dt = document.implementation.createDocumentType(
  "svg:svg",
  "-//W3C//DTD SVG 1.1//EN",
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd",
);
const d = document.implementation.createDocument(
  "http://www.w3.org/2000/svg",
  "svg:svg",
  dt,
);
alert(d.doctype.publicId); // -//W3C//DTD SVG 1.1//EN
仕様書 ブラウザーの互換性 関連情報

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