hixie: Structured clone: Preserve sparse arrays and mention that non-index properties of arrays are preserved too. (whatwg r6274)

hixie: Structured clone: Preserve sparse arrays and mention that non-
index properties of arrays are preserved too. (whatwg r6274)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5021&r2=1.5022&f=h
http://html5.org/tools/web-apps-tracker?from=6273&to=6274

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5021
retrieving revision 1.5022
diff -u -d -r1.5021 -r1.5022
--- Overview.html 23 Jun 2011 23:48:53 -0000 1.5021
+++ Overview.html 24 Jun 2011 00:32:45 -0000 1.5022
@@ -318,7 +318,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-23-june-2011">Editor's Draft 23 June 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-24-june-2011">Editor's Draft 24 June 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -464,7 +464,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 23 June 2011 Editor's Draft.
+  This specification is the 24 June 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -7378,7 +7378,16 @@
 
      <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>
 
@@ -7422,6 +7431,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>

Received on Friday, 24 June 2011 00:33:01 UTC