Skip to content

Commit 67c1140

Browse files
committed
[css-syntax] Make <CDO> and <CDC> not special in "Parse a rule".
This is consistent with "Parse a list of rules".
1 parent 8f574f2 commit 67c1140

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

css-syntax/Overview.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,8 +3063,7 @@ <h4 id=parse-a-rule><span class=secno>5.3.3. </span> <dfn
30633063
non-〈whitespace〉 is reached.
30643064

30653065
<li> If the <a href="#current-input-token"><i>current input
3066-
token</i></a> is a 〈CDO〉, 〈CDC〉, or 〈EOF〉, return a
3067-
syntax error.
3066+
token</i></a> is a 〈EOF〉, return a syntax error.
30683067
<p> Otherwise, if the <a href="#current-input-token"><i>current input
30693068
token</i></a> is an 〈at-keyword〉, <a
30703069
href="#consume-an-at-rule0"><i>consume an at-rule</i></a>.

css-syntax/Overview.src.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,8 +2013,7 @@ <h4>
20132013
Consume 〈whitespace〉s from the token stream until a non-〈whitespace〉 is reached.
20142014

20152015
<li>
2016-
If the <i>current input token</i>
2017-
is a 〈CDO〉, 〈CDC〉, or 〈EOF〉,
2016+
If the <i>current input token</i> is a 〈EOF〉,
20182017
return a syntax error.
20192018

20202019
<p>

0 commit comments

Comments
 (0)