Skip to content

Commit

Permalink
[giow] (2) Change handling of postMessage() to fire an exception when…
Browse files Browse the repository at this point in the history
… the targetOrigin has a path/query/fragment.

git-svn-id: http://svn.whatwg.org/webapps@2354 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2008
1 parent 8f158e6 commit e581149
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 15 deletions.
40 changes: 31 additions & 9 deletions index
Expand Up @@ -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-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 18 October 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 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>
Expand Down Expand Up @@ -42629,11 +42629,22 @@ function receiver(e) {
<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>&lt;path&gt;</a></var> that is neither
empty nor a single U+002F SOLIDUS character (/).</li>

<li>A <var title=url-query><a href=#url-query>&lt;query&gt;</a></var> that is not
empty.</li>

<li>A <var title=url-fragment><a href=#url-fragment>&lt;fragment&gt;</a></var> that is not
empty.</li>

</ul></li>

<li>

Expand Down Expand Up @@ -42693,11 +42704,22 @@ function receiver(e) {
<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>&lt;path&gt;</a></var> that is neither
empty nor a single U+002F SOLIDUS character (/).</li>

<li>A <var title=url-query><a href=#url-query>&lt;query&gt;</a></var> that is not
empty.</li>

<li>A <var title=url-fragment><a href=#url-fragment>&lt;fragment&gt;</a></var> that is not
empty.</li>

</ul></li>

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

Expand Down
42 changes: 36 additions & 6 deletions source
Expand Up @@ -48550,10 +48550,25 @@ function receiver(e) {
<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">&lt;path&gt;</var> that is neither
empty nor a single U+002F SOLIDUS character (/).</li>

<li>A <var title="url-query">&lt;query&gt;</var> that is not
empty.</li>

<li>A <var title="url-fragment">&lt;fragment&gt;</var> that is not
empty.</li>

</ul>

</li>

Expand Down Expand Up @@ -48631,10 +48646,25 @@ function receiver(e) {
<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">&lt;path&gt;</var> that is neither
empty nor a single U+002F SOLIDUS character (/).</li>

<li>A <var title="url-query">&lt;query&gt;</var> that is not
empty.</li>

<li>A <var title="url-fragment">&lt;fragment&gt;</var> that is not
empty.</li>

</ul>

</li>

Expand Down

0 comments on commit e581149

Please sign in to comment.