I was playing around with some ideas using raw html and JQuery. One thing I did was to create an table element with a set of rows.
<table id="MyTable" >
<tr>
<td>Title</td>
</tr>
<tr>
<td>1</td>
</tr>
<tr>
<td>2</td>
</tr>
<tr>
<td>3</td>
</tr>
<tr>
<td>4</td>
</tr>
</table>
But when I viewed the code in FireFox+Firebug, IE8 Developer Toolbar, or the Google Chrome JavaScript Debugger...all of them showed there to be a tbody element surrounding all of the tr nodes.
I'm not against this happening...but is this standard behavior?
table > tr > td
. You have to either use a descendant selector:table tr > td
, or if you really want to be strict, cater to both cases:table > tr > td, table > tbody > tr > td
– Shredding