blob: 072e4f9712493e4e788ebf1ebd2feddb6eba466b [file] [log] [blame]
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
log = function(msg)
{
document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
}
onload = function()
{
if (document.doctype)
log("PASS: a doctype in a XML document is not ignored.");
else
log("FAIL: a doctype in a XML document is ignored.");
if (document.firstChild == document.doctype)
log("PASS: a doctype in an XML document is correctly set to the first child of the Document.");
else
log("FAIL: a doctype in an XML document is not correctly set to the first child of the Document.");
}
</script>
</head>
<body>
This tests the behavior of a Doctype in an XML document.
<pre id="console"></pre>
</body>
</html>