@@ -83,7 +83,7 @@ function parse(tokens) {
83
83
case "WHITESPACE" : break ;
84
84
case "AT-KEYWORD" : push ( new AtRule ( token . value ) ) && switchto ( 'at-rule' ) ; break ;
85
85
case "{" : parseerror ( "Attempt to open a curly-block at top-level." ) && consumeASimpleBlock ( token ) ; break ;
86
- default : push ( new SelectorRule ) && switchto ( 'selector' ) && reprocess ( ) ;
86
+ default : push ( new StyleRule ) && switchto ( 'selector' ) && reprocess ( ) ;
87
87
}
88
88
break ;
89
89
@@ -108,7 +108,7 @@ function parse(tokens) {
108
108
case "BADURL" : parseerror ( "Use of BADSTRING or BADURL token in selector." ) && switchto ( 'next-block' ) ; break ;
109
109
case "}" : pop ( ) && switchto ( ) ; break ;
110
110
case "AT-KEYWORD" : push ( new AtRule ( token . value ) ) && switchto ( 'at-rule' ) ; break ;
111
- default : push ( new SelectorRule ) && switchto ( 'selector' ) && reprocess ( ) ;
111
+ default : push ( new StyleRule ) && switchto ( 'selector' ) && reprocess ( ) ;
112
112
}
113
113
break ;
114
114
@@ -297,18 +297,18 @@ AtRule.registry = {
297
297
'region-style' : 'rule'
298
298
} ;
299
299
300
- function SelectorRule ( ) {
300
+ function StyleRule ( ) {
301
301
this . selector = [ ] ;
302
302
this . value = [ ] ;
303
303
return this ;
304
304
}
305
- SelectorRule . prototype = new CSSParserRule ;
306
- SelectorRule . prototype . ruleType = "SELECTOR-RULE" ;
307
- SelectorRule . prototype . appendSelector = function ( val ) {
305
+ StyleRule . prototype = new CSSParserRule ;
306
+ StyleRule . prototype . ruleType = "SELECTOR-RULE" ;
307
+ StyleRule . prototype . appendSelector = function ( val ) {
308
308
this . selector . push ( val ) ;
309
309
return this ;
310
310
}
311
- SelectorRule . prototype . toJSON = function ( ) {
311
+ StyleRule . prototype . toJSON = function ( ) {
312
312
return { type :'selector' , selector :this . selector . map ( function ( e ) { return e . toJSON ( ) ; } ) , value :this . value . map ( function ( e ) { return e . toJSON ( ) ; } ) } ;
313
313
}
314
314
0 commit comments