[html5] r7729 - [giow] (3) document.open() legacy hack for compat Fixing https://www.w3.org/Bugs [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 4 17:07:17 PST 2013


Author: ianh
Date: 2013-03-04 17:07:16 -0800 (Mon, 04 Mar 2013)
New Revision: 7729

Modified:
   complete.html
   index
   source
Log:
[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

Modified: complete.html
===================================================================
--- complete.html	2013-03-03 05:49:35 UTC (rev 7728)
+++ complete.html	2013-03-05 01:07:16 UTC (rev 7729)
@@ -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 — Last Updated 3 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -11824,11 +11824,20 @@
 
     <!-- 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
     token with the tag name "pre" followed by a single U+000A LINE FEED (LF) character<!-- to get
@@ -43016,12 +43025,12 @@
           <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>

Modified: index
===================================================================
--- index	2013-03-03 05:49:35 UTC (rev 7728)
+++ index	2013-03-05 01:07:16 UTC (rev 7729)
@@ -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 — Last Updated 3 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -11824,11 +11824,20 @@
 
     <!-- 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
     token with the tag name "pre" followed by a single U+000A LINE FEED (LF) character<!-- to get
@@ -43016,12 +43025,12 @@
           <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>

Modified: source
===================================================================
--- source	2013-03-03 05:49:35 UTC (rev 7728)
+++ source	2013-03-05 01:07:16 UTC (rev 7729)
@@ -12039,11 +12039,21 @@
 
     <!-- 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
     token with the tag name "pre" followed by a single U+000A LINE FEED (LF) character<!-- to get




More information about the Commit-Watchers mailing list