DocumentType
DocumentType
介面表示了一個代表文件類型的 Node
節點。
屬性
此介面繼承了其父介面 Node
的屬性,以及實作了 ChildNode
介面。
DocumentType.entities
Read only 已棄用-
A
NamedNodeMap
of entities declared in the DTD. Every node in this map implements theEntity
interface. DocumentType.internalSubset
Read only 已棄用-
A
DOMString
of the internal subset, ornull
if there is none. Eg"<!ELEMENT foo (bar)>"
. DocumentType.name
(en-US) Read only-
A
DOMString
, eg"html"
for<!DOCTYPE HTML>
. DocumentType.notations
Read only 已棄用-
A
NamedNodeMap
with notations declared in the DTD. Every node in this map implements theNotation
interface. DocumentType.publicId
(en-US) Read only-
A
DOMString
, eg"-//W3C//DTD HTML 4.01//EN"
, empty string for HTML5. DocumentType.systemId
(en-US) Read only-
A
DOMString
, eg"http://www.w3.org/TR/html4/strict.dtd"
, empty string for HTML5.
方法
此介面繼承了其父介面 Node
的方法,以及實作了 ChildNode
介面。
ChildNode.remove()
(en-US) 實驗性質-
Removes the object from its parent children list.
規範
Specification |
---|
DOM Standard # interface-documenttype |
瀏覽器相容性
BCD tables only load in the browser