1 // Up-to-date as of 2013-04-12.
2 var tabularElements
= {
14 bgColor
: {type
: "string", treatNullAsEmptyString
: true},
15 cellPadding
: {type
: "string", treatNullAsEmptyString
: true},
16 cellSpacing
: {type
: "string", treatNullAsEmptyString
: true},
23 span
: "limited unsigned long",
27 ch
: {type
: "string", domAttrName
: "char"},
28 chOff
: {type
: "string", domAttrName
: "charoff"},
34 span
: "limited unsigned long",
38 ch
: {type
: "string", domAttrName
: "char"},
39 chOff
: {type
: "string", domAttrName
: "charoff"},
46 ch
: {type
: "string", domAttrName
: "char"},
47 chOff
: {type
: "string", domAttrName
: "charoff"},
53 ch
: {type
: "string", domAttrName
: "char"},
54 chOff
: {type
: "string", domAttrName
: "charoff"},
60 ch
: {type
: "string", domAttrName
: "char"},
61 chOff
: {type
: "string", domAttrName
: "charoff"},
67 ch
: {type
: "string", domAttrName
: "char"},
68 chOff
: {type
: "string", domAttrName
: "charoff"},
70 bgColor
: {type
: "string", treatNullAsEmptyString
: true},
73 // HTMLTableCellElement (Conforming)
74 colSpan
: {type
: "unsigned long", defaultVal
: 1},
75 rowSpan
: {type
: "unsigned long", defaultVal
: 1},
76 headers
: "settable tokenlist",
78 // HTMLTableCellElement (Obsolete)
83 ch
: {type
: "string", domAttrName
: "char"},
84 chOff
: {type
: "string", domAttrName
: "charoff"},
87 bgColor
: {type
: "string", treatNullAsEmptyString
: true},
89 // HTMLTableDataCellElement (Obsolete)
93 // HTMLTableCellElement (Conforming)
94 colSpan
: {type
: "unsigned long", defaultVal
: 1},
95 rowSpan
: {type
: "unsigned long", defaultVal
: 1},
96 headers
: "settable tokenlist",
98 // HTMLTableCellElement (Obsolete)
103 ch
: {type
: "string", domAttrName
: "char"},
104 chOff
: {type
: "string", domAttrName
: "charoff"},
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"]},
120 mergeElements(tabularElements
);