Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-xhtml.xhtml

Issue 22803008: setAttributeNode() does not properly normalize case. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: submitting patch with small name changes. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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">&nbsp;</div>
27 <br/>
28 <div id="result"></div>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698