[html5] r924 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 19 01:02:35 PDT 2007


Author: ianh
Date: 2007-06-19 01:02:34 -0700 (Tue, 19 Jun 2007)
New Revision: 924

Modified:
   index
   source
Log:
[cgowt] (2) Support <!--> and <!---> comment forms (non-conforming, at least for now).

Modified: index
===================================================================
--- index	2007-06-19 05:46:33 UTC (rev 923)
+++ index	2007-06-19 08:02:34 UTC (rev 924)
@@ -34227,8 +34227,8 @@
 
     <p>If the next two characters are both U+002D HYPHEN-MINUS (-)
      characters, consume those two characters, create a comment token whose
-     data is the empty string, and switch to the <a href="#comment">comment
-     state</a>.</p>
+     data is the empty string, and switch to the <a href="#comment0">comment
+     start state</a>.</p>
 
     <p>Otherwise if the next seven characters are a
      <span>case-insensitive</span><!-- XXX xref, ascii only --> match for the
@@ -34239,6 +34239,59 @@
      href="#bogus">bogus comment state</a>. The next character that is
      consumed, if any, is the first character that will be in the comment.</p>
 
+   <dt><dfn id=comment0>Comment start state</dfn>
+
+   <dd>
+    <p>Consume the <a href="#next-input">next input character</a>:</p>
+
+    <dl class=switch>
+     <dt>U+002D HYPHEN-MINUS (-)
+
+     <dd>Switch to the <a href="#comment1">comment start dash state</a>.
+
+     <dt>U+003E GREATER-THAN SIGN (>)
+
+     <dd><a href="#parse">Parse error</a>. Emit the comment token. Switch to
+      the <a href="#data-state">data state</a>.
+
+     <dt>EOF
+
+     <dd><a href="#parse">Parse error</a>. Emit the comment token. Reconsume
+      the EOF character in the <a href="#data-state">data state</a>.
+
+     <dt>Anything else
+
+     <dd>Append the input character to the comment token's data. Switch to
+      the <a href="#comment">comment state</a>.
+    </dl>
+
+   <dt><dfn id=comment1>Comment start dash state</dfn>
+
+   <dd>
+    <p>Consume the <a href="#next-input">next input character</a>:</p>
+
+    <dl class=switch>
+     <dt>U+002D HYPHEN-MINUS (-)
+
+     <dd>Switch to the <a href="#comment3">comment end state</a>
+
+     <dt>U+003E GREATER-THAN SIGN (>)
+
+     <dd><a href="#parse">Parse error</a>. Emit the comment token. Switch to
+      the <a href="#data-state">data state</a>.
+
+     <dt>EOF
+
+     <dd><a href="#parse">Parse error</a>. Emit the comment token. Reconsume
+      the EOF character in the <a href="#data-state">data state</a>.
+
+     <dt>Anything else
+
+     <dd>Append a U+002D HYPHEN-MINUS (-) character and the input character
+      to the comment token's data. Switch to the <a href="#comment">comment
+      state</a>.
+    </dl>
+
    <dt><dfn id=comment>Comment state</dfn>
 
    <dd>
@@ -34247,7 +34300,7 @@
     <dl class=switch>
      <dt>U+002D HYPHEN-MINUS (-)
 
-     <dd>Switch to the <a href="#comment0">comment dash state</a>
+     <dd>Switch to the <a href="#comment2">comment end dash state</a>
 
      <dt>EOF
 
@@ -34265,7 +34318,7 @@
       <a href="#comment">comment state</a>.
     </dl>
 
-   <dt><dfn id=comment0>Comment dash state</dfn>
+   <dt><dfn id=comment2>Comment end dash state</dfn>
 
    <dd>
     <p>Consume the <a href="#next-input">next input character</a>:</p>
@@ -34273,7 +34326,7 @@
     <dl class=switch>
      <dt>U+002D HYPHEN-MINUS (-)
 
-     <dd>Switch to the <a href="#comment1">comment end state</a>
+     <dd>Switch to the <a href="#comment3">comment end state</a>
 
      <dt>EOF
 
@@ -34292,7 +34345,7 @@
       state</a>.
     </dl>
 
-   <dt><dfn id=comment1>Comment end state</dfn>
+   <dt><dfn id=comment3>Comment end state</dfn>
 
    <dd>
     <p>Consume the <a href="#next-input">next input character</a>:</p>
@@ -34307,7 +34360,7 @@
 
      <dd><a href="#parse">Parse error</a>. Append a U+002D HYPHEN-MINUS (-)
       character to the comment token's data. Stay in the <a
-      href="#comment1">comment end state</a>.
+      href="#comment3">comment end state</a>.
 
      <dt>EOF
 

Modified: source
===================================================================
--- source	2007-06-19 05:46:33 UTC (rev 923)
+++ source	2007-06-19 08:02:34 UTC (rev 924)
@@ -31823,7 +31823,7 @@
     <p>If the next two characters are both U+002D HYPHEN-MINUS (-)
     characters, consume those two characters, create a comment token
     whose data is the empty string, and switch to the <span>comment
-    state</span>.</p>
+    start state</span>.</p>
 
     <p>Otherwise if the next seven characters are a
     <span>case-insensitive</span><!-- XXX xref, ascii only --> match
@@ -31837,6 +31837,61 @@
 
    </dd>
 
+   <dt><dfn>Comment start state</dfn></dt>
+
+   <dd>
+
+    <p>Consume the <span>next input character</span>:</p>
+
+    <dl class="switch">
+
+     <dt>U+002D HYPHEN-MINUS (-)</dt>
+     <dd>Switch to the <span>comment start dash state</span>.</dd>
+
+     <dt>U+003E GREATER-THAN SIGN (>)</dt>
+     <dd><span>Parse error</span>. Emit the comment token. Switch to
+     the <span>data state</span>.</dd>
+
+     <dt>EOF</dt>
+     <dd><span>Parse error</span>. Emit the comment token. Reconsume
+     the EOF character in the <span>data state</span>.</dd>
+
+     <dt>Anything else</dt>
+     <dd>Append the input character to the comment token's
+     data. Switch to the <span>comment state</span>.</dd>
+
+    </dl>
+
+   </dd>
+
+   <dt><dfn>Comment start dash state</dfn></dt>
+
+   <dd>
+
+    <p>Consume the <span>next input character</span>:</p>
+
+    <dl class="switch">
+
+     <dt>U+002D HYPHEN-MINUS (-)</dt>
+     <dd>Switch to the <span>comment end state</span></dd>
+
+     <dt>U+003E GREATER-THAN SIGN (>)</dt>
+     <dd><span>Parse error</span>. Emit the comment token. Switch to
+     the <span>data state</span>.</dd>
+
+     <dt>EOF</dt>
+     <dd><span>Parse error</span>. Emit the comment token. Reconsume
+     the EOF character in the <span>data state</span>.</dd>
+
+     <dt>Anything else</dt>
+     <dd>Append a U+002D HYPHEN-MINUS (-) character and the input
+     character to the comment token's data. Switch to the
+     <span>comment state</span>.</dd>
+
+    </dl>
+
+   </dd>
+
    <dt><dfn id="comment">Comment state</dfn></dt>
 
    <dd>
@@ -31846,7 +31901,7 @@
     <dl class="switch">
 
      <dt>U+002D HYPHEN-MINUS (-)</dt>
-     <dd>Switch to the <span>comment dash state</span></dd>
+     <dd>Switch to the <span>comment end dash state</span></dd>
 
      <dt>EOF</dt>
      <dd><span>Parse error</span>. Emit the comment token. Reconsume
@@ -31864,7 +31919,7 @@
 
    </dd>
 
-   <dt><dfn>Comment dash state</dfn></dt>
+   <dt><dfn>Comment end dash state</dfn></dt>
 
    <dd>
 




More information about the Commit-Watchers mailing list