Auto merge of #7089 - dzbarsky:createtbody, r=Ms2ger

Implement HTMLTableElement#createTBody



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7089)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-09 13:56:47 -06:00
commit 44d93bc37a
5 changed files with 32 additions and 54 deletions

View file

@ -4587,9 +4587,6 @@
[HTMLTableElement interface: attribute tBodies]
expected: FAIL
[HTMLTableElement interface: operation createTBody()]
expected: FAIL
[HTMLTableElement interface: attribute rows]
expected: FAIL
@ -4653,9 +4650,6 @@
[HTMLTableElement interface: document.createElement("table") must inherit property "tBodies" with the proper type (9)]
expected: FAIL
[HTMLTableElement interface: document.createElement("table") must inherit property "createTBody" with the proper type (10)]
expected: FAIL
[HTMLTableElement interface: document.createElement("table") must inherit property "rows" with the proper type (11)]
expected: FAIL

View file

@ -1,44 +0,0 @@
[createTBody.html]
type: testharness
[No child nodes]
expected: FAIL
[One tbody child node]
expected: FAIL
[Two tbody child nodes]
expected: FAIL
[A thead and a tbody child node]
expected: FAIL
[A tfoot and a tbody child node]
expected: FAIL
[A tbody and a thead child node]
expected: FAIL
[A tbody and a tfoot child node]
expected: FAIL
[Two tbody child nodes and a div]
expected: FAIL
[One HTML and one namespaced tbody child node]
expected: FAIL
[Two nested tbody child nodes]
expected: FAIL
[A tbody node inside a thead child node]
expected: FAIL
[A tbody node inside a tfoot child node]
expected: FAIL
[A tbody node inside a thead child node after a tbody child node]
expected: FAIL
[A tbody node inside a tfoot child node after a tbody child node]
expected: FAIL

View file

@ -162,4 +162,12 @@ test(function() {
assert_array_equals(table.childNodes, [before, tbody, after1]);
assert_tbody(tbody);
}, "A tbody node inside a tfoot child node after a tbody child node");
test(function() {
var table = document.createElementNS(htmlNS, "foo:table");
var tbody = table.createTBody();
assert_equals(tbody.prefix, null);
}, "A prefixed table creates tbody without prefix");
</script>