Skip to content

Commit e90b808

Browse files
committed
Typo fixes
Make the parser run again without exceptions.
1 parent 5672d6f commit e90b808

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function parse(tokens) {
145145
case ";": pop() && switchto(); break;
146146
case "}": pop() && switchto() && reprocess(); break;
147147
case "EOF": finish(); return stylesheet;
148-
default: decl.append(consumeAPrimitive());
148+
default: rule.append(consumeAPrimitive());
149149
}
150150
break;
151151

tokenizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@ DelimToken.prototype.tokenType = "DELIM";
513513
DelimToken.prototype.toString = function() { return "DELIM("+this.value+")"; }
514514

515515
function StringValuedToken() { return this; }
516-
StringValuedtoken.prototype = new CSSParserToken;
517-
StringValuedToken.append = function(val) {
516+
StringValuedToken.prototype = new CSSParserToken;
517+
StringValuedToken.prototype.append = function(val) {
518518
if(val instanceof Array) {
519519
for(var i = 0; i < val.length; i++) {
520520
this.value.push(val[i]);

0 commit comments

Comments
 (0)