Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Element / setAttributeNode-case-insensitivity-xhtml.xhtml
blobf01330c5a01bc0b20944c539cbdb04bd05f0accf
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()
8 if (window.testRunner) {
9 window.testRunner.dumpAsText();
11 var test = document.getElementById("test");
12 var newStyleAttr = document.createAttribute("STYLE");
13 newStyleAttr.value = "background-color: green";
14 test.setAttributeNode(newStyleAttr);
16 document.getElementById('result').innerHTML = "style attribute value = "+test.getAttributeNode('style').value+" and STYLE attribute value = "+test.getAttributeNode('STYLE').value;
18 test.style.display = 'none';
21 </script>
22 </head>
23 <body onload="runTest()">
24 <div>Test for Bugzilla bug:<a href="https://bugs.webkit.org/show_bug.cgi?id=90341"> 90341:</a> createAttribute/setAttributeNode does not properly normalize case.</div>
25 <div>This test verifies that the setAttributeNode() API allows for creation of attributes case-sensitively for XHTML documents. Thus two different attributes with the same name but in different case can exist for XHTML documents.</div>
26 <div id="test" style="background-color: red">&nbsp;</div>
27 <br/>
28 <div id="result"></div>
29 </body>
30 </html>