diff --git a/dom/imptests/failures/html/html/dom/documents/dta/test_document.body-getter.html.json b/dom/imptests/failures/html/html/dom/documents/dta/test_document.body-getter.html.json index 391cfc34469b..ff4bfae0436b 100644 --- a/dom/imptests/failures/html/html/dom/documents/dta/test_document.body-getter.html.json +++ b/dom/imptests/failures/html/html/dom/documents/dta/test_document.body-getter.html.json @@ -1,6 +1,7 @@ { "Frameset followed by body inside the html element": true, "Body followed by frameset inside a non-HTML html element": true, + "Frameset followed by body inside a non-HTML html element": true, "Frameset inside an x element followed by a frameset": true, "Frameset as the root node": true, "Body as the root node with a frameset child": true, diff --git a/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/Makefile.in b/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/Makefile.in index 4ea8cb30c748..8782fdb0fbd2 100644 --- a/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/Makefile.in +++ b/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/Makefile.in @@ -10,6 +10,7 @@ relativesrcdir := @relativesrcdir@ include $(DEPTH)/config/autoconf.mk MOCHITEST_FILES := \ + test_createTBody.html.json \ test_table-insertRow.html.json \ test_table-rows.html.json \ $(NULL) diff --git a/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/test_createTBody.html.json b/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/test_createTBody.html.json new file mode 100644 index 000000000000..9460313273b1 --- /dev/null +++ b/dom/imptests/failures/html/html/semantics/tabular-data/the-table-element/test_createTBody.html.json @@ -0,0 +1,16 @@ +{ + "No child nodes": true, + "One tbody child node": true, + "Two tbody child nodes": true, + "A thead and a tbody child node": true, + "A tfoot and a tbody child node": true, + "A tbody and a thead child node": true, + "A tbody and a tfoot child node": true, + "Two tbody child nodes and a div": true, + "One HTML and one namespaced tbody child node": true, + "Two nested tbody child nodes": true, + "A tbody node inside a thead child node": true, + "A tbody node inside a tfoot child node": true, + "A tbody node inside a thead child node after a tbody child node": true, + "A tbody node inside a tfoot child node after a tbody child node": true +} diff --git a/dom/imptests/html/html/dom/documents/dta/test_document.body-getter.html b/dom/imptests/html/html/dom/documents/dta/test_document.body-getter.html index abdb4e37b664..3970065a0085 100644 --- a/dom/imptests/html/html/dom/documents/dta/test_document.body-getter.html +++ b/dom/imptests/html/html/dom/documents/dta/test_document.body-getter.html @@ -42,19 +42,17 @@ test(function() { var doc = createDocument(); var html = doc.appendChild(doc.createElementNS("http://example.org/test", "html")); - var b = - html.appendChild(doc.createElement("body")); + html.appendChild(doc.createElement("body")); html.appendChild(doc.createElement("frameset")); - assert_equals(doc.body, b); + assert_equals(doc.body, null); }, "Body followed by frameset inside a non-HTML html element"); test(function() { var doc = createDocument(); var html = doc.appendChild(doc.createElementNS("http://example.org/test", "html")); - var f = - html.appendChild(doc.createElement("frameset")); + html.appendChild(doc.createElement("frameset")); html.appendChild(doc.createElement("body")); - assert_equals(doc.body, f); + assert_equals(doc.body, null); }, "Frameset followed by body inside a non-HTML html element"); test(function() { var doc = createDocument(); diff --git a/dom/imptests/html/html/semantics/tabular-data/the-table-element/Makefile.in b/dom/imptests/html/html/semantics/tabular-data/the-table-element/Makefile.in index efa73705e983..e0f7def25bb8 100644 --- a/dom/imptests/html/html/semantics/tabular-data/the-table-element/Makefile.in +++ b/dom/imptests/html/html/semantics/tabular-data/the-table-element/Makefile.in @@ -10,6 +10,7 @@ relativesrcdir := @relativesrcdir@ include $(DEPTH)/config/autoconf.mk MOCHITEST_FILES := \ + test_createTBody.html \ test_insertRow-method-01.html \ test_insertRow-method-02.html \ test_table-insertRow.html \ diff --git a/dom/imptests/html/html/semantics/tabular-data/the-table-element/test_createTBody.html b/dom/imptests/html/html/semantics/tabular-data/the-table-element/test_createTBody.html new file mode 100644 index 000000000000..7927e43cae6f --- /dev/null +++ b/dom/imptests/html/html/semantics/tabular-data/the-table-element/test_createTBody.html @@ -0,0 +1,165 @@ + + +