Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (3) document.open() legacy hack for compat
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20288
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7729 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 5, 2013
1 parent b98fcb2 commit 0146b7d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
17 changes: 13 additions & 4 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 3 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 5 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 @@ -11824,10 +11824,19 @@ <h4 id=opening-the-input-stream><span class=secno>3.4.1 </span>Opening the input

<!-- text/plain handling -->

<p>If <var title="">type</var> is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string
"<code>replace</code>", then, for historical reasons, set it to the string "<code title="">text/html</code>".</p>

<p>Otherwise:</p>

<p>If the <var title="">type</var> string contains a U+003B SEMICOLON character (;), remove the
first such character and all characters from it up to the end of the string.</p>

<li><p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from <var title="">type</var>.</p>
<p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from <var title="">type</var>.</p>

</li>

<li>

<p>If <var title="">type</var> is <em>not</em> now an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match
for the string "<code><a href=#text/html>text/html</a></code>", then act as if the tokenizer had emitted a start tag
Expand Down Expand Up @@ -43016,12 +43025,12 @@ <h4 id=table-sorting-model><span class=secno>4.9.13 </span><dfn>Table sorting mo
<p>Set <var title="">negatives prejudiced</var> to true.</p>
<p><a href=#sort-parser-push-the-buffer title="sort parser push the buffer">Push the buffer</a>.</p>
</dd>
<dt>If <var title="">c</var> is and any of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dt>If <var title="">c</var> is a U+002E FULL STOP character (.) and any of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dd>
<p>Set <var title="">decimals prejudiced</var> to true.</p>
<p><a href=#sort-parser-push-the-checkpoint title="sort parser push the checkpoint">Push the checkpoint</a>.</p>
</dd>
<dt>If <var title="">c</var> is and none of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dt>If <var title="">c</var> is a U+002E FULL STOP character (.) and none of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dd>
<p><a href=#sort-parser-push-the-buffer title="sort parser push the buffer">Push the buffer</a>.</p>
</dd>
Expand Down
17 changes: 13 additions & 4 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 3 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 5 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 @@ -11824,10 +11824,19 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )

<!-- text/plain handling -->

<p>If <var title="">type</var> is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string
"<code>replace</code>", then, for historical reasons, set it to the string "<code title="">text/html</code>".</p>

<p>Otherwise:</p>

<p>If the <var title="">type</var> string contains a U+003B SEMICOLON character (;), remove the
first such character and all characters from it up to the end of the string.</p>

<li><p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from <var title="">type</var>.</p>
<p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from <var title="">type</var>.</p>

</li>

<li>

<p>If <var title="">type</var> is <em>not</em> now an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match
for the string "<code><a href=#text/html>text/html</a></code>", then act as if the tokenizer had emitted a start tag
Expand Down Expand Up @@ -43016,12 +43025,12 @@ the cell that corresponds to the values of the two dice.
<p>Set <var title="">negatives prejudiced</var> to true.</p>
<p><a href=#sort-parser-push-the-buffer title="sort parser push the buffer">Push the buffer</a>.</p>
</dd>
<dt>If <var title="">c</var> is and any of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dt>If <var title="">c</var> is a U+002E FULL STOP character (.) and any of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dd>
<p>Set <var title="">decimals prejudiced</var> to true.</p>
<p><a href=#sort-parser-push-the-checkpoint title="sort parser push the checkpoint">Push the checkpoint</a>.</p>
</dd>
<dt>If <var title="">c</var> is and none of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dt>If <var title="">c</var> is a U+002E FULL STOP character (.) and none of the characters in <var title="">value</var> past the <var title="">index</var>th character are <a href=#ascii-digits>ASCII digits</a></dt>
<dd>
<p><a href=#sort-parser-push-the-buffer title="sort parser push the buffer">Push the buffer</a>.</p>
</dd>
Expand Down
12 changes: 11 additions & 1 deletion source
Expand Up @@ -12039,10 +12039,20 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )

<!-- text/plain handling -->

<p>If <var title="">type</var> is an <span>ASCII case-insensitive</span> match for the string
"<code>replace</code>", then, for historical reasons, set it to the string "<code
title="">text/html</code>".</p>

<p>Otherwise:</p>

<p>If the <var title="">type</var> string contains a U+003B SEMICOLON character (;), remove the
first such character and all characters from it up to the end of the string.</p>

<li><p><span>Strip leading and trailing whitespace</span> from <var title="">type</var>.</p>
<p><span>Strip leading and trailing whitespace</span> from <var title="">type</var>.</p>

</li>

<li>

<p>If <var title="">type</var> is <em>not</em> now an <span>ASCII case-insensitive</span> match
for the string "<code>text/html</code>", then act as if the tokenizer had emitted a start tag
Expand Down

0 comments on commit 0146b7d

Please sign in to comment.