html5/spec Overview.html,1.2057,1.2058

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv20968

Modified Files:
	Overview.html 
Log Message:
Make the structured data cloning algorithm support RegExp, ImageData, and be more explicit and prototypes and Error objects. (whatwg r2887)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2057
retrieving revision 1.2058
diff -u -d -r1.2057 -r1.2058
--- Overview.html	20 Mar 2009 21:09:45 -0000	1.2057
+++ Overview.html	20 Mar 2009 22:13:11 -0000	1.2058
@@ -5885,7 +5885,26 @@
 
    <dd><p>Return a newly constructed <code>Date</code> object with the same value as <var title="">input</var>.</dd>
 
-   <dt>If <var title="">input</var> is a host object</dt>
+   <dt>If <var title="">input</var> is a <code>RegExp</code> object</dt>
+
+   <dd>
+
+    <p>Return a newly constructed <code>RegExp</code> object with the same pattern and flags as <var title="">input</var>.</p>
+
+    <p class=note>The value of the <code title="">lastIndex</code> property is not copied.</p>
+
+   </dd>
+
+   <dt>If <var title="">input</var> is a <code><a href=#imagedata>ImageData</a></code> object</dt>
+
+   <dd><p>Return a newly constructed <code><a href=#imagedata>ImageData</a></code> object
+   with the same <code title=dom-imagedata-width><a href=#dom-imagedata-width>width</a></code> and
+   <code title=dom-imagedata-height><a href=#dom-imagedata-height>height</a></code> as <var title="">input</var>, and with a newly constructed
+   <code><a href=#canvaspixelarray>CanvasPixelArray</a></code> for its <code title=dom-imagedata-data><a href=#dom-imagedata-data>data</a></code> attribute, with the same
+   <code title=dom-canvaspixelarray-length><a href=#dom-canvaspixelarray-length>length</a></code> and pixel
+   values as the <var title="">input</var>'s.</dd>
+
+   <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
    <dd><p>Return the null value.</dd>
 
@@ -5906,19 +5925,29 @@
      same type as <var title="">input</var>: either an Array or an
      Object.</li>
 
-     <li><p>For each property in <var title="">input</var>, add a
-     corresponding property to <var title="">output</var> having the
-     same name, and having a value created from invoking the
-     <a href=#internal-structured-cloning-algorithm>internal structured cloning algorithm</a> recursively
-     with the value of the property as the "<var title="">input</var>"
-     argument and <var title="">new memory</var> as the "<var title="">memory</var>" argument. The order of the properties in
-     the <var title="">input</var> and <var title="">output</var>
-     objects must be the same.</li>
+     <li>
+
+      <p>For each enumerable property in <var title="">input</var>,
+      add a corresponding property to <var title="">output</var>
+      having the same name, and having a value created from invoking
+      the <a href=#internal-structured-cloning-algorithm>internal structured cloning algorithm</a>
+      recursively with the value of the property as the "<var title="">input</var>" argument and <var title="">new
+      memory</var> as the "<var title="">memory</var>" argument. The
+      order of the properties in the <var title="">input</var> and
+      <var title="">output</var> objects must be the same.</p>
+
+      <p class=note>This does not walk the prototype chain.</p>
+
+     </li>
 
      <li><p>Return <var title="">output</var>.</li>
 
     </ol></dd>
 
+   <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>)</dt>
+
+   <dd><p>Return the null value.</dd>
+
   </dl></div><h4 id=domstringmap><span class=secno>2.9.5 </span>DOMStringMap</h4><p>The <code><a href=#domstringmap-0>DOMStringMap</a></code> interface represents a set of
   name-value pairs. It exposes these using the scripting language's
   native mechanisms for property access.<div class=impl>

Received on Friday, 20 March 2009 22:13:22 UTC