blob: 5c7fe7f4bc628abc56f869f72fe0b45a04c7d56b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>Weee!</title>
<script>
window.onload = function() {
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
var meths = [
document.lookupNamespaceURI,
document.isDefaultNamespace,
function(node) { this.body = node },
document.lookupPrefix
];
var node = document.createElement('b');
// Empty the document
while (document.firstChild)
document.removeChild(document.firstChild);
for (var i = 0, il = meths.length; i < il; ++i) {
try {
// Some expect nodes, some expect strings, but our nodes will get
// toString'd so we should be ok on both.
meths[i].call(document, node, node, node);
} catch(e) { }
}
document.open();
document.write('PASS');
document.close();
};
</script>
</head>
<body>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=19470">bug 19470</a>:
Null pointer dereferences on a document with no documentElement.</p>
<p>On success, should print PASS.</p>
</body>
</html>