1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/HTMLTableElement.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * The origin of this IDL file is 1.10 + * http://www.whatwg.org/specs/web-apps/current-work/ 1.11 + * 1.12 + * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and 1.13 + * Opera Software ASA. You are granted a license to use, reproduce 1.14 + * and create derivative works of this document. 1.15 + */ 1.16 + 1.17 +interface HTMLTableElement : HTMLElement { 1.18 + attribute HTMLTableCaptionElement? caption; 1.19 + HTMLElement createCaption(); 1.20 + void deleteCaption(); 1.21 + [SetterThrows] 1.22 + attribute HTMLTableSectionElement? tHead; 1.23 + HTMLElement createTHead(); 1.24 + void deleteTHead(); 1.25 + [SetterThrows] 1.26 + attribute HTMLTableSectionElement? tFoot; 1.27 + HTMLElement createTFoot(); 1.28 + void deleteTFoot(); 1.29 + readonly attribute HTMLCollection tBodies; 1.30 + HTMLElement createTBody(); 1.31 + readonly attribute HTMLCollection rows; 1.32 + [Throws] 1.33 + HTMLElement insertRow(optional long index = -1); 1.34 + [Throws] 1.35 + void deleteRow(long index); 1.36 + // attribute boolean sortable; 1.37 + //void stopSorting(); 1.38 +}; 1.39 + 1.40 +partial interface HTMLTableElement { 1.41 + [SetterThrows] 1.42 + attribute DOMString align; 1.43 + [SetterThrows] 1.44 + attribute DOMString border; 1.45 + [SetterThrows] 1.46 + attribute DOMString frame; 1.47 + [SetterThrows] 1.48 + attribute DOMString rules; 1.49 + [SetterThrows] 1.50 + attribute DOMString summary; 1.51 + [SetterThrows] 1.52 + attribute DOMString width; 1.53 + 1.54 + [TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor; 1.55 + [TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellPadding; 1.56 + [TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellSpacing; 1.57 +};