DocumentType 인터페이스는 doctype을 포함하는 Node 를 나타냅니다.

프로퍼티

부모 Node 로부터 프로퍼티를 상속받고 ChildNode 인터페이스를 구현합니다.

DocumentType.entities Read only
DTD에 선언된 엔티티의 NamedNodeMap 입니다. 이 맵의 모든 노드는 Entity 인터페이스를 구현합니다.
DocumentType.internalSubset Read only
내부 하위 집합의 DOMString 입니다. 하위 집합이 존재하지 않을 경우 null입니다. 예, "<!ELEMENT foo (bar)>".
DocumentType.name Read only
DOMString 입니다. 예, <!DOCTYPE HTML> 의 경우 "html".
DocumentType.notations Read only
DTD에 선언된 노테이션을 포함한 NamedNodeMap 입니다. 이 맵의 모든 노드는 Notation 인터페이스를 구현합니다.
DocumentType.publicId Read only
DOMString 입니다. 예, "-//W3C//DTD HTML 4.01//EN", HTML5의 경우 빈 문자열.
DocumentType.systemId Read only
DOMString 입니다. 예, "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 초기 정의

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
entities
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support 1 — 6IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support 4 — 6Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
internalSubset
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
nameChrome Full support YesEdge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
notations
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support 1 — 6IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support 4 — 6Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
publicIdChrome Full support YesEdge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
systemIdChrome Full support YesEdge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

함께 보기

문서 태그 및 공헌자

이 페이지의 공헌자: cs09g
최종 변경자: cs09g,