OLD | NEW |
| (Empty) |
1 // Up-to-date as of 2013-04-12. | |
2 var tabularElements = { | |
3 table: { | |
4 // Conforming | |
5 sortable: "boolean", | |
6 | |
7 // Obsolete | |
8 align: "string", | |
9 border: "string", | |
10 frame: "string", | |
11 rules: "string", | |
12 summary: "string", | |
13 width: "string", | |
14 bgColor: {type: "string", treatNullAsEmptyString: true}, | |
15 cellPadding: {type: "string", treatNullAsEmptyString: true}, | |
16 cellSpacing: {type: "string", treatNullAsEmptyString: true}, | |
17 }, | |
18 caption: { | |
19 // Obsolete | |
20 align: "string", | |
21 }, | |
22 colgroup: { | |
23 span: "limited unsigned long", | |
24 | |
25 // Obsolete | |
26 align: "string", | |
27 ch: {type: "string", domAttrName: "char"}, | |
28 chOff: {type: "string", domAttrName: "charoff"}, | |
29 vAlign: "string", | |
30 width: "string", | |
31 }, | |
32 col: { | |
33 // Conforming | |
34 span: "limited unsigned long", | |
35 | |
36 // Obsolete | |
37 align: "string", | |
38 ch: {type: "string", domAttrName: "char"}, | |
39 chOff: {type: "string", domAttrName: "charoff"}, | |
40 vAlign: "string", | |
41 width: "string", | |
42 }, | |
43 tbody: { | |
44 // Obsolete | |
45 align: "string", | |
46 ch: {type: "string", domAttrName: "char"}, | |
47 chOff: {type: "string", domAttrName: "charoff"}, | |
48 vAlign: "string", | |
49 }, | |
50 thead: { | |
51 // Obsolete | |
52 align: "string", | |
53 ch: {type: "string", domAttrName: "char"}, | |
54 chOff: {type: "string", domAttrName: "charoff"}, | |
55 vAlign: "string", | |
56 }, | |
57 tfoot: { | |
58 // Obsolete | |
59 align: "string", | |
60 ch: {type: "string", domAttrName: "char"}, | |
61 chOff: {type: "string", domAttrName: "charoff"}, | |
62 vAlign: "string", | |
63 }, | |
64 tr: { | |
65 // Obsolete | |
66 align: "string", | |
67 ch: {type: "string", domAttrName: "char"}, | |
68 chOff: {type: "string", domAttrName: "charoff"}, | |
69 vAlign: "string", | |
70 bgColor: {type: "string", treatNullAsEmptyString: true}, | |
71 }, | |
72 td: { | |
73 // HTMLTableCellElement (Conforming) | |
74 colSpan: {type: "unsigned long", defaultVal: 1}, | |
75 rowSpan: {type: "unsigned long", defaultVal: 1}, | |
76 headers: "settable tokenlist", | |
77 scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]}, | |
78 abbr: "string", | |
79 | |
80 // HTMLTableCellElement (Obsolete) | |
81 align: "string", | |
82 axis: "string", | |
83 height: "string", | |
84 width: "string", | |
85 ch: {type: "string", domAttrName: "char"}, | |
86 chOff: {type: "string", domAttrName: "charoff"}, | |
87 noWrap: "boolean", | |
88 vAlign: "string", | |
89 bgColor: {type: "string", treatNullAsEmptyString: true}, | |
90 }, | |
91 th: { | |
92 // HTMLTableCellElement (Conforming) | |
93 colSpan: {type: "unsigned long", defaultVal: 1}, | |
94 rowSpan: {type: "unsigned long", defaultVal: 1}, | |
95 headers: "settable tokenlist", | |
96 scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]}, | |
97 abbr: "string", | |
98 | |
99 // HTMLTableCellElement (Obsolete) | |
100 align: "string", | |
101 axis: "string", | |
102 height: "string", | |
103 width: "string", | |
104 ch: {type: "string", domAttrName: "char"}, | |
105 chOff: {type: "string", domAttrName: "charoff"}, | |
106 noWrap: "boolean", | |
107 vAlign: "string", | |
108 bgColor: {type: "string", treatNullAsEmptyString: true}, | |
109 }, | |
110 }; | |
111 | |
112 mergeElements(tabularElements); | |
OLD | NEW |