1/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/
8 *
9 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
10 * Opera Software ASA. You are granted a license to use, reproduce
11 * and create derivative works of this document.
12 */
13
14[HTMLConstructor]
15interface HTMLTableElement : HTMLElement {
16           [CEReactions, SetterThrows]
17           attribute HTMLTableCaptionElement? caption;
18  HTMLElement createCaption();
19  [CEReactions]
20  void deleteCaption();
21           [CEReactions, SetterThrows]
22           attribute HTMLTableSectionElement? tHead;
23  HTMLElement createTHead();
24  [CEReactions]
25  void deleteTHead();
26           [CEReactions, SetterThrows]
27           attribute HTMLTableSectionElement? tFoot;
28  HTMLElement createTFoot();
29  [CEReactions]
30  void deleteTFoot();
31  readonly attribute HTMLCollection tBodies;
32  HTMLElement createTBody();
33  readonly attribute HTMLCollection rows;
34  [Throws]
35  HTMLElement insertRow(optional long index = -1);
36  [CEReactions, Throws]
37  void deleteRow(long index);
38  //         attribute boolean sortable;
39  //void stopSorting();
40};
41
42partial interface HTMLTableElement {
43           [CEReactions, SetterThrows]
44           attribute DOMString align;
45           [CEReactions, SetterThrows]
46           attribute DOMString border;
47           [CEReactions, SetterThrows]
48           attribute DOMString frame;
49           [CEReactions, SetterThrows]
50           attribute DOMString rules;
51           [CEReactions, SetterThrows]
52           attribute DOMString summary;
53           [CEReactions, SetterThrows]
54           attribute DOMString width;
55
56  [CEReactions, TreatNullAs=EmptyString, SetterThrows]
57           attribute DOMString bgColor;
58  [CEReactions, TreatNullAs=EmptyString, SetterThrows]
59           attribute DOMString cellPadding;
60  [CEReactions, TreatNullAs=EmptyString, SetterThrows]
61           attribute DOMString cellSpacing;
62};
63