mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Fix the way mochitest finds the body. Bug 398347, r=sayrer
This commit is contained in:
parent
7b7b0144c8
commit
154f7cbe38
@ -164,7 +164,12 @@ SimpleTest.showReport = function() {
|
||||
var toggleFailed = A({'href': '#'}, "Toggle failed tests");
|
||||
togglePassed.onclick = partial(SimpleTest.toggleByClass, 'test_ok');
|
||||
toggleFailed.onclick = partial(SimpleTest.toggleByClass, 'test_not_ok');
|
||||
var body = document.getElementsByTagName("body")[0];
|
||||
var body = document.body; // Handles HTML documents
|
||||
if (!body) {
|
||||
// Do the XML thing
|
||||
body = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml",
|
||||
"body")[0]
|
||||
}
|
||||
var firstChild = body.childNodes[0];
|
||||
var addNode;
|
||||
if (firstChild) {
|
||||
|
Loading…
Reference in New Issue
Block a user