blob: 226735998c15d1a3131dfafe5ae0ba9b3764ab28 [file] [log] [blame]
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
if (window.testRunner)
testRunner.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>