| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description("This test checks the form attribute of the legend element."); | 8 description("This test checks the form attribute of the legend element."); |
| 9 | 9 |
| 10 var container = document.createElement('div'); | 10 var container = document.createElement('div'); |
| 11 document.body.appendChild(container); | 11 document.body.appendChild(container); |
| 12 | 12 |
| 13 debug(''); | 13 debug(''); |
| 14 debug('- Ensures that the form attribute of legend element depends on whether it
s parent is a fieldset element or not.'); | 14 debug('- Ensures that the form attribute of legend element depends on whether it
s parent is a fieldset element or not.'); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 legendElement = document.getElementById('legendElement'); | 51 legendElement = document.getElementById('legendElement'); |
| 52 shouldBe('fieldsetElement.form', 'form1'); | 52 shouldBe('fieldsetElement.form', 'form1'); |
| 53 shouldBe('legendElement.form', 'form1'); | 53 shouldBe('legendElement.form', 'form1'); |
| 54 fieldsetElement.attributes['form'].value = 'form2'; | 54 fieldsetElement.attributes['form'].value = 'form2'; |
| 55 shouldBe('fieldsetElement.form', 'form2'); | 55 shouldBe('fieldsetElement.form', 'form2'); |
| 56 shouldBe('legendElement.form', 'form2'); | 56 shouldBe('legendElement.form', 'form2'); |
| 57 | 57 |
| 58 </script> | 58 </script> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |