Permalink
Browse files

Do a case insensitive comparison when checking whether the currently …

…open tag is <script> or <style>.
  • Loading branch information...
1 parent b8f555d commit 3abf6a24b20be5af68403ebcc2a048d5d9df6aeb @papandreou papandreou committed Apr 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/htmlparser.js
View
2 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)

0 comments on commit 3abf6a2

Please sign in to comment.