aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/document/compatmode
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/api/document/compatmode')
-rw-r--r--files/ko/web/api/document/compatmode/index.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/files/ko/web/api/document/compatmode/index.html b/files/ko/web/api/document/compatmode/index.html
new file mode 100644
index 0000000000..8a8a33b2fd
--- /dev/null
+++ b/files/ko/web/api/document/compatmode/index.html
@@ -0,0 +1,64 @@
+---
+title: Document.compatMode
+slug: Web/API/Document/compatMode
+tags:
+ - API
+ - DOM
+ - Document
+ - Property
+ - Reference
+translation_of: Web/API/Document/compatMode
+---
+<div>{{ApiRef("DOM")}}</div>
+
+<p><code><strong>Document.compatMode</strong></code> 속성은 문서 렌더링을 <a href="/ko/docs/Web/HTML/Quirks_Mode_and_Standards_Mode">호환 모드</a>에서 진행했는지, 표준 모드에서 진행했는지 나타냅니다.</p>
+
+<h2 id="구문">구문</h2>
+
+<pre class="syntaxbox">const <em>mode</em> = <em>document</em>.compatMode
+</pre>
+
+<h3 id="값">값</h3>
+
+<p>다음 중 하나.</p>
+
+<ul>
+ <li>문서가 호환 모드이면 <code>"BackCompat"</code></li>
+ <li>문서가 호환 모드가 아니거나("표준") 제한적 호환("거의 표준") 모드이면 <code>"CSS1Compat"</code></li>
+</ul>
+
+<div class="blockIndicator note">
+<p><strong>참고:</strong> 위의 모든 모드는 표준화됐으므로, 오래 전에 사용하던 "표준"과 "거의 표준"이라는 이름은 말이 되지 않아 이제 사용하지 않습니다.</p>
+</div>
+
+<h2 id="예제">예제</h2>
+
+<pre class="brush: js">if (document.compatMode == "BackCompat") {
+ // in Quirks mode
+}
+</pre>
+
+<h2 id="명세">명세</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('DOM WHATWG', '/#dom-document-compatmode','compatMode')}}</td>
+ <td>{{Spec2('DOM WHATWG')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+
+
+<p>{{Compat("api.Document.compatMode")}}</p>