Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | |
| 5 function runTest() { | |
| 6 if (window.testRunner) | |
| 7 testRunner.dumpAsText(); | |
| 8 | |
| 9 var testElement = document.getElementById('test'); | |
| 10 var testElementBgColor = testElement.style.background; | |
| 11 | |
| 12 var newAttr = document.createAttribute("STYLE"); | |
| 13 newAttr.value = "background-color: green"; | |
| 14 testElement.setAttributeNode(newAttr); | |
| 15 var testElementBgColorAfterReset = testElement.style.background; | |
| 16 | |
| 17 document.getElementById('result').innerHTML = "background-color specified wi th lowercase style attribute was: "+testElementBgColor+" and specified with uppe rcase style attribute is: "+testElementBgColorAfterReset; | |
|
ojan
2013/08/28 01:14:18
Instead of doing this hand-rolled checking, can yo
| |
| 18 } | |
| 19 </script> | |
| 20 </head> | |
| 21 <body onload="runTest();"> | |
| 22 <div>Testcase for bug <a href="http://crbug.com/279193">279193</a>: setAttribute Node() does not set the new value to an existing attribute if specified attribut e is in a different case.\nThe issue can be manually verified by ascertaining th at a green colored block is displayed instead of a red one.</div> | |
| 23 <div id="test" style="background-color: red;"/> </div> | |
| 24 <div id="result"></div> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |