Skip to content

Commit

Permalink
Make <!-- -- --> a parse error
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@51 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 10, 2006
1 parent d192464 commit 5eebb25
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
19 changes: 10 additions & 9 deletions index
Expand Up @@ -35,7 +35,7 @@

<h1 id="web-applications">Web Applications 1.0</h1>

<h2 class="no-num no-toc" id="working">Working Draft &mdash; 5 May 2006</h2>
<h2 class="no-num no-toc" id="working">Working Draft &mdash; 10 May 2006</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
Expand Down Expand Up @@ -18874,6 +18874,11 @@ function receiver(e) {
<p>Consume the next input character:</p>

<dl class="switch">
<dt>U+003E GREATER-THAN SIGN (&gt;)

<dd>Emit the comment token. Switch to the <span><a
href="#data-state">data state</a></span>.

<dt>U+002D HYPHEN-MINUS (-)

<dd><span><a href="#parse">Parse error</a></span>. Append a U+002D
Expand All @@ -18883,11 +18888,6 @@ function receiver(e) {
<dd>Switch to the <span>comment end dash state</span></dd>
-->

<dt>U+003E GREATER-THAN SIGN (&gt;)

<dd>Emit the comment token. Switch to the <span><a
href="#data-state">data state</a></span>.

<dt>EOF

<dd><span><a href="#parse">Parse error</a></span>. Emit the comment
Expand All @@ -18907,9 +18907,10 @@ function receiver(e) {

<dt>Anything else

<dd>Append two U+002D HYPHEN-MINUS (-) characters and the input
character to the comment token's data. Switch to the <span><a
href="#comment">comment state</a></span>.</dd>
<dd><span><a href="#parse">Parse error</a></span>. Append two U+002D
HYPHEN-MINUS (-) characters and the input character to the comment
token's data. Switch to the <span><a href="#comment">comment
state</a></span>.</dd>
<!--
<dd><span>Parse error</span>. Append the input character to
the comment token's data. Stay in the <span>comment end
Expand Down
14 changes: 7 additions & 7 deletions source
Expand Up @@ -16862,6 +16862,10 @@ function receiver(e) {

<dl class="switch">

<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd>Emit the comment token. Switch to the <span>data
state</span>.</dd>

<dt>U+002D HYPHEN-MINUS (-)</dt>
<dd><span>Parse error</span>. Append a U+002D HYPHEN-MINUS
(-) character to the comment token's data. Stay in the
Expand All @@ -16870,10 +16874,6 @@ function receiver(e) {
<dd>Switch to the <span>comment end dash state</span></dd>
-->

<dt>U+003E GREATER-THAN SIGN (&gt;)</dt>
<dd>Emit the comment token. Switch to the <span>data
state</span>.</dd>

<dt>EOF</dt>
<dd><span>Parse error</span>. Emit the comment token and an
end-of-file token.</dd> <!-- For security
Expand All @@ -16890,9 +16890,9 @@ function receiver(e) {
-->

<dt>Anything else</dt>
<dd>Append two U+002D HYPHEN-MINUS (-) characters and the input
character to the comment token's data. Switch to the
<span>comment state</span>.</dd>
<dd><span>Parse error</span>. Append two U+002D HYPHEN-MINUS (-)
characters and the input character to the comment token's
data. Switch to the <span>comment state</span>.</dd>
<!--
<dd><span>Parse error</span>. Append the input character to
the comment token's data. Stay in the <span>comment end
Expand Down

0 comments on commit 5eebb25

Please sign in to comment.