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/#the-table-element |
| 22 |
21 interface HTMLTableElement : HTMLElement { | 23 interface HTMLTableElement : HTMLElement { |
22 [RaisesException=Setter] attribute HTMLTableCaptionElement caption; | 24 // TODO(philipj): The caption, tHead and tFoot setters should never throw. |
23 [RaisesException=Setter] attribute HTMLTableSectionElement tHead; | 25 [RaisesException=Setter] attribute HTMLTableCaptionElement? caption; |
24 [RaisesException=Setter] attribute HTMLTableSectionElement tFoot; | 26 HTMLElement createCaption(); |
| 27 void deleteCaption(); |
| 28 [RaisesException=Setter] attribute HTMLTableSectionElement? tHead; |
| 29 HTMLElement createTHead(); |
| 30 void deleteTHead(); |
| 31 [RaisesException=Setter] attribute HTMLTableSectionElement? tFoot; |
| 32 HTMLElement createTFoot(); |
| 33 void deleteTFoot(); |
| 34 readonly attribute HTMLCollection tBodies; |
| 35 HTMLElement createTBody(); |
| 36 readonly attribute HTMLCollection rows; |
| 37 [RaisesException] HTMLElement insertRow(optional long index = -1); |
| 38 // TODO(philipj): The index argument should not be optional. |
| 39 [RaisesException] void deleteRow([Default=Undefined] optional long index); |
| 40 // attribute boolean sortable; |
| 41 // void stopSorting(); |
25 | 42 |
26 readonly attribute HTMLCollection rows; | 43 // obsolete members |
27 readonly attribute HTMLCollection tBodies; | 44 // https://html.spec.whatwg.org/#HTMLTableElement-partial |
28 [Reflect] attribute DOMString align; | 45 [Reflect] attribute DOMString align; |
29 [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor; | |
30 [Reflect] attribute DOMString border; | 46 [Reflect] attribute DOMString border; |
31 [Reflect, TreatNullAs=EmptyString] attribute DOMString cellPadding; | |
32 [Reflect, TreatNullAs=EmptyString] attribute DOMString cellSpacing; | |
33 | |
34 [Reflect] attribute DOMString frame; | 47 [Reflect] attribute DOMString frame; |
35 | |
36 [Reflect] attribute DOMString rules; | 48 [Reflect] attribute DOMString rules; |
37 [Reflect] attribute DOMString summary; | 49 [Reflect] attribute DOMString summary; |
38 [Reflect] attribute DOMString width; | 50 [Reflect] attribute DOMString width; |
39 | 51 |
40 HTMLElement createTHead(); | 52 [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor; |
41 void deleteTHead(); | 53 [Reflect, TreatNullAs=EmptyString] attribute DOMString cellPadding; |
42 HTMLElement createTFoot(); | 54 [Reflect, TreatNullAs=EmptyString] attribute DOMString cellSpacing; |
43 void deleteTFoot(); | |
44 HTMLElement createTBody(); | |
45 HTMLElement createCaption(); | |
46 void deleteCaption(); | |
47 | |
48 [RaisesException] HTMLElement insertRow(optional long index = -1); | |
49 [RaisesException] void deleteRow([Default=Undefined] optional long index); | |
50 }; | 55 }; |
OLD | NEW |