This page was translated from English by the community. Learn more and join the MDN Web Docs community.
DocumentType
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
DocumentType 인터페이스는 doctype을 포함하는 Node 를 나타냅니다.
프로퍼티
부모 Node 로부터 프로퍼티를 상속받고 ChildNode 인터페이스를 구현합니다.
DocumentType.entities읽기 전용-
DTD에 선언된 엔티티의
NamedNodeMap입니다. 이 맵의 모든 노드는Entity인터페이스를 구현합니다. DocumentType.internalSubset읽기 전용-
내부 하위 집합의
DOMString입니다. 하위 집합이 존재하지 않을 경우null입니다. 예,"<!ELEMENT foo (bar)>". DocumentType.name읽기 전용-
DOMString입니다. 예,<!DOCTYPE HTML>의 경우"html". DocumentType.notations읽기 전용-
DTD에 선언된 노테이션을 포함한
NamedNodeMap입니다. 이 맵의 모든 노드는Notation인터페이스를 구현합니다. DocumentType.publicId읽기 전용-
DOMString입니다. 예,"-//W3C//DTD HTML 4.01//EN", HTML5의 경우 빈 문자열. DocumentType.systemId읽기 전용-
DOMString입니다. 예,"http://www.w3.org/TR/html4/strict.dtd", HTML5의 경우 빈 문자열.
메소드
부모 Node 로부터 메소드를 상속받고 ChildNode 인터페이스를 구현합니다.
ChildNode.remove()-
부모의 자식 리스트로부터 객체를 제거합니다.
명세
| Specification |
|---|
| DOM> # interface-documenttype> |
