[html5] r7973 - [e] (0) Clarify further the use of 'Object object' in structured clone algorith [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Jun 12 16:50:12 PDT 2013
Author: ianh
Date: 2013-06-12 16:50:11 -0700 (Wed, 12 Jun 2013)
New Revision: 7973
Modified:
complete.html
index
source
Log:
[e] (0) Clarify further the use of 'Object object' in structured clone algorith
Affected topics: DOM APIs
Modified: complete.html
===================================================================
--- complete.html 2013-06-12 23:46:48 UTC (rev 7972)
+++ complete.html 2013-06-12 23:50:11 UTC (rev 7973)
@@ -8045,6 +8045,8 @@
<li><p>If <var title="">input</var> is a primitive value, then return that value and abort these
steps.</li>
+ <li><p>Let <var title="">deep clone</var> be false.</li>
+
<li>
<p>The <var title="">input</var> value is an object. Jump to the appropriate step below:</p>
@@ -8137,7 +8139,7 @@
<dd>
<p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object whose
- <code title="">length</code> is equal to the <code title="">length</code> of <var title="">input</var>.</p>
+ <code title="">length</code> is equal to the <code title="">length</code> of <var title="">input</var>, and set <var title="">deep clone</var> to true.</p>
<p class=note>This means that the length of sparse arrays is preserved.</p>
@@ -8146,7 +8148,7 @@
<dt>If <var title="">input</var> is an <code><a href=#the-object-element>Object</a></code> object</dt>
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code>
- object.</dd>
+ object, and set <var title="">deep clone</var> to true.</dd>
<dt>If <var title="">input</var> is an object that another specification defines how to clone</dt>
@@ -8170,8 +8172,7 @@
<li>
- <p>If <var title="">input</var> is an Array object or an Object object, then, for each
- enumerable own property in <var title="">input</var>, run the following steps:</p>
+ <p>If <var title="">deep clone</var> is set, then, for each enumerable own property in <var title="">input</var>, run the following steps:</p>
<ol><li><p>Let <var title="">name</var> be the name of the property.</li>
Modified: index
===================================================================
--- index 2013-06-12 23:46:48 UTC (rev 7972)
+++ index 2013-06-12 23:50:11 UTC (rev 7973)
@@ -8045,6 +8045,8 @@
<li><p>If <var title="">input</var> is a primitive value, then return that value and abort these
steps.</li>
+ <li><p>Let <var title="">deep clone</var> be false.</li>
+
<li>
<p>The <var title="">input</var> value is an object. Jump to the appropriate step below:</p>
@@ -8137,7 +8139,7 @@
<dd>
<p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object whose
- <code title="">length</code> is equal to the <code title="">length</code> of <var title="">input</var>.</p>
+ <code title="">length</code> is equal to the <code title="">length</code> of <var title="">input</var>, and set <var title="">deep clone</var> to true.</p>
<p class=note>This means that the length of sparse arrays is preserved.</p>
@@ -8146,7 +8148,7 @@
<dt>If <var title="">input</var> is an <code><a href=#the-object-element>Object</a></code> object</dt>
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code>
- object.</dd>
+ object, and set <var title="">deep clone</var> to true.</dd>
<dt>If <var title="">input</var> is an object that another specification defines how to clone</dt>
@@ -8170,8 +8172,7 @@
<li>
- <p>If <var title="">input</var> is an Array object or an Object object, then, for each
- enumerable own property in <var title="">input</var>, run the following steps:</p>
+ <p>If <var title="">deep clone</var> is set, then, for each enumerable own property in <var title="">input</var>, run the following steps:</p>
<ol><li><p>Let <var title="">name</var> be the name of the property.</li>
Modified: source
===================================================================
--- source 2013-06-12 23:46:48 UTC (rev 7972)
+++ source 2013-06-12 23:50:11 UTC (rev 7973)
@@ -7695,6 +7695,8 @@
<li><p>If <var title="">input</var> is a primitive value, then return that value and abort these
steps.</p></li>
+ <li><p>Let <var title="">deep clone</var> be false.</p></li>
+
<li>
<p>The <var title="">input</var> value is an object. Jump to the appropriate step below:</p>
@@ -7799,7 +7801,7 @@
<p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object whose
<code title="">length</code> is equal to the <code title="">length</code> of <var
- title="">input</var>.</p>
+ title="">input</var>, and set <var title="">deep clone</var> to true.</p>
<p class="note">This means that the length of sparse arrays is preserved.</p>
@@ -7808,7 +7810,7 @@
<dt>If <var title="">input</var> is an <code>Object</code> object</dt>
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code>
- object.</p></dd>
+ object, and set <var title="">deep clone</var> to true.</p></dd>
<dt>If <var title="">input</var> is an object that another specification defines how to clone</dt>
@@ -7838,8 +7840,8 @@
<li>
- <p>If <var title="">input</var> is an Array object or an Object object, then, for each
- enumerable own property in <var title="">input</var>, run the following steps:</p>
+ <p>If <var title="">deep clone</var> is set, then, for each enumerable own property in <var
+ title="">input</var>, run the following steps:</p>
<ol>
More information about the Commit-Watchers
mailing list