xml:base evil test
@import "style";
Loading... (If nothing happens, the script failed to bootstrap.)
document.getElementById('results').firstChild.data = "Running... (If nothing further happens, a script error occured.)";
var a = document.getElementsByTagNameNS('', 'a')[0];
var b = document.getElementsByTagNameNS('', 'b')[0];
while (b.childNodes.length < a.childNodes.length) {
var newNode = a.childNodes[b.childNodes.length].cloneNode(true);
if (newNode.nodeType == Node.ELEMENT_NODE &&
newNode.localName == 'script' &&
newNode.namespaceURI == 'http://www.w3.org/1999/xhtml') {
newNode.addEventListener("load", function (e) {
if (document.test instanceof Function) {
document.test(document.getElementById('results'));
} else {
document.getElementById('results').firstChild.data = "FAIL";
}
}, false);
}
b.appendChild(newNode);
}