- From: poot <cvsmail@w3.org>
- Date: Mon, 17 Oct 2011 18:13:50 -0400
- To: public-html-diffs@w3.org
postmsg; hixie: Revert last checkin. My testing was bogus. (whatwg r6691) http://dev.w3.org/cvsweb/html5/postmsg/Overview.html?r1=1.102&r2=1.103&f=h http://html5.org/tools/web-apps-tracker?from=6690&to=6691 =================================================================== 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:56 UTC