DocumentType
인터페이스는 doctype을 포함하는 Node
를 나타냅니다.
<div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="https://developer.mozilla.org/ko/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/ko/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/ko/docs/Web/API/DocumentType" target="_top"><rect x="266" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">DocumentType</text></a></svg></div>
a:hover text { fill: #0095DD; pointer-events: all;}
프로퍼티
부모 Node
로부터 프로퍼티를 상속받고 ChildNode
인터페이스를 구현합니다.
DocumentType.entities
Read only- DTD에 선언된 엔티티의
NamedNodeMap
입니다. 이 맵의 모든 노드는Entity
인터페이스를 구현합니다. DocumentType.internalSubset
Read only- 내부 하위 집합의
DOMString
입니다. 하위 집합이 존재하지 않을 경우null
입니다. 예,"<!ELEMENT foo (bar)>"
. DocumentType.name
Read onlyDOMString
입니다. 예,<!DOCTYPE HTML>
의 경우"html"
.DocumentType.notations
Read only- DTD에 선언된 노테이션을 포함한
NamedNodeMap
입니다. 이 맵의 모든 노드는Notation
인터페이스를 구현합니다. DocumentType.publicId
Read onlyDOMString
입니다. 예,"-//W3C//DTD HTML 4.01//EN"
, HTML5의 경우 빈 문자열.DocumentType.systemId
Read onlyDOMString
입니다. 예,"http://www.w3.org/TR/html4/strict.dtd"
, HTML5의 경우 빈 문자열.
메소드
부모 Node
로부터 메소드를 상속받고 ChildNode
인터페이스를 구현합니다.
ChildNode.remove()
- 부모의 자식 리스트로부터 객체를 제거합니다.
명세
명세 | 상태 | 코멘트 |
---|---|---|
DOM The definition of 'DocumentType' in that specification. |
Living Standard | ChildNode 인터페이스의 구현을 추가했음.internalSubset , entities , notation 프로퍼티를 제거했음. |
Document Object Model (DOM) Level 3 Core Specification The definition of 'DocumentType' in that specification. |
Obsolete | Document Object Model (DOM) Level 2 Core Specification 으로부터 변경사항 없음. |
Document Object Model (DOM) Level 2 Core Specification The definition of 'DocumentType' in that specification. |
Obsolete | publicID , systemID , internalSubset 프로퍼티를 추가했음. |
Document Object Model (DOM) Level 1 Specification The definition of 'DocumentType' in that specification. |
Obsolete | 초기 정의 |
브라우저 호환성
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.