We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878bd17 commit b867a45Copy full SHA for b867a45
index.js
@@ -1,4 +1,3 @@
1
-/*jshint -W082 */
2
var htmlparser = require('htmlparser2');
3
4
/**
@@ -16,7 +15,9 @@ module.exports = function postHTMLParser(html) {
16
15
17
var parser = new htmlparser.Parser({
18
onprocessinginstruction: function(name, data) {
19
- name.toLowerCase() === '!doctype' && results.push('<' + data + '>');
+ if (name.toLowerCase() === '!doctype') {
+ results.push('<' + data + '>');
20
+ }
21
},
22
oncomment: function(data) {
23
var comment = '<!--' + data + '-->',
0 commit comments