aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/documenttype/index.html
blob: f2d8f1cfa2bf0291b42f28bc51f61472a6aa3302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
title: DocumentType
slug: Web/API/DocumentType
tags:
  - API
  - DOM
  - DocumentType
  - 인터페이스
translation_of: Web/API/DocumentType
---
<div>{{APIRef("DOM")}}</div>

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

<p>{{InheritanceDiagram}}</p>

<h2 id="프로퍼티">프로퍼티</h2>

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

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

<h2 id="메소드">메소드</h2>

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

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

<h2 id="명세">명세</h2>

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

<h2 id="브라우저_호환성">브라우저 호환성</h2>



<p>{{Compat("api.DocumentType")}}</p>

<h2 id="함께_보기">함께 보기</h2>

<ul>
 <li><a href="/ko/docs/DOM/DOM_Reference">DOM 인터페이스 목차.</a></li>
 <li>{{domxref("Entity")}}</li>
 <li>{{domxref("Notation")}}</li>
</ul>