Fix links and add rule to close incomplete <a/b/i>

This commit is contained in:
Xiaoyi Shi 2015-04-12 17:54:42 +10:00
parent 93bccf14a2
commit 222f7c23ef
2 changed files with 16 additions and 2 deletions

View file

@ -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}

View file

@ -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"
}