OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <form id=myform></form> | 2 <form id=myform></form> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script> | 4 <script> |
5 description('Inserting a form control with a form attribute into a non-document
tree should not cause it to get a form owner.'); | 5 description('Inserting a form control with a form attribute into a non-document
tree should not cause it to get a form owner.'); |
6 | 6 |
7 var input = document.createElement('input'); | 7 var input = document.createElement('input'); |
8 input.setAttribute('form', 'myform'); | 8 input.setAttribute('form', 'myform'); |
9 shouldBeNull('input.form'); | 9 shouldBeNull('input.form'); |
10 | 10 |
11 var div = document.createElement('div'); | 11 var div = document.createElement('div'); |
12 div.appendChild(input); | 12 div.appendChild(input); |
13 shouldBeNull('input.form'); | 13 shouldBeNull('input.form'); |
14 </script> | 14 </script> |
OLD | NEW |