Permalink
Browse files

handle tags with casing unmatched, eg: <style></STYLE>

yes, the wild wild web need that kind of forgiveness
  • Loading branch information...
1 parent 60d64db commit 77709cb9f0d4dd37923800bd4a528d576dc16800 @clement committed Nov 30, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/node-htmlparser.js
  2. +1 −1 lib/node-htmlparser.min.js
View
@@ -208,7 +208,7 @@ function Parser (handler, options) {
var match = Parser._reTagName.exec(data);
if (!match)
return("");
- return((match[1] ? "/" : "") + match[2]);
+ return(((match[1] ? "/" : "") + match[2]).toLowerCase());
}
//Parses through HTML text and returns an array of found elements
Oops, something went wrong.

1 comment on commit 77709cb

This issue raises some further questions, which I also brought up here: tautologistics#22.

Please sign in to comment.