1 | /*
|
2 | * List of tags that close others / are self-closing
|
3 | */
|
4 |
|
5 | //Tags that close others
|
6 | exports.others = {
|
7 | body: "head",
|
8 | p: "p",
|
9 | li: {
|
10 | close: "li",
|
11 | not: "ul"
|
12 | },
|
13 | tr: {
|
14 | close: "tr",
|
15 | not: "table"
|
16 | },
|
17 | td: {
|
18 | close: "td",
|
19 | not: "table"
|
20 | }
|
21 | //... TODO
|
22 | };
|
23 |
|
24 | //HTML Tags that shouldn't contain child nodes
|
25 | exports.self = {
|
26 | area: true,
|
27 | base: true,
|
28 | basefont: true,
|
29 | br: true,
|
30 | col: true,
|
31 | frame: true,
|
32 | hr: true,
|
33 | img: true,
|
34 | input: true,
|
35 | isindex: true,
|
36 | link: true,
|
37 | meta: true,
|
38 | param: true,
|
39 | embed: true
|
40 | }; |
\ | No newline at end of file |