hixie: Update postMessage() to do the transfers after the cloning so that if cloning fails, the transferables don't get killed. (whatwg r6697)

hixie: Update postMessage() to do the transfers after the cloning so
that if cloning fails, the transferables don't get killed. (whatwg
r6697)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5367&r2=1.5368&f=h
http://html5.org/tools/web-apps-tracker?from=6696&to=6697

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5367
retrieving revision 1.5368
diff -u -d -r1.5367 -r1.5368
--- Overview.html 18 Oct 2011 23:04:00 -0000 1.5367
+++ Overview.html 19 Oct 2011 00:49:45 -0000 1.5368
@@ -320,7 +320,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-18-october-2011">Editor's Draft 18 October 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-19-october-2011">Editor's Draft 19 October 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>
@@ -466,7 +466,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 18 October 2011 Editor's Draft.
+  This specification is the 19 October 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
@@ -7462,9 +7462,8 @@
   clone</dfn> of a value, optionally with a <i>transfer map</i>, it
   must run the following algorithm, which either returns a separate
   value, or throws an exception. If a <i>transfer map</i> is provided,
-  it consists of a association list of pairs of
-  <code><a href="#transferable">Transferable</a></code> objects; in each pair, one is the
-  <em>old</em> object and one is the <em>new</em> object.</p>
+  it consists of a association list of <code><a href="#transferable">Transferable</a></code>
+  objects to placeholder objects.</p>
 
   <ol><li><p>Let <var title="">input</var> be the value being
    cloned.</li>
@@ -7479,9 +7478,9 @@
    <em>source</em> object and the other the <em>destination</em>
    object.</li>
 
-   <li><p>For each pair of objects in <var title="">transfer
-   map</var>, add a mapping from the old object (the source object) to
-   the new object (the destination object) to <var title="">memory</var>.</li>
+   <li><p>For each mapping in <var title="">transfer map</var>, add a
+   mapping from the <code><a href="#transferable">Transferable</a></code> object (the source
+   object) to the placeholder object (the destination object) to <var title="">memory</var>.</li>
 
    <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

Received on Wednesday, 19 October 2011 00:50:14 UTC