htmlobject: handle containers with non-cursor-able children
commitb0a0f955ec384d0b7a6d3cc79aaef6d20b2d9c7a
authorFederico Mena Quintero <federico@gnome.org>
Thu, 15 Sep 2016 22:40:50 +0000 (15 17:40 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Thu, 15 Sep 2016 23:13:05 +0000 (15 18:13 -0500)
tree274d74c7d8105eb49a2dc500b58e46d405fb3ad0
parent7fa894650fee4c4c54eca4fbc8b79ff51f277b4d
htmlobject: handle containers with non-cursor-able children

If the cursor is right at the beginning of a table like

    <table>
      <tr>
<td>
  <a name="">
  </a>
</td>
<td>
  foo
</td>
      </tr>
    </table>
    bar

then move_object_cursor() would find the first TableCell (the first
<td>), and its Anchor.  The anchor contains nothing, so it can't take
the cursor.

However, move_object_cursor() would jump to the step where it does,
"find me the next object within the current object's parent", but for
the entire Table, not for the TableCell.  Thus it would miss the second
<td> that actually contains a "foo" string, and it would skip past the
Table to its next cursor-able sibling, the "bar" string.
gtkhtml/htmlobject.c