blob: 5ac7eab932116b6807934ffe234ebdb7c1b43dd9 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Removing all children of a form should disassociate any form controls in that subtree");
var form = document.createElement('form');
var input = document.createElement('input');
form.appendChild(input);
form.innerHTML = '';
shouldBeNull("input.form");
shouldBe("form.elements.length", "0");
</script>
<script src="../../resources/js-test-post.js"></script>