blob: e15e7823b72e61f6cf87c2ddbea74711ccaf1adc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This page tests the DOM document.adoptNode method with DocumentType.</title>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<link rel="stylesheet" href="../../../resources/testharness.css">
</head>
<body>
<script>
test(function() {
var doctype = document.doctype;
assert_equals(doctype.parentNode, document)
assert_equals(doctype.ownerDocument, document)
assert_equals(document.adoptNode(doctype), doctype)
assert_equals(doctype.parentNode, null)
assert_equals(doctype.ownerDocument, document)
}, "Explicitly adopting a DocumentType should work.")
</script>
</body>
</html>