blob: 7c6de5693c7b61de18205ef7e6a6a1ec8a6138bd [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script>
description('This tests the DOM 4 remove method on a DocumentType node.');
var doctype = document.doctype;
shouldBe('document.childNodes.length', '2');
doctype.remove();
shouldBe('document.childNodes.length', '1');
doctype.remove();
shouldBe('document.childNodes.length', '1');
</script>