File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ function tokenize(str) {
115
115
return codepoint == - 1 ;
116
116
} ;
117
117
var donothing = function ( ) { } ;
118
- var parseerror = function ( ) { console . log ( "Parse error at index " + i + ", processing codepoint 0x" + code . toString ( 16 ) + " in state " + state + " .") ; return true ; } ;
118
+ var parseerror = function ( ) { console . log ( "Parse error at index " + i + ", processing codepoint 0x" + code . toString ( 16 ) + "." ) ; return true ; } ;
119
119
120
120
var consumeAToken = function ( ) {
121
121
consumeComments ( ) ;
@@ -299,9 +299,10 @@ function tokenize(str) {
299
299
var str = consumeAName ( ) ;
300
300
if ( str . toLowerCase ( ) == "url" && next ( ) == 0x28 ) {
301
301
consume ( ) ;
302
- while ( whitespace ( next ( ) ) ) consume ( ) ;
302
+ while ( whitespace ( next ( 1 ) ) && whitespace ( next ( 2 ) ) ) consume ( ) ;
303
303
if ( next ( ) == 0x22 || next ( ) == 0x27 ) {
304
- reconsume ( ) ;
304
+ return new FunctionToken ( str ) ;
305
+ } else if ( whitespace ( next ( ) ) && ( next ( 2 ) == 0x22 || next ( 2 ) == 0x27 ) ) {
305
306
return new FunctionToken ( str ) ;
306
307
} else {
307
308
return consumeAURLToken ( ) ;
You can’t perform that action at this time.
0 commit comments