Skip to content

Commit

Permalink
[giow] (3) document.open() replaces when the current doc is the initi…
Browse files Browse the repository at this point in the history
…al about:blank

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

git-svn-id: http://svn.whatwg.org/webapps@7738 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 7, 2013
1 parent b6a597e commit 6cfd301
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
15 changes: 12 additions & 3 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 6 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 7 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 @@ -11727,8 +11727,17 @@ <h4 id=opening-the-input-stream><span class=secno>3.4.1 </span>Opening the input
<li><p>Let <var title="">type</var> be the value of the first argument, if there is one, or
"<code><a href=#text/html>text/html</a></code>" otherwise.</li>

<li><p>Let <var title="">replace</var> be true if there is a second argument and it is an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the value "replace", and false otherwise.</li>
<li>

<p>If there is a second argument and it is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
value "replace", then let <var title="">replace</var> be true.</p>

<p>Otherwise, if the <a href=#browsing-context>browsing context</a>'s <a href=#session-history>session history</a> contains only
one <code><a href=#document>Document</a></code>, and that was the <code><a href=#about:blank>about:blank</a></code> <code><a href=#document>Document</a></code>
created when the <a href=#browsing-context>browsing context</a> was created, then let <var title="">replace</var>
be true.</p>

<p>Otherwise, let <var title="">replace</var> be false.</li>

<li>

Expand Down
15 changes: 12 additions & 3 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 6 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 7 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 @@ -11727,8 +11727,17 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )
<li><p>Let <var title="">type</var> be the value of the first argument, if there is one, or
"<code><a href=#text/html>text/html</a></code>" otherwise.</li>

<li><p>Let <var title="">replace</var> be true if there is a second argument and it is an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the value "replace", and false otherwise.</li>
<li>

<p>If there is a second argument and it is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
value "replace", then let <var title="">replace</var> be true.</p>

<p>Otherwise, if the <a href=#browsing-context>browsing context</a>'s <a href=#session-history>session history</a> contains only
one <code><a href=#document>Document</a></code>, and that was the <code><a href=#about:blank>about:blank</a></code> <code><a href=#document>Document</a></code>
created when the <a href=#browsing-context>browsing context</a> was created, then let <var title="">replace</var>
be true.</p>

<p>Otherwise, let <var title="">replace</var> be false.</li>

<li>

Expand Down
13 changes: 11 additions & 2 deletions source
Expand Up @@ -11935,8 +11935,17 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )
<li><p>Let <var title="">type</var> be the value of the first argument, if there is one, or
"<code>text/html</code>" otherwise.</p></li>

<li><p>Let <var title="">replace</var> be true if there is a second argument and it is an
<span>ASCII case-insensitive</span> match for the value "replace", and false otherwise.</p></li>
<li>

<p>If there is a second argument and it is an <span>ASCII case-insensitive</span> match for the
value "replace", then let <var title="">replace</var> be true.</p>

<p>Otherwise, if the <span>browsing context</span>'s <span>session history</span> contains only
one <code>Document</code>, and that was the <code>about:blank</code> <code>Document</code>
created when the <span>browsing context</span> was created, then let <var title="">replace</var>
be true.</p>

<p>Otherwise, let <var title="">replace</var> be false.</p></li>

<li>

Expand Down

0 comments on commit 6cfd301

Please sign in to comment.