Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Change the algorithm to avoid step 3 being a no-op. This will…
… all become moot when I merge the -2 and -3 variants of this algorithm together.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8513

git-svn-id: http://svn.whatwg.org/webapps@4524 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 6, 2010
1 parent f75c3b8 commit 9f1415d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
13 changes: 7 additions & 6 deletions complete.html
Expand Up @@ -67763,9 +67763,10 @@ <h4 id=posting-messages-with-message-ports><span class=secno>10.4.4 </span>Posti

<li> <!-- NEW STEP -->

<p>If the <var title="">ports</var> argument is null, then
act as if the method had just been <a href=#dom-window-postmessage-2 title=dom-window-postMessage-2>called with two arguments</a>,
<var title="">message</var> and <var title="">targetOrigin</var>.</p>
<p>If the <var title="">ports</var> argument is empty<!-- or null
(if we make it nullable)-->, then act as if the method had just
been <a href=#dom-window-postmessage-2 title=dom-window-postMessage-2>called with two
arguments</a>, <var title="">message</var> and <var title="">targetOrigin</var>.</p>

</li>

Expand All @@ -67787,11 +67788,11 @@ <h4 id=posting-messages-with-message-ports><span class=secno>10.4.4 </span>Posti
port with the <code><a href=#window>Window</a></code> object on which the method was
invoked as the owner of the clone, and append the clone to the
<var title="">new ports</var> array.</p>

<p class=note>If the original <var title="">ports</var>
<!--
<p class="note">If the original <var title="">ports</var>
array was empty, then the <var title="">new ports</var> array will
also be empty.</p>

-->
</li>

<li>
Expand Down
13 changes: 7 additions & 6 deletions index
Expand Up @@ -59390,9 +59390,10 @@ function receiver(e) {

<li> <!-- NEW STEP -->

<p>If the <var title="">ports</var> argument is null, then
act as if the method had just been <a href=#dom-window-postmessage-2 title=dom-window-postMessage-2>called with two arguments</a>,
<var title="">message</var> and <var title="">targetOrigin</var>.</p>
<p>If the <var title="">ports</var> argument is empty<!-- or null
(if we make it nullable)-->, then act as if the method had just
been <a href=#dom-window-postmessage-2 title=dom-window-postMessage-2>called with two
arguments</a>, <var title="">message</var> and <var title="">targetOrigin</var>.</p>

</li>

Expand All @@ -59414,11 +59415,11 @@ function receiver(e) {
port with the <code><a href=#window>Window</a></code> object on which the method was
invoked as the owner of the clone, and append the clone to the
<var title="">new ports</var> array.</p>

<p class=note>If the original <var title="">ports</var>
<!--
<p class="note">If the original <var title="">ports</var>
array was empty, then the <var title="">new ports</var> array will
also be empty.</p>

-->
</li>

<li>
Expand Down
12 changes: 6 additions & 6 deletions source
Expand Up @@ -77283,10 +77283,10 @@ function receiver(e) {

<li> <!-- NEW STEP -->

<p>If the <var title="">ports</var> argument is null, then
act as if the method had just been <span
title="dom-window-postMessage-2">called with two arguments</span>,
<var title="">message</var> and <var
<p>If the <var title="">ports</var> argument is empty<!-- or null
(if we make it nullable)-->, then act as if the method had just
been <span title="dom-window-postMessage-2">called with two
arguments</span>, <var title="">message</var> and <var
title="">targetOrigin</var>.</p>

</li>
Expand All @@ -77311,11 +77311,11 @@ function receiver(e) {
port with the <code>Window</code> object on which the method was
invoked as the owner of the clone, and append the clone to the
<var title="">new ports</var> array.</p>

<!--
<p class="note">If the original <var title="">ports</var>
array was empty, then the <var title="">new ports</var> array will
also be empty.</p>

-->
</li>

<li>
Expand Down

0 comments on commit 9f1415d

Please sign in to comment.