OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div></div> | 7 <div></div> |
8 <script> | 8 <script> |
9 var div = document.querySelector("div"); | 9 var div = document.querySelector("div"); |
10 document.body.appendChild(div); | 10 document.body.appendChild(div); |
11 var shadowRoot = div.createShadowRoot(); | 11 var shadowRoot = div.createShadowRoot(); |
12 | 12 |
13 //Window named properties | 13 //Window named properties |
14 var namedElements = ['a', 'applet', 'area', 'embed', 'form', 'frame', | 14 var namedElements = ['a', 'applet', 'area', 'embed', 'form', 'frame', |
(...skipping 17 matching lines...) Expand all Loading... |
32 shouldBeFalse("element.name in document"); | 32 shouldBeFalse("element.name in document"); |
33 shouldBeFalse("element.name in window"); | 33 shouldBeFalse("element.name in window"); |
34 element.name = 're-renamed_' + tagName; | 34 element.name = 're-renamed_' + tagName; |
35 debug("<" + tagName + ">: After changing its name attribute into " + e
lement.name + " by using '.name=', the name should not still be in document."); | 35 debug("<" + tagName + ">: After changing its name attribute into " + e
lement.name + " by using '.name=', the name should not still be in document."); |
36 shouldBeFalse("element.name in document"); | 36 shouldBeFalse("element.name in document"); |
37 shouldBeFalse("element.name in window"); | 37 shouldBeFalse("element.name in window"); |
38 }); | 38 }); |
39 </script> | 39 </script> |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |