[html5] r1488 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu Apr 24 18:55:03 PDT 2008


Author: ianh
Date: 2008-04-24 18:55:00 -0700 (Thu, 24 Apr 2008)
New Revision: 1488

Modified:
   index
   source
Log:
[giow] (2) Er, make the algorithm actually make sense in an async world.

Modified: index
===================================================================
--- index	2008-04-24 23:59:48 UTC (rev 1487)
+++ index	2008-04-25 01:55:00 UTC (rev 1488)
@@ -25,7 +25,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 24 April 2008</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 25 April 2008</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -38293,9 +38293,26 @@
 
   <ol>
    <li>
+    <p>If the value of the <var title="">targetOrigin</var> argument is
+     neither a single U+002A ASTERISK character ("*") nor a valid URI or IRI,
+     then throw a <code>SYNTAX_ERR</code> exception and abort the overall set
+     of steps. <a href="#refsRFC3490">[RFC3986]</a> <a
+     href="#refsRFC3490">[RFC3987]</a></p>
+
+   <li>
+    <p>Return from the <code title=dom-window-postMessage><a
+     href="#postmessage">postMessage()</a></code> method, but asynchronously
+     continue running these steps.</p>
+
+   <li>
+    <p>Wait for the <code><a href="#window">Window</a></code> object on which
+     the method was invoked to have finished executing any pending scripts.</p>
+    <!-- XXX define this in terms of the event queue -->
+
+   <li>
     <p>Let <var title="">target</var> be the <code>Document</code> object
      that is the <a href="#active">active document</a> of the <code><a
-     href="#window">Window</a></code> object on which the method was invoked.
+     href="#window">Window</a></code> object on which the method was invoked.</p>
 
    <li>
     <p>If the <var title="">targetOrigin</var> argument has a value other
@@ -38304,12 +38321,6 @@
 
     <ol>
      <li>
-      <p>If the value of the <var title="">targetOrigin</var> argument is not
-       a valid URI or IRI, then throw a <code>SYNTAX_ERR</code> exception and
-       abort the overall set of steps. <a href="#refsRFC3490">[RFC3986]</a>
-       <a href="#refsRFC3490">[RFC3987]</a>
-
-     <li>
       <p>If the <a href="#origin0">origin</a> of the <var
        title="">target</var> document is not a scheme/host/port tuple, then
        abort the overall set of steps silently.
@@ -38359,11 +38370,6 @@
     </ol>
 
    <li>
-    <p>Return from the <code title=dom-window-postMessage><a
-     href="#postmessage">postMessage()</a></code> method, but asynchronously
-     continue running these steps.</p>
-
-   <li>
     <p>Create an event that uses the <code><a
      href="#messageevent">MessageEvent</a></code> interface, with the event
      name <code title=event-message><a href="#message0">message</a></code>,
@@ -38388,11 +38394,10 @@
      value, etc</p>
 
    <li>
-    <p>Once the browsing context in which <var title="">target</var> is found
-     has no running scripts, dispatch the event created in the previous step
-     at the <var title="">target</var> document.</p>
-    <!-- XXX define this in
-   terms of the event queue -->
+    <p>Dispatch the event created in the previous step at the <var
+     title="">target</var> document.</p>
+    <!-- XXX define this in terms
+    of the event queue -->
     <p class=big-isue>Should we instead make this an event that bubbles and
      fire it at the 'body' element? It seems inconsistent to make it fire on
      document... Opinions?</p>

Modified: source
===================================================================
--- source	2008-04-24 23:59:48 UTC (rev 1487)
+++ source	2008-04-25 01:55:00 UTC (rev 1488)
@@ -35795,25 +35795,49 @@
 
   <ol>
 
-   <li><p>Let <var title="">target</var> be the <code>Document</code>
-   object that is the <span>active document</span> of the
-   <code>Window</code> object on which the method was
-   invoked.</p></li>
+   <li>
 
+    <p>If the value of the <var title="">targetOrigin</var> argument
+    is neither a single U+002A ASTERISK character ("*") nor a valid
+    URI or IRI, then throw a <code>SYNTAX_ERR</code> exception and
+    abort the overall set of steps. <a
+    href="#refsRFC3490">[RFC3986]</a> <a
+    href="#refsRFC3490">[RFC3987]</a></p>
+
+   </li>
+
    <li>
 
+    <p>Return from the <code
+    title="dom-window-postMessage">postMessage()</code> method, but
+    asynchronously continue running these steps.</p>
+
+   </li>
+
+   <li>
+
+    <p>Wait for the <code>Window</code> object on which the method was
+    invoked to have finished executing any pending scripts.</p>
+    <!-- XXX define this in terms of the event queue -->
+
+   </li>
+
+   <li>
+
+    <p>Let <var title="">target</var> be the <code>Document</code>
+    object that is the <span>active document</span> of the
+    <code>Window</code> object on which the method was invoked.</p>
+
+   </li>
+
+   <li>
+
     <p>If the <var title="">targetOrigin</var> argument has a value
     other than a single literal U+002A ASTERISK character ("*"), run
     these substeps:</p>
 
     <ol>
 
-     <li><p>If the value of the <var title="">targetOrigin</var>
-     argument is not a valid URI or IRI, then throw a
-     <code>SYNTAX_ERR</code> exception and abort the overall set of
-     steps. <a href="#refsRFC3490">[RFC3986]</a> <a
-     href="#refsRFC3490">[RFC3987]</a></p></li>
-
      <li><p>If the <span>origin</span> of the <var
      title="">target</var> document is not a scheme/host/port tuple,
      then abort the overall set of steps silently.</p></li>
@@ -35863,14 +35887,6 @@
 
    <li>
 
-    <p>Return from the <code
-    title="dom-window-postMessage">postMessage()</code> method, but
-    asynchronously continue running these steps.</p>
-
-   </li>
-
-   <li>
-
     <p>Create an event that uses the <code>MessageEvent</code>
     interface, with the event name <code
     title="event-message">message</code>, which does not bubble, is
@@ -35893,16 +35909,16 @@
 
    </li>
 
-   <li><p>Once the browsing context in which <var
-   title="">target</var> is found has no running scripts, dispatch the
-   event created in the previous step at the <var
-   title="">target</var> document.</p> <!-- XXX define this in
-   terms of the event queue -->
+   <li>
 
-   <p class="big-isue">Should we instead make this an event that
-   bubbles and fire it at the 'body' element? It seems inconsistent to
-   make it fire on document... Opinions?</p>
+    <p>Dispatch the event created in the previous step at the <var
+    title="">target</var> document.</p> <!-- XXX define this in terms
+    of the event queue -->
 
+    <p class="big-isue">Should we instead make this an event that
+    bubbles and fire it at the 'body' element? It seems inconsistent
+    to make it fire on document... Opinions?</p>
+
    </li>
 
   </ol>




More information about the Commit-Watchers mailing list