Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

DocumentType

BaselineWidely available

TheDocumentType interface represents aNode containing a doctype.

EventTarget Node DocumentType

Instance properties

Inherits properties from its parent,Node.

DocumentType.nameRead only

The type of the document. It is always"html" for HTML documents, but will vary for XML documents.

DocumentType.publicIdRead only

A string with an identifier of the type of document. Empty if the doctype given specifies no public ID.

DocumentType.systemIdRead only

A string containing the URL to the associated DTD. Empty if the doctype given specifies no system ID.

Instance methods

Inherits methods from its parent,Node.

DocumentType.after()

Inserts a set ofNode objects or strings in the children list of theobject's parent, just after this node.

DocumentType.before()

Inserts a set ofNode objects or strings in the children list of theobject's parent, just before this node.

DocumentType.remove()

Removes this object from its parent children list.

DocumentType.replaceWith()

Replaces the document type with a set of given nodes.

Specifications

Specification
DOM
# interface-documenttype

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp