Skip to content

Commit a683f94

Browse files
committed
[css2] Simple selector *can* start with [attrib].
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401712
1 parent 22cbb7a commit a683f94

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

css2/grammar.src

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: grammar.src,v 2.18 1998-05-08 17:56:17 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.19 1998-05-12 14:03:46 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix D: The grammar of CSS2</TITLE>
@@ -88,14 +88,8 @@ ruleset
8888
<span class="index-inst" title="selector">selector</span>
8989
: simple_selector [ combinator simple_selector ]*
9090
;
91-
/*
92-
* simple selector cannot start with attrib selector
93-
*/
9491
simple_selector
95-
: element_name [ HASH | class | attrib | pseudo ]* S*
96-
| HASH [ HASH | class | attrib | pseudo ]* S*
97-
| pseudo [ HASH | class | attrib | pseudo ]* S*
98-
| class [ HASH | class | attrib | pseudo ]* S*
92+
: element_name? [ HASH | class | attrib | pseudo ]* S*
9993
;
10094
class
10195
: '.' IDENT

0 commit comments

Comments
 (0)