Skip to content
Permalink
Browse files

[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 0146b7d709db90040fe01545929eed218bbd859f
Showing with 37 additions and 9 deletions.
  1. +13 −4 complete.html
  2. +13 −4 index
  3. +11 −1 source

<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>

<!-- 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
<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>
17 index

<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>

<!-- 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
<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>
12 source

<!-- 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

0 comments on commit 0146b7d

Please sign in to comment.
You can’t perform that action at this time.