[html5] r1305 - /

whatwg at whatwg.org whatwg at whatwg.org
Sun Mar 2 14:42:34 PST 2008


Author: ianh
Date: 2008-03-02 14:42:33 -0800 (Sun, 02 Mar 2008)
New Revision: 1305

Modified:
   index
   source
Log:
[wt] (2) DOCTYPE parsing: move the setting of the correctness flag to the places that call the bogus doctype state, so that we can later enter that state without triggering the correctness flag change. This change does not change the black box behaviour of the spec, but it can affect existing implementations that are tracking the spec.

Modified: index
===================================================================
--- index	2008-03-02 19:59:50 UTC (rev 1304)
+++ index	2008-03-02 22:42:33 UTC (rev 1305)
@@ -39662,8 +39662,9 @@
        the word "SYSTEM", then consume those characters and switch to the <a
        href="#before3">before DOCTYPE system identifier state</a>.</p>
 
-      <p>Otherwise, this is the <a href="#parse0">parse error</a>. Switch to
-       the <a href="#bogus0">bogus DOCTYPE state</a>.</p>
+      <p>Otherwise, this is the <a href="#parse0">parse error</a>. Set the
+       DOCTYPE token's correctness flag to <i>incorrect</i>. Switch to the <a
+       href="#bogus0">bogus DOCTYPE state</a>.</p>
     </dl>
 
    <dt><dfn id=before2>Before DOCTYPE public identifier state</dfn>
@@ -39713,7 +39714,8 @@
 
      <dt>Anything else
 
-     <dd><a href="#parse0">Parse error</a>. Switch to the <a
+     <dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
+      correctness flag to <i>incorrect</i>. Switch to the <a
       href="#bogus0">bogus DOCTYPE state</a>.
     </dl>
 
@@ -39825,7 +39827,8 @@
 
      <dt>Anything else
 
-     <dd><a href="#parse0">Parse error</a>. Switch to the <a
+     <dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
+      correctness flag to <i>incorrect</i>. Switch to the <a
       href="#bogus0">bogus DOCTYPE state</a>.
     </dl>
 
@@ -39876,7 +39879,8 @@
 
      <dt>Anything else
 
-     <dd><a href="#parse0">Parse error</a>. Switch to the <a
+     <dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
+      correctness flag to <i>incorrect</i>. Switch to the <a
       href="#bogus0">bogus DOCTYPE state</a>.
     </dl>
 
@@ -39976,7 +39980,8 @@
 
      <dt>Anything else
 
-     <dd><a href="#parse0">Parse error</a>. Switch to the <a
+     <dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
+      correctness flag to <i>incorrect</i>. Switch to the <a
       href="#bogus0">bogus DOCTYPE state</a>.
     </dl>
 
@@ -39988,15 +39993,13 @@
     <dl class=switch>
      <dt>U+003E GREATER-THAN SIGN (>)
 
-     <dd>Set the DOCTYPE token's correctness flag to <i>incorrect</i>. Emit
-      that DOCTYPE token. Switch to the <a href="#data-state">data state</a>.
+     <dd>Emit the DOCTYPE token. Switch to the <a href="#data-state">data
+      state</a>.
 
      <dt>EOF
 
-     <dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
-      correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
-      Reconsume the EOF character in the <a href="#data-state">data
-      state</a>.
+     <dd><a href="#parse0">Parse error</a>. Emit the DOCTYPE token. Reconsume
+      the EOF character in the <a href="#data-state">data state</a>.
 
      <dt>Anything else
 

Modified: source
===================================================================
--- source	2008-03-02 19:59:50 UTC (rev 1304)
+++ source	2008-03-02 22:42:33 UTC (rev 1305)
@@ -37197,7 +37197,8 @@
       for the word "SYSTEM", then consume those characters and switch
       to the <span>before DOCTYPE system identifier state</span>.</p>
 
-      <p>Otherwise, this is the <span>parse error</span>. Switch to
+      <p>Otherwise, this is the <span>parse error</span>. Set the
+      DOCTYPE token's correctness flag to <i>incorrect</i>. Switch to
       the <span>bogus DOCTYPE state</span>.</p>
 
      </dd>
@@ -37243,8 +37244,9 @@
      EOF character in the <span>data state</span>.</dd>
 
      <dt>Anything else</dt>
-     <dd><span>Parse error</span>. Switch to the <span>bogus DOCTYPE
-     state</span>.</dd>
+     <dd><span>Parse error</span>.  Set the DOCTYPE token's
+     correctness flag to <i>incorrect</i>. Switch to the <span>bogus
+     DOCTYPE state</span>.</dd>
 
     </dl>
 
@@ -37346,7 +37348,8 @@
      EOF character in the <span>data state</span>.</dd>
 
      <dt>Anything else</dt>
-     <dd><span>Parse error</span>. Switch to the <span>bogus DOCTYPE
+     <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
+     flag to <i>incorrect</i>. Switch to the <span>bogus DOCTYPE
      state</span>.</dd>
 
     </dl>
@@ -37390,7 +37393,8 @@
      EOF character in the <span>data state</span>.</dd>
 
      <dt>Anything else</dt>
-     <dd><span>Parse error</span>. Switch to the <span>bogus DOCTYPE
+     <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
+     flag to <i>incorrect</i>. Switch to the <span>bogus DOCTYPE
      state</span>.</dd>
 
     </dl>
@@ -37483,7 +37487,8 @@
      EOF character in the <span>data state</span>.</dd>
 
      <dt>Anything else</dt>
-     <dd><span>Parse error</span>. Switch to the <span>bogus DOCTYPE
+     <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
+     flag to <i>incorrect</i>. Switch to the <span>bogus DOCTYPE
      state</span>.</dd>
 
     </dl>
@@ -37499,14 +37504,12 @@
     <dl class="switch">
 
      <dt>U+003E GREATER-THAN SIGN (>)</dt>
-     <dd>Set the DOCTYPE token's correctness flag to
-     <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
-     <span>data state</span>.</dd>
+     <dd>Emit the DOCTYPE token. Switch to the <span>data
+     state</span>.</dd>
 
      <dt>EOF</dt>
-     <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
-     flag to <i>incorrect</i>. Emit that DOCTYPE token.  Reconsume the
-     EOF character in the <span>data state</span>.</dd>
+     <dd><span>Parse error</span>. Emit the DOCTYPE token.  Reconsume
+     the EOF character in the <span>data state</span>.</dd>
 
      <dt>Anything else</dt>
      <dd>Stay in the <span>bogus DOCTYPE state</span>.</dd>




More information about the Commit-Watchers mailing list