Permalink
Browse files

Merge pull request #43 from papandreou/master

Do a case insensitive comparison when checking whether we're inside <script> or <style>
  • Loading branch information...
2 parents e89d0c9 + 3abf6a2 commit 403fe8655213e528f6096d1f33fa8eec49e6465e @tautologistics 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 403fe86

Please sign in to comment.