| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   2 <style> |   2 <style> | 
|   3 table { display: none; } |   3 table { display: none; } | 
|   4 </style> |   4 </style> | 
|   5 <script src="../js/resources/js-test-pre.js"></script> |   5 <script src="../js/resources/js-test-pre.js"></script> | 
|   6 <table id="table1"> |   6 <table id="table1"> | 
|   7   <form> |   7   <form> | 
|   8     <td><input></td> |   8     <td><input></td> | 
|   9   </form> |   9   </form> | 
|  10 </table> |  10 </table> | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
|  22  |  22  | 
|  23 debug(''); |  23 debug(''); | 
|  24 debug('Removing a form and its associated element...'); |  24 debug('Removing a form and its associated element...'); | 
|  25 var table2 = document.getElementById('table2'); |  25 var table2 = document.getElementById('table2'); | 
|  26 table2.parentNode.removeChild(table2); |  26 table2.parentNode.removeChild(table2); | 
|  27 shouldBeNonNull('table2.querySelector("input").form'); |  27 shouldBeNonNull('table2.querySelector("input").form'); | 
|  28 debug('...and then removing the form.'); |  28 debug('...and then removing the form.'); | 
|  29 table2.removeChild(table2.querySelector('form')); |  29 table2.removeChild(table2.querySelector('form')); | 
|  30 shouldBeNull('table2.querySelector("input").form'); |  30 shouldBeNull('table2.querySelector("input").form'); | 
|  31 </script> |  31 </script> | 
|  32 <script src="../js/resources/js-test-post.js"></script> |  | 
| OLD | NEW |