Skip to content

Commit bbc9ab1

Browse files
committed
Move to 'htmlparser2'
1 parent 106f180 commit bbc9ab1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var utils = require('./utils'),
22

33
diff = require('diff'),
4-
htmlParser = require('htmlparser'),
4+
htmlParser = require('htmlparser2'),
55
AST2Html = require('htmlparser-to-html'),
66
_ = require('lodash');
77

@@ -15,7 +15,7 @@ function htmlToAST(HTMLDoc, options) {
1515
var parser,
1616
parserHandler;
1717

18-
parserHandler = new htmlParser.DefaultHandler(function(err) {
18+
parserHandler = new htmlParser.DomHandler(function(err) {
1919
if (err) console.log(err);
2020
}, options);
2121

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"dependencies": {
3131
"vow": "0.4.3",
3232
"vow-fs": "0.3.1",
33-
"htmlparser": "1.7.7",
3433
"htmlparser-to-html": "0.0.5",
3534
"coa": "0.4.0",
3635
"diff": "1.0.8",
3736
"colors": "0.6.2",
3837
"lodash": "2.4.1",
39-
"istanbul": "0.3.0"
38+
"istanbul": "0.3.0",
39+
"htmlparser2": "3.7.3"
4040
},
4141
"devDependencies": {
4242
"mocha": "1.18.2",

0 commit comments

Comments
 (0)