Jumping to anchors in table cells

Interesting IE observation:
You can’t jump to anchors in otherwise empty table cells.

This works:

  1. <tr>
  2.     <td>&nbsp;<a name="myanchor"></a></td>
  3. </tr>

This doesn’t:

  1. <tr>
  2.     <td><a name="myanchor"></a></td>
  3. </tr>

I know I’m doing terrible things to my markup to even want to put an anchor in an empty table cell.. :)

Other people seem to have the same problem.

Posted on 26 Oct 04 by Helen Emerson (last updated on 26 Oct 04).
Filed under Browser quirks