[html5] r4051 - [ct] (0) Report parse error for missing spaces in DOCTYPEs. Fixing http://www.w3 [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 29 03:59:13 PDT 2009


Author: ianh
Date: 2009-09-29 03:59:12 -0700 (Tue, 29 Sep 2009)
New Revision: 4051

Modified:
   index
   source
Log:
[ct] (0) Report parse error for missing spaces in DOCTYPEs.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7726

Modified: index
===================================================================
--- index	2009-09-29 10:35:48 UTC (rev 4050)
+++ index	2009-09-29 10:59:12 UTC (rev 4051)
@@ -926,17 +926,20 @@
        <li><a href=#before-doctype-name-state><span class=secno>9.2.4.26 </span>Before DOCTYPE name state</a></li>
        <li><a href=#doctype-name-state><span class=secno>9.2.4.27 </span>DOCTYPE name state</a></li>
        <li><a href=#after-doctype-name-state><span class=secno>9.2.4.28 </span>After DOCTYPE name state</a></li>
-       <li><a href=#before-doctype-public-identifier-state><span class=secno>9.2.4.29 </span>Before DOCTYPE public identifier state</a></li>
-       <li><a href=#doctype-public-identifier-(double-quoted)-state><span class=secno>9.2.4.30 </span>DOCTYPE public identifier (double-quoted) state</a></li>
-       <li><a href=#doctype-public-identifier-(single-quoted)-state><span class=secno>9.2.4.31 </span>DOCTYPE public identifier (single-quoted) state</a></li>
-       <li><a href=#after-doctype-public-identifier-state><span class=secno>9.2.4.32 </span>After DOCTYPE public identifier state</a></li>
-       <li><a href=#before-doctype-system-identifier-state><span class=secno>9.2.4.33 </span>Before DOCTYPE system identifier state</a></li>
-       <li><a href=#doctype-system-identifier-(double-quoted)-state><span class=secno>9.2.4.34 </span>DOCTYPE system identifier (double-quoted) state</a></li>
-       <li><a href=#doctype-system-identifier-(single-quoted)-state><span class=secno>9.2.4.35 </span>DOCTYPE system identifier (single-quoted) state</a></li>
-       <li><a href=#after-doctype-system-identifier-state><span class=secno>9.2.4.36 </span>After DOCTYPE system identifier state</a></li>
-       <li><a href=#bogus-doctype-state><span class=secno>9.2.4.37 </span>Bogus DOCTYPE state</a></li>
-       <li><a href=#cdata-section-state><span class=secno>9.2.4.38 </span>CDATA section state</a></li>
-       <li><a href=#tokenizing-character-references><span class=secno>9.2.4.39 </span>Tokenizing character references</a></ol></li>
+       <li><a href=#after-doctype-public-keyword-state><span class=secno>9.2.4.29 </span>After DOCTYPE public keyword state</a></li>
+       <li><a href=#before-doctype-public-identifier-state><span class=secno>9.2.4.30 </span>Before DOCTYPE public identifier state</a></li>
+       <li><a href=#doctype-public-identifier-(double-quoted)-state><span class=secno>9.2.4.31 </span>DOCTYPE public identifier (double-quoted) state</a></li>
+       <li><a href=#doctype-public-identifier-(single-quoted)-state><span class=secno>9.2.4.32 </span>DOCTYPE public identifier (single-quoted) state</a></li>
+       <li><a href=#after-doctype-public-identifier-state><span class=secno>9.2.4.33 </span>After DOCTYPE public identifier state</a></li>
+       <li><a href=#between-doctype-public-and-system-identifiers-state><span class=secno>9.2.4.34 </span>Between DOCTYPE public and system identifiers state</a></li>
+       <li><a href=#after-doctype-system-keyword-state><span class=secno>9.2.4.35 </span>After DOCTYPE system keyword state</a></li>
+       <li><a href=#before-doctype-system-identifier-state><span class=secno>9.2.4.36 </span>Before DOCTYPE system identifier state</a></li>
+       <li><a href=#doctype-system-identifier-(double-quoted)-state><span class=secno>9.2.4.37 </span>DOCTYPE system identifier (double-quoted) state</a></li>
+       <li><a href=#doctype-system-identifier-(single-quoted)-state><span class=secno>9.2.4.38 </span>DOCTYPE system identifier (single-quoted) state</a></li>
+       <li><a href=#after-doctype-system-identifier-state><span class=secno>9.2.4.39 </span>After DOCTYPE system identifier state</a></li>
+       <li><a href=#bogus-doctype-state><span class=secno>9.2.4.40 </span>Bogus DOCTYPE state</a></li>
+       <li><a href=#cdata-section-state><span class=secno>9.2.4.41 </span>CDATA section state</a></li>
+       <li><a href=#tokenizing-character-references><span class=secno>9.2.4.42 </span>Tokenizing character references</a></ol></li>
      <li><a href=#tree-construction><span class=secno>9.2.5 </span>Tree construction</a>
       <ol>
        <li><a href=#creating-and-inserting-elements><span class=secno>9.2.5.1 </span>Creating and inserting elements</a></li>
@@ -64361,13 +64364,13 @@
     <p>If the six characters starting from the <a href=#current-input-character>current input
     character</a> are an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match
     for the word "PUBLIC", then consume those characters and switch to
-    the <a href=#before-doctype-public-identifier-state>before DOCTYPE public identifier state</a>.</p>
+    the <a href=#after-doctype-public-keyword-state>after DOCTYPE public keyword state</a>.</p>
 
     <p>Otherwise, if the six characters starting from the
     <a href=#current-input-character>current input character</a> are an <a href=#ascii-case-insensitive>ASCII
     case-insensitive</a> match for the word "SYSTEM", then consume
-    those characters and switch to the <a href=#before-doctype-system-identifier-state>before DOCTYPE system
-    identifier state</a>.</p>
+    those characters and switch to the <a href=#after-doctype-system-keyword-state>after DOCTYPE system
+    keyword state</a>.</p>
 
     <p>Otherwise, this is the <a href=#parse-error>parse error</a>. Set the
     DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>. Switch to
@@ -64375,7 +64378,7 @@
 
    </dd>
 
-  </dl><h5 id=before-doctype-public-identifier-state><span class=secno>9.2.4.29 </span><dfn>Before DOCTYPE public identifier state</dfn></h5>
+  </dl><h5 id=after-doctype-public-keyword-state><span class=secno>9.2.4.29 </span><dfn>After DOCTYPE public keyword state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64384,6 +64387,27 @@
    <dt>U+000C FORM FEED (FF)</dt>
    <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
    <dt>U+0020 SPACE</dt>
+   <dd>Switch to the <a href=#before-doctype-public-identifier-state>before DOCTYPE public identifier
+   state</a>.</dd>
+
+   <dt>EOF</dt>
+   <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+   Reconsume the EOF character in the <a href=#data-state>data state</a>.</dd>
+
+   <dt>Anything else</dt>
+   <dd><a href=#parse-error>Parse error</a>. Reconsume the current character in
+   the <a href=#before-doctype-public-identifier-state>before DOCTYPE public identifier state</a>.</dd>
+
+  </dl><h5 id=before-doctype-public-identifier-state><span class=secno>9.2.4.30 </span><dfn>Before DOCTYPE public identifier state</dfn></h5>
+
+  <p>Consume the <a href=#next-input-character>next input character</a>:</p>
+
+  <dl class=switch><dt>U+0009 CHARACTER TABULATION</dt>
+   <dt>U+000A LINE FEED (LF)</dt>
+   <dt>U+000C FORM FEED (FF)</dt>
+   <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
+   <dt>U+0020 SPACE</dt>
    <dd>Stay in the <a href=#before-doctype-public-identifier-state>before DOCTYPE public identifier state</a>.</dd>
 
    <dt>U+0022 QUOTATION MARK (")</dt>
@@ -64411,7 +64435,7 @@
    <i>force-quirks flag</i> to <i>on</i>. Switch to the <a href=#bogus-doctype-state>bogus
    DOCTYPE state</a>.</dd>
 
-  </dl><h5 id=doctype-public-identifier-(double-quoted)-state><span class=secno>9.2.4.30 </span><dfn>DOCTYPE public identifier (double-quoted) state</dfn></h5>
+  </dl><h5 id=doctype-public-identifier-(double-quoted)-state><span class=secno>9.2.4.31 </span><dfn>DOCTYPE public identifier (double-quoted) state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64433,7 +64457,7 @@
    token's public identifier. Stay in the <a href=#doctype-public-identifier-(double-quoted)-state>DOCTYPE public
    identifier (double-quoted) state</a>.</dd>
 
-  </dl><h5 id=doctype-public-identifier-(single-quoted)-state><span class=secno>9.2.4.31 </span><dfn>DOCTYPE public identifier (single-quoted) state</dfn></h5>
+  </dl><h5 id=doctype-public-identifier-(single-quoted)-state><span class=secno>9.2.4.32 </span><dfn>DOCTYPE public identifier (single-quoted) state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64455,7 +64479,7 @@
    token's public identifier. Stay in the <a href=#doctype-public-identifier-(single-quoted)-state>DOCTYPE public
    identifier (single-quoted) state</a>.</dd>
 
-  </dl><h5 id=after-doctype-public-identifier-state><span class=secno>9.2.4.32 </span><dfn>After DOCTYPE public identifier state</dfn></h5>
+  </dl><h5 id=after-doctype-public-identifier-state><span class=secno>9.2.4.33 </span><dfn>After DOCTYPE public identifier state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64464,9 +64488,48 @@
    <dt>U+000C FORM FEED (FF)</dt>
    <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
    <dt>U+0020 SPACE</dt>
-   <dd>Stay in the <a href=#after-doctype-public-identifier-state>after DOCTYPE public identifier state</a>.</dd>
+   <dd>Switch to the <a href=#between-doctype-public-and-system-identifiers-state>between DOCTYPE public and system identifiers state</a>.</dd>
 
+   <dt>U+003E GREATER-THAN SIGN (>)</dt>
+   <dd>Emit the current DOCTYPE token. Switch to the <a href=#data-state>data
+   state</a>.</dd>
+
    <dt>U+0022 QUOTATION MARK (")</dt>
+   <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's system
+   identifier to the empty string (not missing), then switch to the
+   <a href=#doctype-system-identifier-(double-quoted)-state>DOCTYPE system identifier (double-quoted) state</a>.</dd>
+
+   <dt>U+0027 APOSTROPHE (')</dt>
+   <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's system
+   identifier to the empty string (not missing), then switch to the
+   <a href=#doctype-system-identifier-(single-quoted)-state>DOCTYPE system identifier (single-quoted) state</a>.</dd>
+
+   <dt>EOF</dt>
+   <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+   Reconsume the EOF character in the <a href=#data-state>data state</a>.</dd>
+
+   <dt>Anything else</dt>
+   <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Switch to the <a href=#bogus-doctype-state>bogus
+   DOCTYPE state</a>.</dd>
+
+  </dl><h5 id=between-doctype-public-and-system-identifiers-state><span class=secno>9.2.4.34 </span><dfn>Between DOCTYPE public and system identifiers state</dfn></h5>
+
+  <p>Consume the <a href=#next-input-character>next input character</a>:</p>
+
+  <dl class=switch><dt>U+0009 CHARACTER TABULATION</dt>
+   <dt>U+000A LINE FEED (LF)</dt>
+   <dt>U+000C FORM FEED (FF)</dt>
+   <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
+   <dt>U+0020 SPACE</dt>
+   <dd>Stay in the <a href=#between-doctype-public-and-system-identifiers-state>between DOCTYPE public and system identifiers state</a>.</dd>
+
+   <dt>U+003E GREATER-THAN SIGN (>)</dt>
+   <dd>Emit the current DOCTYPE token. Switch to the <a href=#data-state>data
+   state</a>.</dd>
+
+   <dt>U+0022 QUOTATION MARK (")</dt>
    <dd>Set the DOCTYPE token's system identifier to the empty string
    (not missing), then switch to the <a href=#doctype-system-identifier-(double-quoted)-state>DOCTYPE system identifier
    (double-quoted) state</a>.</dd>
@@ -64476,10 +64539,6 @@
    (not missing), then switch to the <a href=#doctype-system-identifier-(single-quoted)-state>DOCTYPE system identifier
    (single-quoted) state</a>.</dd>
 
-   <dt>U+003E GREATER-THAN SIGN (>)</dt>
-   <dd>Emit the current DOCTYPE token. Switch to the <a href=#data-state>data
-   state</a>.</dd>
-
    <dt>EOF</dt>
    <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's
    <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
@@ -64490,7 +64549,7 @@
    <i>force-quirks flag</i> to <i>on</i>. Switch to the <a href=#bogus-doctype-state>bogus
    DOCTYPE state</a>.</dd>
 
-  </dl><h5 id=before-doctype-system-identifier-state><span class=secno>9.2.4.33 </span><dfn>Before DOCTYPE system identifier state</dfn></h5>
+  </dl><h5 id=after-doctype-system-keyword-state><span class=secno>9.2.4.35 </span><dfn>After DOCTYPE system keyword state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64499,6 +64558,27 @@
    <dt>U+000C FORM FEED (FF)</dt>
    <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
    <dt>U+0020 SPACE</dt>
+   <dd>Switch to the <a href=#before-doctype-system-identifier-state>before DOCTYPE system identifier
+   state</a>.</dd>
+
+   <dt>EOF</dt>
+   <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+   Reconsume the EOF character in the <a href=#data-state>data state</a>.</dd>
+
+   <dt>Anything else</dt>
+   <dd><a href=#parse-error>Parse error</a>. Reconsume the current character in
+   the <a href=#before-doctype-system-identifier-state>before DOCTYPE system identifier state</a>.</dd>
+
+  </dl><h5 id=before-doctype-system-identifier-state><span class=secno>9.2.4.36 </span><dfn>Before DOCTYPE system identifier state</dfn></h5>
+
+  <p>Consume the <a href=#next-input-character>next input character</a>:</p>
+
+  <dl class=switch><dt>U+0009 CHARACTER TABULATION</dt>
+   <dt>U+000A LINE FEED (LF)</dt>
+   <dt>U+000C FORM FEED (FF)</dt>
+   <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
+   <dt>U+0020 SPACE</dt>
    <dd>Stay in the <a href=#before-doctype-system-identifier-state>before DOCTYPE system identifier state</a>.</dd>
 
    <dt>U+0022 QUOTATION MARK (")</dt>
@@ -64526,7 +64606,7 @@
    <i>force-quirks flag</i> to <i>on</i>. Switch to the <a href=#bogus-doctype-state>bogus
    DOCTYPE state</a>.</dd>
 
-  </dl><h5 id=doctype-system-identifier-(double-quoted)-state><span class=secno>9.2.4.34 </span><dfn>DOCTYPE system identifier (double-quoted) state</dfn></h5>
+  </dl><h5 id=doctype-system-identifier-(double-quoted)-state><span class=secno>9.2.4.37 </span><dfn>DOCTYPE system identifier (double-quoted) state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64548,7 +64628,7 @@
    token's system identifier. Stay in the <a href=#doctype-system-identifier-(double-quoted)-state>DOCTYPE system
    identifier (double-quoted) state</a>.</dd>
 
-  </dl><h5 id=doctype-system-identifier-(single-quoted)-state><span class=secno>9.2.4.35 </span><dfn>DOCTYPE system identifier (single-quoted) state</dfn></h5>
+  </dl><h5 id=doctype-system-identifier-(single-quoted)-state><span class=secno>9.2.4.38 </span><dfn>DOCTYPE system identifier (single-quoted) state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64570,7 +64650,7 @@
    token's system identifier. Stay in the <a href=#doctype-system-identifier-(single-quoted)-state>DOCTYPE system
    identifier (single-quoted) state</a>.</dd>
 
-  </dl><h5 id=after-doctype-system-identifier-state><span class=secno>9.2.4.36 </span><dfn>After DOCTYPE system identifier state</dfn></h5>
+  </dl><h5 id=after-doctype-system-identifier-state><span class=secno>9.2.4.39 </span><dfn>After DOCTYPE system identifier state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64595,7 +64675,7 @@
    state</a>. (This does <em>not</em> set the DOCTYPE token's
    <i>force-quirks flag</i> to <i>on</i>.)</dd>
 
-  </dl><h5 id=bogus-doctype-state><span class=secno>9.2.4.37 </span><dfn>Bogus DOCTYPE state</dfn></h5>
+  </dl><h5 id=bogus-doctype-state><span class=secno>9.2.4.40 </span><dfn>Bogus DOCTYPE state</dfn></h5>
 
   <p>Consume the <a href=#next-input-character>next input character</a>:</p>
 
@@ -64610,7 +64690,7 @@
    <dt>Anything else</dt>
    <dd>Stay in the <a href=#bogus-doctype-state>bogus DOCTYPE state</a>.</dd>
 
-  </dl><h5 id=cdata-section-state><span class=secno>9.2.4.38 </span><dfn>CDATA section state</dfn></h5>
+  </dl><h5 id=cdata-section-state><span class=secno>9.2.4.41 </span><dfn>CDATA section state</dfn></h5>
 
   <p><i>(This can only happen if the <a href=#content-model-flag>content model
   flag</a> is set to the PCDATA state.)</i></p>
@@ -64630,7 +64710,7 @@
 
 
 
-  <h5 id=tokenizing-character-references><span class=secno>9.2.4.39 </span>Tokenizing character references</h5>
+  <h5 id=tokenizing-character-references><span class=secno>9.2.4.42 </span>Tokenizing character references</h5>
 
   <p>This section defines how to <dfn id=consume-a-character-reference>consume a character
   reference</dfn>. This definition is used when parsing character

Modified: source
===================================================================
--- source	2009-09-29 10:35:48 UTC (rev 4050)
+++ source	2009-09-29 10:59:12 UTC (rev 4051)
@@ -79364,13 +79364,13 @@
     <p>If the six characters starting from the <span>current input
     character</span> are an <span>ASCII case-insensitive</span> match
     for the word "PUBLIC", then consume those characters and switch to
-    the <span>before DOCTYPE public identifier state</span>.</p>
+    the <span>after DOCTYPE public keyword state</span>.</p>
 
     <p>Otherwise, if the six characters starting from the
     <span>current input character</span> are an <span>ASCII
     case-insensitive</span> match for the word "SYSTEM", then consume
-    those characters and switch to the <span>before DOCTYPE system
-    identifier state</span>.</p>
+    those characters and switch to the <span>after DOCTYPE system
+    keyword state</span>.</p>
 
     <p>Otherwise, this is the <span>parse error</span>. Set the
     DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>. Switch to
@@ -79381,6 +79381,32 @@
   </dl>
 
 
+  <h5><dfn>After DOCTYPE public keyword state</dfn></h5>
+
+  <p>Consume the <span>next input character</span>:</p>
+
+  <dl class="switch">
+
+   <dt>U+0009 CHARACTER TABULATION</dt>
+   <dt>U+000A LINE FEED (LF)</dt>
+   <dt>U+000C FORM FEED (FF)</dt>
+   <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
+   <dt>U+0020 SPACE</dt>
+   <dd>Switch to the <span>before DOCTYPE public identifier
+   state</span>.</dd>
+
+   <dt>EOF</dt>
+   <dd><span>Parse error</span>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+   Reconsume the EOF character in the <span>data state</span>.</dd>
+
+   <dt>Anything else</dt>
+   <dd><span>Parse error</span>. Reconsume the current character in
+   the <span>before DOCTYPE public identifier state</span>.</dd>
+
+  </dl>
+
+
   <h5><dfn>Before DOCTYPE public identifier state</dfn></h5>
 
   <p>Consume the <span>next input character</span>:</p>
@@ -79487,9 +79513,53 @@
    <dt>U+000C FORM FEED (FF)</dt>
    <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
    <dt>U+0020 SPACE</dt>
-   <dd>Stay in the <span>after DOCTYPE public identifier state</span>.</dd>
+   <dd>Switch to the <span>between DOCTYPE public and system identifiers state</span>.</dd>
 
+   <dt>U+003E GREATER-THAN SIGN (>)</dt>
+   <dd>Emit the current DOCTYPE token. Switch to the <span>data
+   state</span>.</dd>
+
    <dt>U+0022 QUOTATION MARK (")</dt>
+   <dd><span>Parse error</span>. Set the DOCTYPE token's system
+   identifier to the empty string (not missing), then switch to the
+   <span>DOCTYPE system identifier (double-quoted) state</span>.</dd>
+
+   <dt>U+0027 APOSTROPHE (')</dt>
+   <dd><span>Parse error</span>. Set the DOCTYPE token's system
+   identifier to the empty string (not missing), then switch to the
+   <span>DOCTYPE system identifier (single-quoted) state</span>.</dd>
+
+   <dt>EOF</dt>
+   <dd><span>Parse error</span>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+   Reconsume the EOF character in the <span>data state</span>.</dd>
+
+   <dt>Anything else</dt>
+   <dd><span>Parse error</span>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Switch to the <span>bogus
+   DOCTYPE state</span>.</dd>
+
+  </dl>
+
+
+  <h5><dfn>Between DOCTYPE public and system identifiers state</dfn></h5>
+
+  <p>Consume the <span>next input character</span>:</p>
+
+  <dl class="switch">
+
+   <dt>U+0009 CHARACTER TABULATION</dt>
+   <dt>U+000A LINE FEED (LF)</dt>
+   <dt>U+000C FORM FEED (FF)</dt>
+   <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
+   <dt>U+0020 SPACE</dt>
+   <dd>Stay in the <span>between DOCTYPE public and system identifiers state</span>.</dd>
+
+   <dt>U+003E GREATER-THAN SIGN (>)</dt>
+   <dd>Emit the current DOCTYPE token. Switch to the <span>data
+   state</span>.</dd>
+
+   <dt>U+0022 QUOTATION MARK (")</dt>
    <dd>Set the DOCTYPE token's system identifier to the empty string
    (not missing), then switch to the <span>DOCTYPE system identifier
    (double-quoted) state</span>.</dd>
@@ -79499,10 +79569,6 @@
    (not missing), then switch to the <span>DOCTYPE system identifier
    (single-quoted) state</span>.</dd>
 
-   <dt>U+003E GREATER-THAN SIGN (>)</dt>
-   <dd>Emit the current DOCTYPE token. Switch to the <span>data
-   state</span>.</dd>
-
    <dt>EOF</dt>
    <dd><span>Parse error</span>. Set the DOCTYPE token's
    <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
@@ -79516,6 +79582,32 @@
   </dl>
 
 
+  <h5><dfn>After DOCTYPE system keyword state</dfn></h5>
+
+  <p>Consume the <span>next input character</span>:</p>
+
+  <dl class="switch">
+
+   <dt>U+0009 CHARACTER TABULATION</dt>
+   <dt>U+000A LINE FEED (LF)</dt>
+   <dt>U+000C FORM FEED (FF)</dt>
+   <!--<dt>U+000D CARRIAGE RETURN (CR)</dt>-->
+   <dt>U+0020 SPACE</dt>
+   <dd>Switch to the <span>before DOCTYPE system identifier
+   state</span>.</dd>
+
+   <dt>EOF</dt>
+   <dd><span>Parse error</span>. Set the DOCTYPE token's
+   <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+   Reconsume the EOF character in the <span>data state</span>.</dd>
+
+   <dt>Anything else</dt>
+   <dd><span>Parse error</span>. Reconsume the current character in
+   the <span>before DOCTYPE system identifier state</span>.</dd>
+
+  </dl>
+
+
   <h5><dfn>Before DOCTYPE system identifier state</dfn></h5>
 
   <p>Consume the <span>next input character</span>:</p>




More information about the Commit-Watchers mailing list