- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 03 Jun 2011 20:20:26 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv3303
Modified Files:
Overview.html
Log Message:
Make structured clone handle getters. (whatwg r6185)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4957
retrieving revision 1.4958
diff -u -d -r1.4957 -r1.4958
--- Overview.html 3 Jun 2011 19:40:16 -0000 1.4957
+++ Overview.html 3 Jun 2011 20:20:23 -0000 1.4958
@@ -7262,14 +7262,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>.</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.</li>
<li><p>Return <var title="">output</var>.</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.</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.</li>
@@ -7355,9 +7360,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>
@@ -44778,7 +44791,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="#structured-clone">structured
+ <ol><li><p>Let <var title="">cloned data</var> be a <a href="#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.</li>
@@ -44875,9 +44888,9 @@
<li>
- <p>Set <code title="dom-history-state"><a href="#dom-history-state">history.state</a></code> to
- another <a href="#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="#structured-clone">structured clone</a> of <var title="">cloned
+ data</var>.</p>
</li>
</ol><p class="note">The <var title="">title</var> is purely
Received on Friday, 3 June 2011 20:20:28 UTC