Skip to content

Commit

Permalink
[tokenizer] recognize the form field (U+0C), drop the carriage return…
Browse files Browse the repository at this point in the history
… (U+0D)

to be inline with the HTML5 spec

(recognized in cheeriojs/cheerio#242)
  • Loading branch information
fb55 committed Jul 30, 2013
1 parent f6f93ef commit 263775f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tokenizer.js
Expand Up @@ -68,7 +68,7 @@ var i = 0,


function whitespace(c){
return c === " " || c === "\t" || c === "\r" || c === "\n";
return c === " " || c === "\n" || c === "\t" || c === "\f";
}

function Tokenizer(options, cbs){
Expand Down

0 comments on commit 263775f

Please sign in to comment.