Skip to content

Commit ade9574

Browse files
committed
Make + always emit a DELIM, then unconditionally switch to the number state to avoid allowing a comment.
--HG-- extra : rebase_source : 0fd7880075714af342263a5722da4e74902d6c21
1 parent 8db1dc0 commit ade9574

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

css3-syntax/parsing.html

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -181,23 +181,9 @@ <h4>
181181

182182
<dt>U+002B PLUS SIGN (+)
183183
<dd>
184-
If the <i>next input character</i> is
185-
a <i>digit</i>
186-
or U+002E FULL STOP (.),
187-
switch to the <i>number state</i>.
188-
189-
<p>
190-
Otherwise,
191-
if the <i title="next input character">next 2 input characters</i> are
192-
U+002E FULL STOP (.)
193-
followed by a <i>digit</i>,
194-
switch to the <i>number state</i>.
195-
196-
<p>
197-
Otherwise,
198-
emit a delim token
199-
with its value set to U+002B PLUS SIGN (+).
200-
Remain in this state.
184+
Emit a delim token
185+
with its value set to U+002B PLUS SIGN (+).
186+
Switch to the <i>number state</i>.
201187

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

0 commit comments

Comments
 (0)