.eq() and tfoot
|Reported by:||simshaun||Owned by:|
In a valid HTML structure, the <tfoot> tag must come before any <tbody> tags within a table. When rendered on screen, the <tfoot> is always placed at the bottom of the table.
The problem arises when there is an element within both the <tfoot> and <tbody> tags. eq(0) is expected to return the element within tbody, since its displayed first on the screen, but instead returns the element within tfoot, since it comes first in the HTML.
I guess this would also affect :first as well.
Also, I can't just disregard any elements within tfoot, because it may be possible that I need to select one within it. Its just when there is a tfoot and tbody, the element in a tbody tag needs to be returned before the element in tfoot.