OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"
> |
| 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 <head> |
| 5 <script> |
| 6 function runTest() |
| 7 { |
| 8 if (window.testRunner) { |
| 9 window.testRunner.dumpAsText(); |
| 10 |
| 11 var test = document.getElementById("test"); |
| 12 var newStyleAttr = document.createAttribute("STYLE"); |
| 13 newStyleAttr.value = "background-color: green"; |
| 14 test.setAttributeNode(newStyleAttr); |
| 15 |
| 16 document.getElementById('result').innerHTML = "style attribute value = "
+test.getAttributeNode('style').value+" and STYLE attribute value = "+test.getAt
tributeNode('STYLE').value; |
| 17 |
| 18 test.style.display = 'none'; |
| 19 } |
| 20 } |
| 21 </script> |
| 22 </head> |
| 23 <body onload="runTest()"> |
| 24 <div>Test for Bugzilla bug:<a href="https://bugs.webkit.org/show_bug.cgi?id=9034
1"> 90341:</a> createAttribute/setAttributeNode does not properly normalize cas
e.</div> |
| 25 <div>This test verifies that the setAttributeNode() API allows for creation of a
ttributes case-sensitively for XHTML documents. Thus two different attributes wi
th the same name but in different case can exist for XHTML documents.</div> |
| 26 <div id="test" style="background-color: red"> </div> |
| 27 <br/> |
| 28 <div id="result"></div> |
| 29 </body> |
| 30 </html> |
OLD | NEW |