- From: poot <cvsmail@w3.org>
- Date: Sat, 21 Mar 2009 07:15:15 +0900 (JST)
- To: public-html-diffs@w3.org
Make the structured data cloning algorithm support RegExp, ImageData, and be more explicit and prototypes and Error objects. (whatwg r2887) internal structured cloning algorithm http://people.w3.org/mike/diffs/html5/spec/Overview.1.2058.html#internal-structured-cloning-algorithm 2.9.5 DOMStringMap http://people.w3.org/mike/diffs/html5/spec/Overview.1.2058.html#domstringmap http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2057&r2=1.2058&f=h http://html5.org/tools/web-apps-tracker?from=2886&to=2887 =================================================================== 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:15:56 UTC