blob: 6afc809eb8788a63f7d0997b4bff2abf931b8790 [file] [log] [blame]
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("This tests XMLSerializer.serializeToString() on a newly created DocumentType node does not throw since the node has an associated document.");
var docType = window.document.implementation.createDocumentType("aDocTypeName", "aPublicID", "aSystemID");
var serializer = new XMLSerializer();
var text;
shouldNotThrow("text = serializer.serializeToString(docType)");
shouldBeEqualToString("text", "<!DOCTYPE aDocTypeName PUBLIC \"aPublicID\" \"aSystemID\">");
</script>
<script src="../js/resources/js-test-pre.js"></script>
</body>
</html>