- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 03 Jun 2011 20:47:20 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv5940 Modified Files: common-dom-interfaces.html history.html spec.html Log Message: Make structured clone handle getters. (whatwg r6185) [updated by splitter] Index: history.html =================================================================== RCS file: /sources/public/html5/spec/history.html,v retrieving revision 1.1052 retrieving revision 1.1053 diff -u -d -r1.1052 -r1.1053 --- history.html 3 Jun 2011 19:47:03 -0000 1.1052 +++ history.html 3 Jun 2011 20:47:18 -0000 1.1053 @@ -602,7 +602,7 @@ <p>When either of these methods is invoked, the user agent must run the following steps:</p> - <ol><li><p>Let <var title="">clone data</var> be a <a href="common-dom-interfaces.html#structured-clone">structured + <ol><li><p>Let <var title="">cloned data</var> be a <a href="common-dom-interfaces.html#structured-clone">structured clone</a> of the specified <var title="">data</var>. If this throws an exception, then rethrow that exception and abort these steps.</p></li> @@ -699,9 +699,9 @@ <li> - <p>Set <code title="dom-history-state"><a href="#dom-history-state">history.state</a></code> to - another <a href="common-dom-interfaces.html#structured-clone">structured clone</a> of the specified <var title="">data</var>.</p> - + <p>Set <code title="dom-history-state"><a href="#dom-history-state">history.state</a></code> to a + <a href="common-dom-interfaces.html#structured-clone">structured clone</a> of <var title="">cloned + data</var>.</p> </li> </ol><p class="note">The <var title="">title</var> is purely Index: common-dom-interfaces.html =================================================================== RCS file: /sources/public/html5/spec/common-dom-interfaces.html,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- common-dom-interfaces.html 3 Jun 2011 00:48:11 -0000 1.52 +++ common-dom-interfaces.html 3 Jun 2011 20:47:09 -0000 1.53 @@ -1182,14 +1182,19 @@ <li><p>Let <var title="">output</var> be the value resulting from calling the <a href="#internal-structured-cloning-algorithm">internal structured cloning algorithm</a> with - <var title="">input</var> and <var title="">memory</var>.</p></li> + <var title="">input</var> as the "<var title="">input</var>" + argument, <var title="">memory</var> as the "<var title="">memory</var>" argument, and zero as the "<var title="">depth</var>" argument.</p></li> <li><p>Return <var title="">output</var>.</p></li> </ol><p>The <dfn id="internal-structured-cloning-algorithm">internal structured cloning algorithm</dfn> is always - called with two arguments, <var title="">input</var> and <var title="">memory</var>, and its behavior is as follows:</p> + called with three arguments, <var title="">input</var>, <var title="">memory</var>, and <var title="">depth</var>, and its + behavior is as follows:</p> - <ol><li><p>If <var title="">input</var> is the source object of a pair + <ol><li><p>If <var title="">depth</var> is greater than 1, return null + and abort these steps.</p></li> + + <li><p>If <var title="">input</var> is the source object of a pair of objects in <var title="">memory</var>, then return the destination object in that pair of objects and abort these steps.</p></li> @@ -1275,9 +1280,17 @@ object, then, for each enumerable property in <var title="">input</var>, add a new 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="">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> + "<var title="">input</var>" argument, <var title="">memory</var> + as the "<var title="">memory</var>" argument, and <span title=""><var title="">depth</var>+<var title="">newDepth</var></span> as the "<var title="">depth</var>" + argument, where <var title="">newDepth</var> is zero except if + obtaining the value of the property involved executing script, in + which case it is one (1). The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must + be the same, and any properties that involve running script must + be processed in that same order. If obtaining the value of the + property involved executing script, and that script threw an + uncaught exception, then abort the overall <a href="#structured-clone">structured + clone</a> algorithm, with that exception being passed through + to the caller.</p> <p class="note">This does not walk the prototype chain.</p> Index: spec.html =================================================================== RCS file: /sources/public/html5/spec/spec.html,v retrieving revision 1.1511 retrieving revision 1.1512 diff -u -d -r1.1511 -r1.1512 --- spec.html 3 Jun 2011 19:47:04 -0000 1.1511 +++ spec.html 3 Jun 2011 20:47:18 -0000 1.1512 @@ -347,7 +347,7 @@ <a href="Overview.html">single page HTML</a>, <a href="spec.html">multipage HTML</a>, <a href="author/">web developer edition</a>. -This is revision 1.4957. +This is revision 1.4958. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2011 <a href="http://www.w3.org/"><abbr title="World Wide
Received on Friday, 3 June 2011 20:47:27 UTC