16 lines
433 B
HTML
16 lines
433 B
HTML
<!DOCTYPE html>
|
|
<script src="../../../resources/js-test-pre.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>
|
|
<script src="../../../resources/js-test-post.js"></script>
|