aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/document/characterset/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/api/document/characterset/index.html')
-rw-r--r--files/ko/web/api/document/characterset/index.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/files/ko/web/api/document/characterset/index.html b/files/ko/web/api/document/characterset/index.html
new file mode 100644
index 0000000000..647c25ab41
--- /dev/null
+++ b/files/ko/web/api/document/characterset/index.html
@@ -0,0 +1,47 @@
+---
+title: Document.characterSet
+slug: Web/API/Document/characterSet
+tags:
+ - API
+ - DOM
+ - Document
+ - Property
+ - Reference
+translation_of: Web/API/Document/characterSet
+---
+<div>{{ ApiRef("DOM") }}</div>
+
+<p><code><strong>Document.characterSet</strong></code> 읽기 전용 속성은 현재 문서가 렌더링에 사용하는 <a href="/en-US/docs/Glossary/character_encoding">문자 인코딩</a>을 반환합니다.</p>
+
+<div class="note">
+<p><strong>참고:</strong> <code>Document.charset</code>과 <code>Document.inputEncoding</code> 속성은 <code>Document.characterSet</code>의 이전 별칭입니다. 더 이상 사용지 마세요.</p>
+</div>
+
+<h2 id="예제">예제</h2>
+
+<pre class="brush: html">&lt;button onclick="console.log(document.characterSet);"&gt;
+ 콘솔에 인코딩 출력
+&lt;/button&gt;
+&lt;!-- "ISO-8859-1"이나 "UTF-8" 등, 문서의 캐릭터 셋 기록 --&gt;
+</pre>
+
+<h2 id="명세">명세</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th>Specification</th>
+ <th>Status</th>
+ <th>Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('DOM WHATWG', '#dom-document-characterset', 'characterSet')}}</td>
+ <td>{{Spec2('DOM WHATWG')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+<p>{{Compat("api.Document.characterSet")}}</p>