From: Duncan Beevers Date: Tue, 2 Sep 2014 13:12:20 +0000 (-0500) Subject: Short-circuit corpus scan X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cf9738cf8d59e0304618a673a89efb6d9176ecc9;p=html-minifier.git Short-circuit corpus scan --- diff --git a/src/htmlparser.js b/src/htmlparser.js index a4447be..23f0f1d 100644 --- a/src/htmlparser.js +++ b/src/htmlparser.js @@ -165,7 +165,7 @@ if ( !stack.last() || !special[ stack.last() ] ) { // Comment: - if ( html.indexOf(''); if ( index >= 0 ) { @@ -178,7 +178,7 @@ } // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment - if ( html.indexOf(''); if (index >= 0) { @@ -211,7 +211,7 @@ } // End tag: - else if ( html.indexOf('