rem: var body = document.getElementsByTagName("body")[0]; 
add: var body = document.body; if (!body) {  body = document.getElementsByTagNameNS("http: "body")[0] } 
context: SimpleTest.showReport = function() {    var togglePassed = A({'href': '#'}, "Toggle passed tests");    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 firstChild = body.childNodes[0];    var addNode;    if (firstChild) {        addNode = function (el) {            body.insertBefore(el, firstChild);        };    } else {        addNode = function (el) {            body.appendChild(el)        };    }    addNode(togglePassed);    addNode(SPAN(null, " "));    addNode(toggleFailed);    addNode(SimpleTest.report());};
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/154f7cbe38e7869a5c08dc004ee161797531e62f/SimpleTest.js/clean/testing/mochitest/tests/SimpleTest/SimpleTest.js