[html5] r6274 - [giow] (0) Structured clone: Preserve sparse arrays and mention that non-index p [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jun 23 17:32:41 PDT 2011
Author: ianh
Date: 2011-06-23 17:32:39 -0700 (Thu, 23 Jun 2011)
New Revision: 6274
Modified:
complete.html
index
source
Log:
[giow] (0) Structured clone: Preserve sparse arrays and mention that non-index properties of arrays are preserved too.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12404
Modified: complete.html
===================================================================
--- complete.html 2011-06-23 23:48:46 UTC (rev 6273)
+++ complete.html 2011-06-24 00:32:39 UTC (rev 6274)
@@ -239,7 +239,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 23 June 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 24 June 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>
@@ -8772,8 +8772,17 @@
<dt>If <var title="">input</var> is an Array object</dt>
- <dd><p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object.</dd>
+ <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>
+
+ <p class=note>This means that the length of sparse arrays is
+ preserved.</p>
+
+ </dd>
+
<dt>If <var title="">input</var> is an Object object</dt>
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</dd>
@@ -8816,6 +8825,10 @@
output it would just have the default state (typically read-write,
though that could depend on the scripting environment).</p>
+ <p class=note>Properties of Array objects are not treated any
+ differently than those of other Objects. In particular, this means
+ that non-index properties of arrays are copied as well.</p>
+
</li>
<li><p>Return <var title="">output</var>.</li>
Modified: index
===================================================================
--- index 2011-06-23 23:48:46 UTC (rev 6273)
+++ index 2011-06-24 00:32:39 UTC (rev 6274)
@@ -243,7 +243,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 23 June 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 24 June 2011</h2>
</hgroup><dl><dt><strong>Web developer edition</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -8641,8 +8641,17 @@
<dt>If <var title="">input</var> is an Array object</dt>
- <dd><p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object.</dd>
+ <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>
+
+ <p class=note>This means that the length of sparse arrays is
+ preserved.</p>
+
+ </dd>
+
<dt>If <var title="">input</var> is an Object object</dt>
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</dd>
@@ -8685,6 +8694,10 @@
output it would just have the default state (typically read-write,
though that could depend on the scripting environment).</p>
+ <p class=note>Properties of Array objects are not treated any
+ differently than those of other Objects. In particular, this means
+ that non-index properties of arrays are copied as well.</p>
+
</li>
<li><p>Return <var title="">output</var>.</li>
Modified: source
===================================================================
--- source 2011-06-23 23:48:46 UTC (rev 6273)
+++ source 2011-06-24 00:32:39 UTC (rev 6274)
@@ -8775,8 +8775,18 @@
<dt>If <var title="">input</var> is an Array object</dt>
- <dd><p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object.</p></dd>
+ <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>
+
+ <p class="note">This means that the length of sparse arrays is
+ preserved.</p>
+
+ </dd>
+
<dt>If <var title="">input</var> is an Object object</dt>
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</p></dd>
@@ -8826,6 +8836,10 @@
output it would just have the default state (typically read-write,
though that could depend on the scripting environment).</p>
+ <p class="note">Properties of Array objects are not treated any
+ differently than those of other Objects. In particular, this means
+ that non-index properties of arrays are copied as well.</p>
+
</li>
<li><p>Return <var title="">output</var>.</p></li>
More information about the Commit-Watchers
mailing list