From c9bb505668606515a4e72a2c6f72a8b2bdcbe982 Mon Sep 17 00:00:00 2001 From: Bill Edgington Date: Tue, 5 Nov 2013 17:18:27 -0500 Subject: [PATCH 1/2] Fixes #381 --- entries/clone.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/clone.xml b/entries/clone.xml index 8dcd4fb2..208932d5 100644 --- a/entries/clone.xml +++ b/entries/clone.xml @@ -18,7 +18,7 @@ Create a deep copy of the set of matched elements. -

The .clone() method performs a deep 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 input, and textarea or user selections made to a select) is not copied to the cloned elements. The clone operation sets these fields to their default values as specified in the HTML.

+

The .clone() method performs a deep 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.

When used in conjunction with one of the insertion methods, .clone() is a convenient way to duplicate elements on a page. Consider the following HTML:


 <div class="container">

From 27b4db52724d9e572d2d65b0fab4762a460210b5 Mon Sep 17 00:00:00 2001
From: Bill Edgington 
Date: Thu, 7 Nov 2013 11:44:40 -0500
Subject: [PATCH 2/2] Fixes #381

---
 entries/clone.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/entries/clone.xml b/entries/clone.xml
index 208932d5..91d7bc29 100644
--- a/entries/clone.xml
+++ b/entries/clone.xml
@@ -19,6 +19,9 @@
   Create a deep copy of the set of matched elements.
   
     

The .clone() method performs a deep 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.

+
+

Note: For performance reasons, the dynamic state of certain form elements (e.g., user data typed into textarea and user selections made to a select) is not copied to the cloned elements. When cloning input elements, the dynamic state of the element (e.g., user data typed into text inputs and user selections made to a checkbox) is retained in the cloned elements.

+

When used in conjunction with one of the insertion methods, .clone() is a convenient way to duplicate elements on a page. Consider the following HTML:


 <div class="container">