From b4ecab25d04ba9e9d5b027368e980f646387e10e Mon Sep 17 00:00:00 2001 From: Micky Hulse Date: Wed, 21 Aug 2013 15:14:17 -0700 Subject: [PATCH] Cleaning up a few things like ... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … removal of an unused variable. --- dist/all.js | 12 +++++++----- src/htmlparser.js | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) 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("