mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #21856 - zcorpan:zcorpan/remove-td-th-interfaces, r=jdm
Remove the HTMLTable{Header,Data}CellElement interfaces Fixes #17222. <!-- Please describe your changes on the following line: --> This removes the `HTMLTableHeaderCellElement` and `HTMLTableDataCellElement` interfaces and uses the `HTMLTableCellElement` interface for both `th` and `td` elements, as per the spec. --- <!-- 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 #17222. <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21856) <!-- Reviewable:end -->
This commit is contained in:
commit
69e5243810
19 changed files with 42 additions and 191 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#htmltablecellelement
|
||||
[HTMLConstructor, Abstract]
|
||||
[HTMLConstructor]
|
||||
interface HTMLTableCellElement : HTMLElement {
|
||||
[CEReactions]
|
||||
attribute unsigned long colSpan;
|
||||
|
@ -13,6 +13,11 @@ interface HTMLTableCellElement : HTMLElement {
|
|||
// attribute DOMString headers;
|
||||
readonly attribute long cellIndex;
|
||||
|
||||
// [CEReactions]
|
||||
// attribute DOMString scope; // only conforming for th elements
|
||||
// [CEReactions]
|
||||
// attribute DOMString abbr; // only conforming for th elements
|
||||
|
||||
// also has obsolete members
|
||||
};
|
||||
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/* 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/#htmltabledatacellelement
|
||||
[HTMLConstructor]
|
||||
interface HTMLTableDataCellElement : HTMLTableCellElement {
|
||||
// also has obsolete members
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#HTMLTableDataCellElement-partial
|
||||
partial interface HTMLTableDataCellElement {
|
||||
// [CEReactions]
|
||||
// attribute DOMString abbr;
|
||||
};
|
|
@ -1,15 +0,0 @@
|
|||
/* 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/#htmltableheadercellelement
|
||||
[HTMLConstructor]
|
||||
interface HTMLTableHeaderCellElement : HTMLTableCellElement {
|
||||
// [CEReactions]
|
||||
// attribute DOMString scope;
|
||||
// [CEReactions]
|
||||
// attribute DOMString abbr;
|
||||
// [CEReactions]
|
||||
// attribute DOMString sorted;
|
||||
// void sort();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue