--- title: DocumentType slug: Web/API/DocumentType tags: - API - DOM - DocumentType - 인터페이스 translation_of: Web/API/DocumentType ---
{{APIRef("DOM")}}

DocumentType 인터페이스는 doctype을 포함하는 {{domxref("Node")}} 를 나타냅니다.

{{InheritanceDiagram}}

프로퍼티

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

{{domxref("DocumentType.entities")}} {{readonlyInline}} {{obsolete_Inline}}
DTD에 선언된 엔티티의 {{domxref("NamedNodeMap")}} 입니다. 이 맵의 모든 노드는 {{domxref("Entity")}} 인터페이스를 구현합니다.
{{domxref("DocumentType.internalSubset")}} {{readonlyInline}} {{obsolete_Inline}}
내부 하위 집합의 {{domxref("DOMString")}} 입니다. 하위 집합이 존재하지 않을 경우 null입니다. 예, "<!ELEMENT foo (bar)>".
{{domxref("DocumentType.name")}} {{readonlyInline}}
{{domxref("DOMString")}} 입니다. 예, <!DOCTYPE HTML> 의 경우 "html".
{{domxref("DocumentType.notations")}} {{readonlyInline}} {{obsolete_Inline}}
DTD에 선언된 노테이션을 포함한 {{domxref("NamedNodeMap")}} 입니다. 이 맵의 모든 노드는 {{domxref("Notation")}} 인터페이스를 구현합니다.
{{domxref("DocumentType.publicId")}} {{readonlyInline}}
{{domxref("DOMString")}} 입니다. 예, "-//W3C//DTD HTML 4.01//EN", HTML5의 경우 빈 문자열.
{{domxref("DocumentType.systemId")}} {{readonlyInline}}
{{domxref("DOMString")}} 입니다. 예, "http://www.w3.org/TR/html4/strict.dtd", HTML5의 경우 빈 문자열.

메소드

부모 {{domxref("Node")}} 로부터 메소드를 상속받고 {{domxref("ChildNode")}} 인터페이스를 구현합니다.

{{domxref("ChildNode.remove()")}} {{experimental_inline}}
부모의 자식 리스트로부터 객체를 제거합니다.

명세

명세 상태 코멘트
{{SpecName('DOM WHATWG', '#documenttype', 'DocumentType')}} {{Spec2('DOM WHATWG')}} {{domxref("ChildNode")}} 인터페이스의 구현을 추가했음.
internalSubset, entities, notation 프로퍼티를 제거했음.
{{SpecName('DOM3 Core', 'core.html#ID-412266927', 'DocumentType')}} {{Spec2('DOM3 Core')}} {{SpecName('DOM2 Core')}} 으로부터 변경사항 없음.
{{SpecName('DOM2 Core', 'core.html#ID-412266927', 'DocumentType')}} {{Spec2('DOM2 Core')}} publicID, systemID, internalSubset 프로퍼티를 추가했음.
{{SpecName('DOM1', 'level-one-core.html#ID-412266927', 'DocumentType')}} {{Spec2('DOM1')}} 초기 정의

브라우저 호환성

{{Compat("api.DocumentType")}}

함께 보기