servo/components/script/dom/webidls/HTMLTableElement.webidl
author Greg Guthe <greg.guthe@gmail.com>
Tue, 19 Apr 2016 01:09:08 +0500
changeset 338559 4036fbc9a7134ae10955fb3aeaf2675d96f0cc18
parent 338491 8ebe1b758ee1af13d4e9cc8a600a4d1ebe3b8402
child 338587 afc9690e74e56a8b818fd238fe4e85bde0e75a65
permissions -rw-r--r--
servo: Merge #10508 - Insert row (from g-k:insert-row); r=KiChjang Fixes #9269 Source-Repo: https://github.com/servo/servo Source-Revision: 19a5a9ad081548b1ca03a1ce98857c32be5404b1

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmltableelement
interface HTMLTableElement : HTMLElement {
           attribute HTMLTableCaptionElement? caption;
  HTMLTableCaptionElement createCaption();
  void deleteCaption();
  [SetterThrows]
           attribute HTMLTableSectionElement? tHead;
  HTMLTableSectionElement createTHead();
  void deleteTHead();
  [SetterThrows]
           attribute HTMLTableSectionElement? tFoot;
  HTMLTableSectionElement createTFoot();
  void deleteTFoot();
  readonly attribute HTMLCollection tBodies;
  HTMLTableSectionElement createTBody();
  readonly attribute HTMLCollection rows;
  [Throws] HTMLTableRowElement insertRow(optional long index = -1);
  //void deleteRow(long index);

  // also has obsolete members
};

// https://html.spec.whatwg.org/multipage/#HTMLTableElement-partial
partial interface HTMLTableElement {
  //         attribute DOMString align;
  //         attribute DOMString border;
  //         attribute DOMString frame;
  //         attribute DOMString rules;
  //         attribute DOMString summary;
  attribute DOMString width;

  [TreatNullAs=EmptyString] attribute DOMString bgColor;
  //[TreatNullAs=EmptyString] attribute DOMString cellPadding;
  //[TreatNullAs=EmptyString] attribute DOMString cellSpacing;
};