blob: 347b8adc7a7187944cf3d854fc458cdfa9433942 [file] [log] [blame]
<html>
<body>
<p>Text for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=10147">bug 10147</a>:
REGRESSION: custom attribute values set via javascript are not persistent.</p>
<table id="table1" border="0">
<tr id="mg" customAttr="old Value">
</tr>
</table>
<script language="javascript">
if (window.layoutTestController)
layoutTestController.dumpAsText();
try {
document.getElementById("mg").setAttribute("customAttr", "new value");
if ("new value" == document.getElementById("mg").getAttribute("customAttr"))
document.write("SUCCESS");
else
document.write("FAILURE");
} catch (ex) {
document.write(ex);
}
</script>
</body>
</html>