I am attempting to update the TR className using JavaScript. However, for some reason it does not appear to be working properly (please note that it must also work in IE8).
<html>
<head>
<style>
tr.test {background-color:#000000;margin:0;border:0;padding:0;}
</style>
<script>
_table = document.getElementsByTagName("table")[0];
_tbody = _table.getElementsByTagName("tbody")[0];
_tr = _tbody.getElementsByTagName("tr")[0];
_tr.className="test";
</script>
</head>
<table>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</html>