Skip to content

Commit 83d53d9

Browse files
committed
Ignore white space in rule mode, do not create a selector.
Test case: @media{ } The same bug exists in the spec: http://lists.w3.org/Archives/Public/www-style/2012Jul/0345.html
1 parent cf123a3 commit 83d53d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function parse(tokens) {
104104

105105
case "rule":
106106
switch(token.tokenType) {
107+
case "WHITESPACE": break;
107108
case "BADSTRING":
108109
case "BADURL": parseerror() && switchto('next-block'); break;
109110
case "}": pop() && switchto(); break;

0 commit comments

Comments
 (0)