Reviewed by Darin.
[WebKit-https.git] / LayoutTests / fast / dom / Element / setAttribute-case-insensitivity.html
1 <html>
2 <body>
3     <p>Text for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=10147">bug 10147</a>:
4     REGRESSION: custom attribute values set via javascript are not persistent.</p>
5
6     <table id="table1" border="0">
7         <tr id="mg" customAttr="old Value">
8         </tr>
9     </table>
10
11     <script language="javascript">
12         if (window.layoutTestController)
13             layoutTestController.dumpAsText();
14
15         try {
16             document.getElementById("mg").setAttribute("customAttr", "new value");
17     
18             if ("new value" == document.getElementById("mg").getAttribute("customAttr"))
19                 document.write("SUCCESS");
20             else
21                 document.write("FAILURE");
22
23         } catch (ex) {
24             document.write(ex);
25         }
26
27     </script>
28 </body>
29 </html>