From d36faffecae72e40ad71585334fd93d56479b820 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 18 Mar 2015 10:09:30 +0200 Subject: [PATCH] Fix parsing for U+2028 / U+2029 (they should be treated as whitespace) --- lib/parse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/parse.js b/lib/parse.js index 0e269ab7..95a9f776 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -298,7 +298,8 @@ function tokenizer($TEXT, filename, html5_comments) { }; function skip_whitespace() { - while (WHITESPACE_CHARS(peek())) + var ch; + while (WHITESPACE_CHARS(ch = peek()) || ch == "\u2028" || ch == "\u2029") next(); }; -- 2.34.1