blob: 749a03a3ccacd0cb4216520356c9ac5ea977347a [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.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="../../resources/js-test.js"></script>
</body>
</html>