diff --git a/lib/htmlparser.js b/lib/htmlparser.js index 30c5ced..3d9436e 100644 --- a/lib/htmlparser.js +++ b/lib/htmlparser.js @@ -227,7 +227,7 @@ function Parser (handler, options) { , type: this._parseState }; - var elementName = this.parseTagName(element.data); + var elementName = this.parseTagName(element.data).toLowerCase(); //This section inspects the current tag stack and modifies the current //element if we're actually parsing a special area (script/comment/style tag)