mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
109 lines
3 KiB
JavaScript
109 lines
3 KiB
JavaScript
// Up-to-date as of 2013-04-12.
|
|
var tabularElements = {
|
|
table: {
|
|
// Obsolete
|
|
align: "string",
|
|
border: "string",
|
|
frame: "string",
|
|
rules: "string",
|
|
summary: "string",
|
|
width: "string",
|
|
bgColor: {type: "string", treatNullAsEmptyString: true},
|
|
cellPadding: {type: "string", treatNullAsEmptyString: true},
|
|
cellSpacing: {type: "string", treatNullAsEmptyString: true},
|
|
},
|
|
caption: {
|
|
// Obsolete
|
|
align: "string",
|
|
},
|
|
colgroup: {
|
|
span: {type: "limited unsigned long with fallback", defaultVal: 1},
|
|
|
|
// Obsolete
|
|
align: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
vAlign: "string",
|
|
width: "string",
|
|
},
|
|
col: {
|
|
// Conforming
|
|
span: {type: "limited unsigned long with fallback", defaultVal: 1},
|
|
|
|
// Obsolete
|
|
align: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
vAlign: "string",
|
|
width: "string",
|
|
},
|
|
tbody: {
|
|
// Obsolete
|
|
align: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
vAlign: "string",
|
|
},
|
|
thead: {
|
|
// Obsolete
|
|
align: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
vAlign: "string",
|
|
},
|
|
tfoot: {
|
|
// Obsolete
|
|
align: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
vAlign: "string",
|
|
},
|
|
tr: {
|
|
// Obsolete
|
|
align: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
vAlign: "string",
|
|
bgColor: {type: "string", treatNullAsEmptyString: true},
|
|
},
|
|
td: {
|
|
// HTMLTableCellElement (Conforming)
|
|
colSpan: {type: "unsigned long", defaultVal: 1},
|
|
rowSpan: {type: "unsigned long", defaultVal: 1},
|
|
headers: "settable tokenlist",
|
|
scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]},
|
|
abbr: "string",
|
|
|
|
// HTMLTableCellElement (Obsolete)
|
|
align: "string",
|
|
axis: "string",
|
|
height: "string",
|
|
width: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
noWrap: "boolean",
|
|
vAlign: "string",
|
|
bgColor: {type: "string", treatNullAsEmptyString: true},
|
|
},
|
|
th: {
|
|
// HTMLTableCellElement (Conforming)
|
|
colSpan: {type: "unsigned long", defaultVal: 1},
|
|
rowSpan: {type: "unsigned long", defaultVal: 1},
|
|
headers: "settable tokenlist",
|
|
scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]},
|
|
abbr: "string",
|
|
|
|
// HTMLTableCellElement (Obsolete)
|
|
align: "string",
|
|
axis: "string",
|
|
height: "string",
|
|
width: "string",
|
|
ch: {type: "string", domAttrName: "char"},
|
|
chOff: {type: "string", domAttrName: "charoff"},
|
|
noWrap: "boolean",
|
|
vAlign: "string",
|
|
bgColor: {type: "string", treatNullAsEmptyString: true},
|
|
},
|
|
};
|
|
|
|
mergeElements(tabularElements);
|