mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Auto merge of #7829 - frewsxcv:htmltablecellelement-cellindex, r=Ms2ger
Implement HTMLTableCellElement::CellIndex Extracted from #6936 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7829) <!-- Reviewable:end -->
This commit is contained in:
commit
55769b2fbf
5 changed files with 29 additions and 28 deletions
|
@ -4770,9 +4770,6 @@
|
|||
[HTMLTableCellElement interface: document.createElement("td") must inherit property "headers" with the proper type (2)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTableCellElement interface: document.createElement("td") must inherit property "cellIndex" with the proper type (3)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTableCellElement interface: document.createElement("td") must inherit property "align" with the proper type (4)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -4833,9 +4830,6 @@
|
|||
[HTMLTableCellElement interface: document.createElement("th") must inherit property "headers" with the proper type (2)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTableCellElement interface: document.createElement("th") must inherit property "cellIndex" with the proper type (3)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTableCellElement interface: document.createElement("th") must inherit property "align" with the proper type (4)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -4872,9 +4866,6 @@
|
|||
[HTMLTableCellElement interface: attribute headers]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTableCellElement interface: attribute cellIndex]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTableCellElement interface: attribute align]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
[cellIndex.html]
|
||||
type: testharness
|
||||
[cellIndex should exist.]
|
||||
expected: FAIL
|
||||
|
||||
[For cells without a parent, cellIndex should be -1.]
|
||||
expected: FAIL
|
||||
|
||||
[For cells whose parent is not a tr, cellIndex should be -1.]
|
||||
expected: FAIL
|
||||
|
||||
[For cells whose parent is not a HTML tr, cellIndex should be -1.]
|
||||
expected: FAIL
|
||||
|
||||
[For cells whose parent is a tr, cellIndex should be the index.]
|
||||
expected: FAIL
|
||||
|
|
@ -38,4 +38,13 @@ test(function() {
|
|||
var td = tr.appendChild(document.createElement("td"));
|
||||
assert_equals(td.cellIndex, 1);
|
||||
}, "For cells whose parent is a tr, cellIndex should be the index.")
|
||||
test(function() {
|
||||
var tr = document.createElement("tr");
|
||||
var th = tr.appendChild(document.createElement("th"));
|
||||
assert_equals(th.cellIndex, 0);
|
||||
tr.appendChild(document.createElement("div"));
|
||||
tr.appendChild(document.createTextNode("Hello World"));
|
||||
var td = tr.appendChild(document.createElement("td"));
|
||||
assert_equals(td.cellIndex, 1)
|
||||
}, "For cells whose parent is a tr with non td/th sibling, cellIndex should skip those non td/th siblings.")
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue