3 table { display: none; }
5 <script src=
"../../resources/js-test.js"></script>
17 description('Form controls associated with a form by the parser should be reset when that form leaves their tree.');
19 debug('Removing a form from the document while leaving its associated element in...');
20 document
.forms
[0].parentNode
.removeChild(document
.forms
[0]);
21 shouldBeNull('document.querySelector("input").form');
24 debug('Removing a form and its associated element...');
25 var table2
= document
.getElementById('table2');
26 table2
.parentNode
.removeChild(table2
);
27 shouldBeNonNull('table2.querySelector("input").form');
28 debug('...and then removing the form.');
29 table2
.removeChild(table2
.querySelector('form'));
30 shouldBeNull('table2.querySelector("input").form');