OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
| 21 // https://html.spec.whatwg.org/#attributes-common-to-td-and-th-elements |
| 22 |
21 interface HTMLTableCellElement : HTMLElement { | 23 interface HTMLTableCellElement : HTMLElement { |
| 24 // TODO(philipj): All long types should be unsigned long. |
| 25 attribute long colSpan; |
| 26 attribute long rowSpan; |
| 27 // TODO(philipj): headers should be a [PutForwards=value] readonly attribute |
| 28 // DOMSettableTokenList. |
| 29 [Reflect, TreatNullAs=NullString] attribute DOMString headers; |
22 readonly attribute long cellIndex; | 30 readonly attribute long cellIndex; |
23 [Reflect] attribute DOMString abbr; | 31 |
| 32 // obsolete members |
| 33 // https://html.spec.whatwg.org/#HTMLTableCellElement-partial |
24 [Reflect] attribute DOMString align; | 34 [Reflect] attribute DOMString align; |
25 [Reflect] attribute DOMString axis; | 35 [Reflect] attribute DOMString axis; |
26 [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor; | 36 [Reflect] attribute DOMString height; |
| 37 [Reflect] attribute DOMString width; |
| 38 |
27 [Reflect=char] attribute DOMString ch; | 39 [Reflect=char] attribute DOMString ch; |
28 [Reflect=charoff] attribute DOMString chOff; | 40 [Reflect=charoff] attribute DOMString chOff; |
29 attribute long colSpan; | |
30 [Reflect, TreatNullAs=NullString] attribute DOMString headers; | |
31 [Reflect] attribute DOMString height; | |
32 [Reflect] attribute boolean noWrap; | 41 [Reflect] attribute boolean noWrap; |
33 attribute long rowSpan; | 42 [Reflect] attribute DOMString vAlign; |
| 43 |
| 44 [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor; |
| 45 |
| 46 // TODO(philipj): The spec has HTMLTableHeaderCellElement and |
| 47 // HTMLTableDataCellElement interfaces for the th and td elements |
| 48 // respectively. HTMLTableHeaderCellElement has the abbr and scope |
| 49 // attributes, while HTMLTableDataCellElement has only abbr. |
| 50 [Reflect] attribute DOMString abbr; |
34 [Reflect] attribute DOMString scope; | 51 [Reflect] attribute DOMString scope; |
35 [Reflect] attribute DOMString vAlign; | |
36 [Reflect] attribute DOMString width; | |
37 }; | 52 }; |
OLD | NEW |