W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2011

html5/postmsg Overview.html,1.102,1.103

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 17 Oct 2011 22:13:36 +0000
To: public-html-commits@w3.org
Message-Id: <E1RFvRA-0003ni-0w@lionel-hutz.w3.org>
Update of /sources/public/html5/postmsg
In directory hutz:/tmp/cvs-serv14588

Modified Files:
	Overview.html 
Log Message:
Revert last checkin. My testing was bogus. (whatwg r6691)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/postmsg/Overview.html,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- Overview.html	17 Oct 2011 21:50:59 -0000	1.102
+++ Overview.html	17 Oct 2011 22:13:33 -0000	1.103
@@ -589,7 +589,6 @@
   careful to allow access to certain properties but not others.</p>
 
   </div><h3 id="posting-messages"><span class="secno">4.3 </span>Posting messages</h3><dl class="domintro"><dt><var title="">window</var> . <code title="dom-window-postMessage"><a href="#dom-window-postmessage">postMessage</a></code>(<var title="">message</var>, <var title="">targetOrigin</var> [, <var title="">transfer</var> ])</dt>
-   <dt><var title="">window</var> . <code title="dom-window-postMessage"><a href="#dom-window-postmessage">postMessage</a></code>(<var title="">message</var> [, <var title="">transfer</var> ], <var title="">targetOrigin</var>)</dt>
 
    <dd>
 
@@ -606,10 +605,6 @@
     <p>Throws a <code>DataCloneError</code> if <var title="">transfer</var> array contains duplicate objects or if
     <var title="">message</var> could not be cloned.</p>
 
-    <p>The second and third arguments can be given in either order,
-    and the <var title="">transfer</var> array can be omitted
-    entirely.</p>
-
    </dd>
 
   </dl><p class="note">When posting a message to a <code>Window</code> of a
@@ -624,33 +619,12 @@
   their readiness to receive messages, and for the parent to wait for
   this message before beginning posting messages.<div class="impl">
 
-  <p>When a script invokes the <dfn id="dom-window-postmessage" title="dom-window-postMessage"><code>postMessage()</code></dfn>
-  method (with two or three arguments) on a <code>Window</code>
-  object, the user agent must follow these steps:</p>
+  <p>When a script invokes the <dfn id="dom-window-postmessage" title="dom-window-postMessage"><code>postMessage(<var title="">message</var>, <var title="">targetOrigin</var>, <var title="">transfer</var>)</code></dfn> method (with two or three
+  arguments) on a <code>Window</code> object, the user agent must
+  follow these steps:</p>
 
   <ol><li>
 
-    <p>Let <var title="">message</var> be the first argument.</p>
-
-   </li>
-
-   <li>
-
-    <p>Let <var title="">targetOrigin</var> be the second argument if
-    the second argument is a string, or else the third argument.</p>
-
-   </li>
-
-   <li>
-
-    <p>Let <var title="">transfer</var> be the second argument if the
-    second argument is an array of <code>Transferable</code> objects,
-    or else the third argument.</p>
-
-   </li>
-
-   <li>
-
     <p>If the value of the <var title="">targetOrigin</var> argument
     is neither a single U+002A ASTERISK character (*), a single U+002F
     SOLIDUS character (/), nor an <span>absolute URL</span>, then
@@ -674,8 +648,7 @@
 
    <li>
 
-    <p>If the method was invoked with three arguments, run these
-    substeps:</p>
+    <p>If the method was invoked with a third argument <var title="">transfer</var>, run these substeps:</p>
 
     <ol><li>
 
Received on Monday, 17 October 2011 22:13:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 October 2011 22:13:39 GMT