Skip to content

Commit 4269195

Browse files
committed
[css3-syntax] Make sure a bad token is flagged as a parse error.
1 parent 03beb3c commit 4269195

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

css3-syntax/Overview.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3434,7 +3434,8 @@ <h3 id=consume-a-primitive><span class=secno>5.4. </span> <dfn
34343434

34353435
<p> Otherwise, if the <a href="#current-input-token"><i>current input
34363436
token</i></a> is a cdo token, cdc token, } token, ] token, ) token,
3437-
bad-string token, or bad-url token, return nothing.
3437+
bad-string token, or bad-url token, this is a <i>parse error</i>. Return
3438+
nothing.
34383439

34393440
<p> Otherwise, return the <a href="#current-input-token"><i>current input
34403441
token</i></a>.

css3-syntax/Overview.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2936,7 +2936,8 @@ <h3>
29362936
) token,
29372937
bad-string token,
29382938
or bad-url token,
2939-
return nothing.
2939+
this is a <i>parse error</i>.
2940+
Return nothing.
29402941

29412942
<p>
29422943
Otherwise, return the <i>current input token</i>.

0 commit comments

Comments
 (0)