handle mixed-case tags, for ex: <head></HEAD> #20

Open
wants to merge 1 commit into
from
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.