Skip to content

Commit

Permalink
Do a case insensitive comparison when checking whether the currently …
Browse files Browse the repository at this point in the history
…open tag is <script> or <style>.
  • Loading branch information
papandreou committed Apr 1, 2012
1 parent b8f555d commit 3abf6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/htmlparser.js
Expand Up @@ -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)
Expand Down

0 comments on commit 3abf6a2

Please sign in to comment.