W3C home > Mailing lists > Public > public-html-diffs@w3.org > February 2011

hixie: Clarify that the cloning that occurs for importNode() is the same as occurs for cloneNode(). (whatwg r5863)

From: poot <cvsmail@w3.org>
Date: Tue, 08 Feb 2011 19:45:35 -0500
To: public-html-diffs@w3.org
Message-Id: <E1PmyBb-0004s1-34@jay.w3.org>
hixie: Clarify that the cloning that occurs for importNode() is the same
as occurs for cloneNode(). (whatwg r5863)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4705&r2=1.4706&f=h
http://html5.org/tools/web-apps-tracker?from=5862&to=5863

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4705
retrieving revision 1.4706
diff -u -d -r1.4705 -r1.4706
--- Overview.html	9 Feb 2011 00:29:17 -0000	1.4705
+++ Overview.html	9 Feb 2011 00:43:21 -0000	1.4706
@@ -2434,7 +2434,12 @@
   only if its new value is different than its previous value; setting
   an attribute to a value it already has does not change it.<p>The term <dfn title="">empty</dfn>, when used of an attribute
   value, text node, or string, means that the length of the text is
-  zero (i.e. not even containing spaces or control characters).<h4 id="scripting-0"><span class="secno">2.1.4 </span>Scripting</h4><p>The construction "a <code>Foo</code> object", where
+  zero (i.e. not even containing spaces or control characters).<p>Nodes can be <dfn id="concept-clone" title="concept-clone">cloned</dfn>, as
+  described in the DOM Core specification. For example, the <code title="dom-cloneNode">cloneNode()</code> and <code title="dom-importNode">importNode()</code> methods of the
+  <code><a href="#node">Node</a></code> interface both clone nodes, as do a number of
+  algorithms in this specification. Certain <a href="#html-elements">HTML elements</a>
+  (in particular, <code><a href="#the-input-element">input</a></code> and <code><a href="#script">script</a></code>) apply
+  additional requirements on how they are cloned. <a href="#refsDOMCORE">[DOMCORE]</a><h4 id="scripting-0"><span class="secno">2.1.4 </span>Scripting</h4><p>The construction "a <code>Foo</code> object", where
   <code>Foo</code> is actually an interface, is sometimes used instead
   of the more accurate "an object implementing the interface
   <code>Foo</code>".<p>An IDL attribute is said to be <dfn title="">getting</dfn> when
@@ -12843,8 +12848,8 @@
   has been <dfn id="already-started">"already started"</dfn>. Initially,
   <code><a href="#script">script</a></code> elements must have this flag unset (script
   blocks, when created, are not "already started"). When a
-  <code><a href="#script">script</a></code> element is cloned, the "already started" flag,
-  if set, must be propagated to the clone when it is created.</p>
+  <code><a href="#script">script</a></code> element is <a href="#concept-clone" title="concept-clone">cloned</a>, the "already started" flag, if
+  set, must be propagated to the clone when it is created.</p>
 
   <p>The second is a flag indicating whether the element was
   <dfn id="parser-inserted">"parser-inserted"</dfn>. Initially, <code><a href="#script">script</a></code>
@@ -31486,7 +31491,7 @@
   some cases (e.g. for the <a href="#date-state" title="attr-input-type-date">Date</a> state, but not the <a href="#checkbox-state" title="attr-input-type-checkbox">Checkbox</a> state) make an
   <code><a href="#the-input-element">input</a></code> element <i title="concept-input-immutable"><a href="#concept-input-immutable">immutable</a></i>.</p>
 
-  <p>When an <code><a href="#the-input-element">input</a></code> element is cloned, the element's <a href="#concept-fe-value" title="concept-fe-value">value</a>, <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a>,
+  <p>When an <code><a href="#the-input-element">input</a></code> element is <a href="#concept-clone" title="concept-clone">cloned</a>, the element's <a href="#concept-fe-value" title="concept-fe-value">value</a>, <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a>,
   <a href="#concept-fe-checked" title="concept-fe-checked">checkedness</a>, and <a href="#concept-input-checked-dirty-flag" title="concept-input-checked-dirty-flag">dirty checkedness
   flag</a> must be propagated to the clone when it is created.</p>
Received on Wednesday, 9 February 2011 00:45:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 February 2011 00:45:46 GMT