michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * http://www.whatwg.org/specs/web-apps/current-work/ michael@0: * michael@0: * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and michael@0: * Opera Software ASA. You are granted a license to use, reproduce michael@0: * and create derivative works of this document. michael@0: */ michael@0: michael@0: interface HTMLTableElement : HTMLElement { michael@0: attribute HTMLTableCaptionElement? caption; michael@0: HTMLElement createCaption(); michael@0: void deleteCaption(); michael@0: [SetterThrows] michael@0: attribute HTMLTableSectionElement? tHead; michael@0: HTMLElement createTHead(); michael@0: void deleteTHead(); michael@0: [SetterThrows] michael@0: attribute HTMLTableSectionElement? tFoot; michael@0: HTMLElement createTFoot(); michael@0: void deleteTFoot(); michael@0: readonly attribute HTMLCollection tBodies; michael@0: HTMLElement createTBody(); michael@0: readonly attribute HTMLCollection rows; michael@0: [Throws] michael@0: HTMLElement insertRow(optional long index = -1); michael@0: [Throws] michael@0: void deleteRow(long index); michael@0: // attribute boolean sortable; michael@0: //void stopSorting(); michael@0: }; michael@0: michael@0: partial interface HTMLTableElement { michael@0: [SetterThrows] michael@0: attribute DOMString align; michael@0: [SetterThrows] michael@0: attribute DOMString border; michael@0: [SetterThrows] michael@0: attribute DOMString frame; michael@0: [SetterThrows] michael@0: attribute DOMString rules; michael@0: [SetterThrows] michael@0: attribute DOMString summary; michael@0: [SetterThrows] michael@0: attribute DOMString width; michael@0: michael@0: [TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor; michael@0: [TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellPadding; michael@0: [TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellSpacing; michael@0: };