blob: c6620a312a84713ce6a70391d1bd567c348f9ec3 [file] [log] [blame]
<!DOCTYPE html>
<form>
<div>
<script>
var d = document.querySelector('div');
d.parentNode.removeChild(d);
</script>
<input>
</div>
</form>
<script src="../../resources/js-test-pre.js"></script>
<script>
description('FormAssociatedElements should not be associated with forms in different trees (and should not crash)');
var unused = document.forms[0].elements.length;
d = null;
gc();
shouldBeUndefined('document.forms[0].elements[0]');
</script>
<script src="../../resources/js-test-post.js"></script>