Handle dragging over cells with HTML inside.

Before, event.target was assumed to be the TD/TH itself. While
if there's HTML inside a cell (i.e. when using templates), it
could be a child element that's the event.target. Thus, one
should walk up the hierarchy until the TD/TH is found.