Bill Moseley scribeva in 13/01/2007 17:10:
> Where this doesn't work so well is when I have text on a second line:
>> <td>
> <a href="stuff">x</a>
> <br />
> Some other text
> </td>
So if the <a> has a sibling node, then you don't want it display: block?
Change this:
> if ( link.length != 1 ) continue;
to:
if (link.length != 1 || link.nextSibling) continue;
.k