From: Micky Hulse Date: Wed, 21 Aug 2013 22:14:17 +0000 (-0700) Subject: Cleaning up a few things like ... X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b4ecab25d04ba9e9d5b027368e980f646387e10e;p=html-minifier.git Cleaning up a few things like ... … removal of an unused variable. --- diff --git a/dist/all.js b/dist/all.js index 21c7de5..beeb700 100644 --- a/dist/all.js +++ b/dist/all.js @@ -56,7 +56,7 @@ var reCache = { }, stackedTag, reStackedTag, tagMatch; var HTMLParser = global.HTMLParser = function( html, handler ) { - var index, chars, ignored = [], match, stack = [], last = html, prevTag, nextTag; + var index, chars, match, stack = [], last = html, prevTag, nextTag; stack.last = function(){ return this[ this.length - 1 ]; }; @@ -67,7 +67,7 @@ // Make sure we're not in a script or style element if ( !stack.last() || !special[ stack.last() ] ) { - // Comment + // Comment: if ( html.indexOf(""); @@ -89,14 +89,16 @@ } } + // Doctype: else if ( (match = doctype.exec( html )) ) { if ( handler.doctype ) handler.doctype( match[0] ); html = html.substring( match[0].length ); chars = false; + } - // end tag - } else if ( html.indexOf(""); @@ -89,14 +89,16 @@ } } + // Doctype: else if ( (match = doctype.exec( html )) ) { if ( handler.doctype ) handler.doctype( match[0] ); html = html.substring( match[0].length ); chars = false; + } - // end tag - } else if ( html.indexOf("