Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (3) Try to define when document.open() doesn't work more preci…
…sely.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17869
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7757 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 15, 2013
1 parent 0bf7965 commit 7b0112b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
15 changes: 6 additions & 9 deletions complete.html
Expand Up @@ -248,7 +248,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 14 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 March 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -11768,16 +11768,13 @@ <h4 id=opening-the-input-stream><span class=secno>3.4.1 </span>Opening the input

<li>

<p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> that isn't a
<a href=#script-created-parser>script-created parser</a>, and the <a href=#insertion-point>insertion point</a> associated with that
parser's <a href=#input-stream>input stream</a> is not undefined (that is, it <em>does</em> point to
somewhere in the input stream), then the method does nothing. Abort these steps and return the
<code><a href=#document>Document</a></code> object on which the method was invoked.</p>
<p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> whose <a href=#script-nesting-level>script nesting
level</a> is greater than zero, then the method does nothing. Abort these steps and return
the <code><a href=#document>Document</a></code> object on which the method was invoked.</p>

<p class=note>This basically causes <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> to
be ignored when it's called in an inline script found during the parsing of data sent over the
network, while still letting it have an effect when called asynchronously or on a document that
is itself being spoon-fed using these APIs.</p>
be ignored when it's called in an inline script found during parsing, while still letting it
have an effect when called asynchronously.</p>

</li>

Expand Down
15 changes: 6 additions & 9 deletions index
Expand Up @@ -248,7 +248,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 14 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 March 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -11768,16 +11768,13 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )

<li>

<p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> that isn't a
<a href=#script-created-parser>script-created parser</a>, and the <a href=#insertion-point>insertion point</a> associated with that
parser's <a href=#input-stream>input stream</a> is not undefined (that is, it <em>does</em> point to
somewhere in the input stream), then the method does nothing. Abort these steps and return the
<code><a href=#document>Document</a></code> object on which the method was invoked.</p>
<p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> whose <a href=#script-nesting-level>script nesting
level</a> is greater than zero, then the method does nothing. Abort these steps and return
the <code><a href=#document>Document</a></code> object on which the method was invoked.</p>

<p class=note>This basically causes <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> to
be ignored when it's called in an inline script found during the parsing of data sent over the
network, while still letting it have an effect when called asynchronously or on a document that
is itself being spoon-fed using these APIs.</p>
be ignored when it's called in an inline script found during parsing, while still letting it
have an effect when called asynchronously.</p>

</li>

Expand Down
13 changes: 5 additions & 8 deletions source
Expand Up @@ -11981,16 +11981,13 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )

<li>

<p>If the <code>Document</code> has an <span>active parser</span> that isn't a
<span>script-created parser</span>, and the <span>insertion point</span> associated with that
parser's <span>input stream</span> is not undefined (that is, it <em>does</em> point to
somewhere in the input stream), then the method does nothing. Abort these steps and return the
<code>Document</code> object on which the method was invoked.</p>
<p>If the <code>Document</code> has an <span>active parser</span> whose <span>script nesting
level</span> is greater than zero, then the method does nothing. Abort these steps and return
the <code>Document</code> object on which the method was invoked.</p>

<p class="note">This basically causes <code title="dom-document-open">document.open()</code> to
be ignored when it's called in an inline script found during the parsing of data sent over the
network, while still letting it have an effect when called asynchronously or on a document that
is itself being spoon-fed using these APIs.</p>
be ignored when it's called in an inline script found during parsing, while still letting it
have an effect when called asynchronously.</p>

</li>

Expand Down

0 comments on commit 7b0112b

Please sign in to comment.