| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <isindex id=isindex1> | 7 <isindex id=isindex1> |
| 8 <script> | 8 <script> |
| 9 var isindex = document.getElementById('isindex1'); | 9 var isindex = document.getElementById('isindex1'); |
| 10 debug('Initial name:'); | 10 debug('Initial name:'); |
| 11 shouldBeEqualToString('isindex.name', 'isindex'); | 11 shouldBeEqualToString('isindex.name', 'isindex'); |
| 12 | 12 |
| 13 debug('Adding a name attribute:'); | 13 debug('Adding a name attribute:'); |
| 14 shouldBeEqualToString('isindex.setAttribute("name", "foo"); isindex.name', 'foo'
); | 14 shouldBeEqualToString('isindex.setAttribute("name", "foo"); isindex.name', 'foo'
); |
| 15 | 15 |
| 16 debug('Removing the name attribute:'); | 16 debug('Removing the name attribute:'); |
| 17 // This behavior is compatible with IE, Firefox, and Opera. | 17 // This behavior is compatible with IE, Firefox, and Opera. |
| 18 shouldBeEqualToString('isindex.removeAttribute("name"); isindex.name', ''); | 18 shouldBeEqualToString('isindex.removeAttribute("name"); isindex.name', ''); |
| 19 </script> | 19 </script> |
| 20 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 21 </body> | 20 </body> |
| 22 </html> | 21 </html> |
| OLD | NEW |