From cf9738cf8d59e0304618a673a89efb6d9176ecc9 Mon Sep 17 00:00:00 2001 From: Duncan Beevers Date: Tue, 2 Sep 2014 08:12:20 -0500 Subject: [PATCH] Short-circuit corpus scan --- src/htmlparser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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('