Skip to content

Commit b704894

Browse files
committed
fixed a small typo in the clone entry
1 parent 2848695 commit b704894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/clone.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</signature>
1919
<desc>Create a deep copy of the set of matched elements.</desc>
2020
<longdesc>
21-
<p>The <code>.clone()</code> method performs a <em>deep</em> copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements and text nodes. For performance reasons, the dynamic state of form elements (e.g., user data typed into <code>input</code>, and <code>textarea</code> or user selections made to a <code>select</code>) is not copied to the cloned elemements. The clone operation sets these fields to their default values as specified in the HTML.</p>
21+
<p>The <code>.clone()</code> method performs a <em>deep</em> copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements and text nodes. For performance reasons, the dynamic state of form elements (e.g., user data typed into <code>input</code>, and <code>textarea</code> or user selections made to a <code>select</code>) is not copied to the cloned elements. The clone operation sets these fields to their default values as specified in the HTML.</p>
2222
<p>When used in conjunction with one of the insertion methods, <code>.clone()</code> is a convenient way to duplicate elements on a page. Consider the following HTML:</p>
2323
<pre><code>&lt;div class="container"&gt;
2424
&lt;div class="hello"&gt;Hello&lt;/div&gt;
@@ -106,4 +106,4 @@ $('#copy-correct')
106106
<category slug="manipulation/copying"/>
107107
<category slug="version/1.0"/>
108108
<category slug="version/1.5"/>
109-
</entry>
109+
</entry>

0 commit comments

Comments
 (0)