summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/input-disconnected-during-parse.html
blob: 20a3ef3d3a6529f08cc66f0eace3b19e08a76e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<form>
    <div>
        <script>
            var d = document.querySelector('div');
            d.parentNode.removeChild(d);
        </script>
        <input>
    </div>
</form>
<script src="../../resources/js-test.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>