mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +00:00
Fix links and add rule to close incomplete <a/b/i>
This commit is contained in:
parent
93bccf14a2
commit
222f7c23ef
2 changed files with 16 additions and 2 deletions
3
index.js
3
index.js
|
|
@ -486,6 +486,9 @@ var kElementsClosedByOpening = {
|
|||
};
|
||||
var kElementsClosedByClosing = {
|
||||
li: {ul: true, ol: true},
|
||||
a: {div: true},
|
||||
b: {div: true},
|
||||
i: {div: true},
|
||||
p: {div: true},
|
||||
td: {tr: true, table: true},
|
||||
th: {tr: true, table: true}
|
||||
|
|
|
|||
15
package.json
15
package.json
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fast-html-parser",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
@ -27,5 +27,16 @@
|
|||
"travis-cov": {
|
||||
"threshold": 70
|
||||
}
|
||||
}
|
||||
},
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ashi009/node-fast-html-parser.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ashi009/node-fast-html-parser/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ashi009/node-fast-html-parser"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue