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">
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';
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"> </div>
28 <div id=
"result"></div>