Skip to content

Commit 8684fd7

Browse files
committed
[selectors] Reference 'invalid selector' from 'parse a selector', incidentally cleaning it up a bit. Fixes #3251.
1 parent 0fd5cf0 commit 8684fd7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

selectors-4/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3469,12 +3469,11 @@ Parse A Selector</h3>
34693469
<li>
34703470
Let <var>selector</var> be the result of parsing <var>source</var> as a <<selector-list>>.
34713471
If it does not match the grammar,
3472+
it's an [=invalid selector=];
34723473
return failure.
34733474

34743475
<li>
3475-
Otherwise,
3476-
if any simple selectors in <var>selector</var> are not recognized by the user agent,
3477-
or <var>selector</var> is otherwise invalid in some way
3476+
If |selector| is an [=invalid selector=] for any other reason
34783477
(such as, for example, containing an undeclared namespace prefix),
34793478
return failure.
34803479

0 commit comments

Comments
 (0)