| OLD | NEW |
| 1 // Up-to-date as of 2013-04-12. | 1 // Up-to-date as of 2013-04-12. |
| 2 var tabularElements = { | 2 var tabularElements = { |
| 3 table: { | 3 table: { |
| 4 // Conforming | 4 // Conforming |
| 5 sortable: "boolean", | 5 sortable: "boolean", |
| 6 | 6 |
| 7 // Obsolete | 7 // Obsolete |
| 8 align: "string", | 8 align: "string", |
| 9 border: "string", | 9 border: "string", |
| 10 frame: "string", | 10 frame: "string", |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 ch: {type: "string", domAttrName: "char"}, | 67 ch: {type: "string", domAttrName: "char"}, |
| 68 chOff: {type: "string", domAttrName: "charoff"}, | 68 chOff: {type: "string", domAttrName: "charoff"}, |
| 69 vAlign: "string", | 69 vAlign: "string", |
| 70 bgColor: {type: "string", treatNullAsEmptyString: true}, | 70 bgColor: {type: "string", treatNullAsEmptyString: true}, |
| 71 }, | 71 }, |
| 72 td: { | 72 td: { |
| 73 // HTMLTableCellElement (Conforming) | 73 // HTMLTableCellElement (Conforming) |
| 74 colSpan: {type: "unsigned long", defaultVal: 1}, | 74 colSpan: {type: "unsigned long", defaultVal: 1}, |
| 75 rowSpan: {type: "unsigned long", defaultVal: 1}, | 75 rowSpan: {type: "unsigned long", defaultVal: 1}, |
| 76 headers: "settable tokenlist", | 76 headers: "settable tokenlist", |
| 77 scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]}, |
| 78 abbr: "string", |
| 77 | 79 |
| 78 // HTMLTableCellElement (Obsolete) | 80 // HTMLTableCellElement (Obsolete) |
| 79 align: "string", | 81 align: "string", |
| 80 axis: "string", | 82 axis: "string", |
| 81 height: "string", | 83 height: "string", |
| 82 width: "string", | 84 width: "string", |
| 83 ch: {type: "string", domAttrName: "char"}, | 85 ch: {type: "string", domAttrName: "char"}, |
| 84 chOff: {type: "string", domAttrName: "charoff"}, | 86 chOff: {type: "string", domAttrName: "charoff"}, |
| 85 noWrap: "boolean", | 87 noWrap: "boolean", |
| 86 vAlign: "string", | 88 vAlign: "string", |
| 87 bgColor: {type: "string", treatNullAsEmptyString: true}, | 89 bgColor: {type: "string", treatNullAsEmptyString: true}, |
| 88 | |
| 89 // HTMLTableDataCellElement (Obsolete) | |
| 90 abbr: "string", | |
| 91 }, | 90 }, |
| 92 th: { | 91 th: { |
| 93 // HTMLTableCellElement (Conforming) | 92 // HTMLTableCellElement (Conforming) |
| 94 colSpan: {type: "unsigned long", defaultVal: 1}, | 93 colSpan: {type: "unsigned long", defaultVal: 1}, |
| 95 rowSpan: {type: "unsigned long", defaultVal: 1}, | 94 rowSpan: {type: "unsigned long", defaultVal: 1}, |
| 96 headers: "settable tokenlist", | 95 headers: "settable tokenlist", |
| 96 scope: {type: "enum", keywords: ["row", "col", "rowgroup", "colgroup"]}, |
| 97 abbr: "string", |
| 97 | 98 |
| 98 // HTMLTableCellElement (Obsolete) | 99 // HTMLTableCellElement (Obsolete) |
| 99 align: "string", | 100 align: "string", |
| 100 axis: "string", | 101 axis: "string", |
| 101 height: "string", | 102 height: "string", |
| 102 width: "string", | 103 width: "string", |
| 103 ch: {type: "string", domAttrName: "char"}, | 104 ch: {type: "string", domAttrName: "char"}, |
| 104 chOff: {type: "string", domAttrName: "charoff"}, | 105 chOff: {type: "string", domAttrName: "charoff"}, |
| 105 noWrap: "boolean", | 106 noWrap: "boolean", |
| 106 vAlign: "string", | 107 vAlign: "string", |
| 107 bgColor: {type: "string", treatNullAsEmptyString: true}, | 108 bgColor: {type: "string", treatNullAsEmptyString: true}, |
| 108 | |
| 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", | |
| 117 }, | 109 }, |
| 118 }; | 110 }; |
| 119 | 111 |
| 120 mergeElements(tabularElements); | 112 mergeElements(tabularElements); |
| OLD | NEW |