Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / imported / web-platform-tests / html / dom / elements-tabular.js
blob9feff99f105fc30dd7254d36fd29967776c69ab2
1 // Up-to-date as of 2013-04-12.
2 var tabularElements = {
3 table: {
4 // Conforming
5 sortable: "boolean",
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},
18 caption: {
19 // Obsolete
20 align: "string",
22 colgroup: {
23 span: "limited unsigned long",
25 // Obsolete
26 align: "string",
27 ch: {type: "string", domAttrName: "char"},
28 chOff: {type: "string", domAttrName: "charoff"},
29 vAlign: "string",
30 width: "string",
32 col: {
33 // Conforming
34 span: "limited unsigned long",
36 // Obsolete
37 align: "string",
38 ch: {type: "string", domAttrName: "char"},
39 chOff: {type: "string", domAttrName: "charoff"},
40 vAlign: "string",
41 width: "string",
43 tbody: {
44 // Obsolete
45 align: "string",
46 ch: {type: "string", domAttrName: "char"},
47 chOff: {type: "string", domAttrName: "charoff"},
48 vAlign: "string",
50 thead: {
51 // Obsolete
52 align: "string",
53 ch: {type: "string", domAttrName: "char"},
54 chOff: {type: "string", domAttrName: "charoff"},
55 vAlign: "string",
57 tfoot: {
58 // Obsolete
59 align: "string",
60 ch: {type: "string", domAttrName: "char"},
61 chOff: {type: "string", domAttrName: "charoff"},
62 vAlign: "string",
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},
72 td: {
73 // HTMLTableCellElement (Conforming)
74 colSpan: {type: "unsigned long", defaultVal: 1},
75 rowSpan: {type: "unsigned long", defaultVal: 1},
76 headers: "settable tokenlist",
78 // HTMLTableCellElement (Obsolete)
79 align: "string",
80 axis: "string",
81 height: "string",
82 width: "string",
83 ch: {type: "string", domAttrName: "char"},
84 chOff: {type: "string", domAttrName: "charoff"},
85 noWrap: "boolean",
86 vAlign: "string",
87 bgColor: {type: "string", treatNullAsEmptyString: true},
89 // HTMLTableDataCellElement (Obsolete)
90 abbr: "string",
92 th: {
93 // HTMLTableCellElement (Conforming)
94 colSpan: {type: "unsigned long", defaultVal: 1},
95 rowSpan: {type: "unsigned long", defaultVal: 1},
96 headers: "settable tokenlist",
98 // HTMLTableCellElement (Obsolete)
99 align: "string",
100 axis: "string",
101 height: "string",
102 width: "string",
103 ch: {type: "string", domAttrName: "char"},
104 chOff: {type: "string", domAttrName: "charoff"},
105 noWrap: "boolean",
106 vAlign: "string",
107 bgColor: {type: "string", treatNullAsEmptyString: true},
109 // HTMLTableHeaderCellElement (Conforming)
110 // TODO: double-check that the way we're treating missing value
111 // defaults is consistent here. scope has an auto state with no
112 // associated keyword, which is the missing value default -- is this
113 // the right syntax for that?
114 scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]},
115 abbr: "string",
116 sorted: "string",
120 mergeElements(tabularElements);