OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <iframe></iframe> |
| 8 <div id="test" style="background-color: red"></div> |
| 9 <script> |
| 10 description("Updating value of replaced attribute node"); |
| 11 var element = document.getElementById("test"); |
| 12 var attr = document.createAttribute("STYLE"); |
| 13 shouldBeEqualToString("element.setAttributeNode(attr).value", "background-color:
red"); |
| 14 // Setting the value must correctly locate attribute on the element and update i
t, |
| 15 // even if the local name differs. PASS if no crash (crbug.com/376718) |
| 16 shouldBeEqualToString("attr.value = 'background-color: green'; attr.value", "bac
kground-color: green"); |
| 17 shouldBeEqualToString("element.getAttribute('style')", "background-color: green"
); |
| 18 </script> |
| 19 </body> |
| 20 </html> |
OLD | NEW |