[html5] r2354 - [giow] (2) Change handling of postMessage() to fire an exception when the target [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 20 07:08:24 PDT 2008


Author: ianh
Date: 2008-10-20 07:08:23 -0700 (Mon, 20 Oct 2008)
New Revision: 2354

Modified:
   index
   source
Log:
[giow] (2) Change handling of postMessage() to fire an exception when the targetOrigin has a path/query/fragment.

Modified: index
===================================================================
--- index	2008-10-18 01:40:59 UTC (rev 2353)
+++ index	2008-10-20 14:08:23 UTC (rev 2354)
@@ -16,7 +16,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 18 October 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 20 October 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -42629,12 +42629,23 @@
   <ol><li>
 
     <p>If the value of the <var title="">targetOrigin</var> argument
-    is not a single U+002A ASTERISK character ("*"), and <a href=#parse-a-url title="parse a url">parsing</a> it as a <a href=#url>URL</a> fails,
-    then throw a <code>SYNTAX_ERR</code> exception and abort the
-    overall set of steps.</p>
+    is not a single U+002A ASTERISK character ("*"), and either <a href=#parse-a-url title="parse a url">parsing</a> it as a <a href=#url>URL</a> fails,
+    or <a href=#resolve-a-url title="resolve a url">resolving</a> it results in a
+    <a href=#url>URL</a> with one of the following conditions, then throw
+    a <code>SYNTAX_ERR</code> exception and abort the overall set of
+    steps:</p>
 
-   </li>
+    <ul><li>A <var title=url-path><a href=#url-path><path></a></var> that is neither
+     empty nor a single U+002F SOLIDUS character (/).</li>
 
+     <li>A <var title=url-query><a href=#url-query><query></a></var> that is not
+     empty.</li>
+
+     <li>A <var title=url-fragment><a href=#url-fragment><fragment></a></var> that is not
+     empty.</li>
+
+    </ul></li>
+
    <li>
 
     <p>Return from the <code title=dom-window-postMessage-2><a href=#dom-window-postmessage-2>postMessage()</a></code> method, but
@@ -42693,12 +42704,23 @@
   <ol><!-- EXCEPT WHERE NOTED, THESE STEPS ARE IDENTICAL TO THE PREVIOUS SECTION --><!-- one exception is the use of -3 instead of -2 in the xrefs --><li>
 
     <p>If the value of the <var title="">targetOrigin</var> argument
-    is not a single U+002A ASTERISK character ("*"), and <a href=#parse-a-url title="parse a url">parsing</a> it as a <a href=#url>URL</a> fails,
-    then throw a <code>SYNTAX_ERR</code> exception and abort the
-    overall set of steps.</p>
+    is not a single U+002A ASTERISK character ("*"), and either <a href=#parse-a-url title="parse a url">parsing</a> it as a <a href=#url>URL</a> fails,
+    or <a href=#resolve-a-url title="resolve a url">resolving</a> it results in a
+    <a href=#url>URL</a> with one of the following conditions, then throw
+    a <code>SYNTAX_ERR</code> exception and abort the overall set of
+    steps:</p>
 
-   </li>
+    <ul><li>A <var title=url-path><a href=#url-path><path></a></var> that is neither
+     empty nor a single U+002F SOLIDUS character (/).</li>
 
+     <li>A <var title=url-query><a href=#url-query><query></a></var> that is not
+     empty.</li>
+
+     <li>A <var title=url-fragment><a href=#url-fragment><fragment></a></var> that is not
+     empty.</li>
+
+    </ul></li>
+
    <li> <!-- NEW STEP -->
 
     <p>If the <var title="">messagePort</var> argument is null, then

Modified: source
===================================================================
--- source	2008-10-18 01:40:59 UTC (rev 2353)
+++ source	2008-10-20 14:08:23 UTC (rev 2354)
@@ -48550,11 +48550,26 @@
    <li>
 
     <p>If the value of the <var title="">targetOrigin</var> argument
-    is not a single U+002A ASTERISK character ("*"), and <span
+    is not a single U+002A ASTERISK character ("*"), and either <span
     title="parse a url">parsing</span> it as a <span>URL</span> fails,
-    then throw a <code>SYNTAX_ERR</code> exception and abort the
-    overall set of steps.</p>
+    or <span title="resolve a url">resolving</span> it results in a
+    <span>URL</span> with one of the following conditions, then throw
+    a <code>SYNTAX_ERR</code> exception and abort the overall set of
+    steps:</p>
 
+    <ul>
+
+     <li>A <var title="url-path"><path></var> that is neither
+     empty nor a single U+002F SOLIDUS character (/).</li>
+
+     <li>A <var title="url-query"><query></var> that is not
+     empty.</li>
+
+     <li>A <var title="url-fragment"><fragment></var> that is not
+     empty.</li>
+
+    </ul>
+
    </li>
 
    <li>
@@ -48631,11 +48646,26 @@
    <li>
 
     <p>If the value of the <var title="">targetOrigin</var> argument
-    is not a single U+002A ASTERISK character ("*"), and <span
+    is not a single U+002A ASTERISK character ("*"), and either <span
     title="parse a url">parsing</span> it as a <span>URL</span> fails,
-    then throw a <code>SYNTAX_ERR</code> exception and abort the
-    overall set of steps.</p>
+    or <span title="resolve a url">resolving</span> it results in a
+    <span>URL</span> with one of the following conditions, then throw
+    a <code>SYNTAX_ERR</code> exception and abort the overall set of
+    steps:</p>
 
+    <ul>
+
+     <li>A <var title="url-path"><path></var> that is neither
+     empty nor a single U+002F SOLIDUS character (/).</li>
+
+     <li>A <var title="url-query"><query></var> that is not
+     empty.</li>
+
+     <li>A <var title="url-fragment"><fragment></var> that is not
+     empty.</li>
+
+    </ul>
+
    </li>
 
    <li> <!-- NEW STEP -->




More information about the Commit-Watchers mailing list