aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/node/normalize/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/api/node/normalize/index.html')
-rw-r--r--files/ko/web/api/node/normalize/index.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/files/ko/web/api/node/normalize/index.html b/files/ko/web/api/node/normalize/index.html
new file mode 100644
index 0000000000..dca132296c
--- /dev/null
+++ b/files/ko/web/api/node/normalize/index.html
@@ -0,0 +1,56 @@
+---
+title: Node.normalize()
+slug: Web/API/Node/normalize
+tags:
+ - API
+ - DOM
+ - NeedsSpecTable
+ - 노드
+ - 레퍼런스
+ - 메소드
+translation_of: Web/API/Node/normalize
+---
+<div>
+<div>{{APIRef("DOM")}}</div>
+</div>
+
+<p><code><strong>Node.normalize()</strong></code> 메소드는 지정된 노드와 하위 트리의 모든 노드를 "정규화된" 형태로 놓습니다. 정규화된 하위 트리의 텍스트 노드는 비어있지 않으며 인접한 텍스트 노드도 존재하지 않습니다.</p>
+
+<h2 id="Syntax" name="Syntax">문법</h2>
+
+<pre class="syntaxbox"><em>element</em>.normalize();
+</pre>
+
+<h2 id="Example" name="Example">예제</h2>
+
+<pre class="brush:js">var wrapper = document.createElement("div");
+
+wrapper.appendChild( document.createTextNode("Part 1 ") );
+wrapper.appendChild( document.createTextNode("Part 2 ") );
+
+// 이 때, wrapper.childNodes.length === 2
+// wrapper.childNodes[0].textContent === "Part 1 "
+// wrapper.childNodes[1].textContent === "Part 2 "
+
+wrapper.normalize();
+
+// 이제, wrapper.childNodes.length === 1
+// wrapper.childNodes[0].textContent === "Part 1 Part 2 "</pre>
+
+<h2 id="Specification" name="Specification">명세</h2>
+
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-normalize">DOM Level 2 Core: Node.normalize</a></li>
+</ul>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+
+
+<p>{{Compat("api.Node.normalize")}}</p>
+
+<h2 id="See_also" name="See_also">함께 보기</h2>
+
+<ul>
+ <li><a href="/ko/docs/Web/API/Text/splitText" title="DOM/Text.splitText"><code>Text.splitText</code></a></li>
+</ul>