Skip to content

Commit

Permalink
handle tags with casing unmatched, eg: <style></STYLE>
Browse files Browse the repository at this point in the history
yes, the wild wild web need that kind of forgiveness
  • Loading branch information
clement committed Nov 30, 2010
1 parent 60d64db commit 77709cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/node-htmlparser.js
Expand Up @@ -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
Expand Down

1 comment on commit 77709cb

@kirbysayshi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.