Files
tubestation/servo/components/script/dom/webidls/HTMLTableElement.webidl
Jean SIMARD 4b08dbe577 servo: Merge #12530 - partial-fix #12415: incorrect exposure of Window,Worker in webidl (from woshilapin:fix-12415/htmltable); r=jdm
<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix (partially) #12415 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they don't add any feature

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

* HTMLTableCaptionElement.webidl [[spec](https://html.spec.whatwg.org/multipage/#htmltablecaptionelement)]
* HTMLTableCellElement.webidl [[spec](https://html.spec.whatwg.org/multipage/#htmltablecellelement)]
* HTMLTableColElement.webidl [[spec](https://html.spec.whatwg.org/multipage/#htmltablecolelement)]
* HTMLTableElement.webidl [[spec](https://html.spec.whatwg.org/multipage/#htmltableelement)]
* HTMLTableRowElement.webidl [[spec](https://html.spec.whatwg.org/multipage/#htmltablerowelement)]
* HTMLTableSectionElement.webidl [[spec](https://html.spec.whatwg.org/multipage/#htmltablesectionelement)]

Source-Repo: https://github.com/servo/servo
Source-Revision: 7c8bd58c4a53077af564f8024179732dffa15b39
2016-07-23 00:10:27 -05:00

40 lines
1.5 KiB
Plaintext

/* 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;
};