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