Skip to content

Commit 9a15925

Browse files
committedMar 3, 2016
Update index.js
1 parent a327a5d commit 9a15925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function postHTMLParser(html) {
1616

1717
var parser = new htmlparser.Parser({
1818
onprocessinginstruction: function(name, data) {
19-
name === '!doctype' && results.push('<' + data + '>');
19+
name.toLowerCase() === '!doctype' && results.push('<' + data + '>');
2020
},
2121
oncomment: function(data) {
2222
var comment = '<!--' + data + '-->',
@@ -63,7 +63,7 @@ module.exports = function postHTMLParser(html) {
6363
last.content || (last.content = []);
6464
last.content.push(text);
6565
}
66-
});
66+
}, {lowerCaseTags: false});
6767

6868
parser.write(html);
6969
parser.end();

0 commit comments

Comments
 (0)