[html5] r1297 - /

whatwg at whatwg.org whatwg at whatwg.org
Sun Mar 2 03:08:35 PST 2008


Author: ianh
Date: 2008-03-02 03:08:33 -0800 (Sun, 02 Mar 2008)
New Revision: 1297

Modified:
   index
   source
Log:
[a] (0) Fix the definition of what is allowed in a comment to avoid allowing <->--> which wouldn't get parsed as expected. Also <!!--->-->.

Modified: index
===================================================================
--- index	2008-03-02 11:00:30 UTC (rev 1296)
+++ index	2008-03-02 11:08:33 UTC (rev 1297)
@@ -37896,7 +37896,10 @@
    MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code
    title=""><!--</code>). Following this sequence, the comment may have <a
    href="#text1" title=syntax-text>text</a>, with the additional restriction
-   that the text must not contain two consecutive U+002D HYPHEN-MINUS (<code
+   that the text must not start with a single U+003E GREATER-THAN SIGN
+   ('>') character, nor start with a U+002D HYPHEN-MINUS (<code
+   title="">-</code>) character followed by a U+003E GREATER-THAN SIGN
+   ('>') character, nor contain two consecutive U+002D HYPHEN-MINUS (<code
    title="">-</code>) characters, nor end with a U+002D HYPHEN-MINUS (<code
    title="">-</code>) character. Finally, the comment must be ended by the
    three character sequence U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E

Modified: source
===================================================================
--- source	2008-03-02 11:00:30 UTC (rev 1296)
+++ source	2008-03-02 11:08:33 UTC (rev 1297)
@@ -35407,14 +35407,19 @@
 
   <p><dfn title="syntax-comments">Comments</dfn> must start with the
   four character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
-  MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS
-  (<code title=""><!--</code>). Following this sequence, the comment may
+  MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code
+  title=""><!--</code>). Following this sequence, the comment may
   have <span title="syntax-text">text</span>, with the additional
-  restriction that the text must not contain two consecutive U+002D
-  HYPHEN-MINUS (<code title="">-</code>) characters, nor end with a U+002D
-  HYPHEN-MINUS (<code title="">-</code>) character. Finally, the comment must
-  be ended by the three character sequence U+002D HYPHEN-MINUS, U+002D
-  HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code title="">--></code>).</p>
+  restriction that the text must not start with a single U+003E
+  GREATER-THAN SIGN ('>') character, nor start with a U+002D
+  HYPHEN-MINUS (<code title="">-</code>) character followed by a
+  U+003E GREATER-THAN SIGN ('>') character, nor contain two
+  consecutive U+002D HYPHEN-MINUS (<code title="">-</code>)
+  characters, nor end with a U+002D HYPHEN-MINUS (<code
+  title="">-</code>) character. Finally, the comment must be ended by
+  the three character sequence U+002D HYPHEN-MINUS, U+002D
+  HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code
+  title="">--></code>).</p>
 
 
 




More information about the Commit-Watchers mailing list