Reported by jteh on 2008-03-18 23:15
It is possible to have a link with no content, like so:
This is pretty silly, but it is nevertheless possible and you can actually tab to such a link.
Unfortunately, the gecko_ia2 backend does not render these empty link objects into the text at all; i.e. they have a length of 0 characters. This causes two problems:
Attachment empty_links.html added by jteh on 2008-03-18 23:15
Comment 1 by jteh on 2008-03-18 23:19
Milestone changed from None to 0.6
Comment 2 by jteh on 2008-03-19 12:59
Actually, the fix was a lot simpler than initially thought. The reason that empty links are not rendered into the buffer is that they are invisible and invisible nodes are not rendered into the buffer. They are still represented as nodes, but they have no text; they have 0 length. Thus, the correct fix is to ignore invisible nodes when searching for nodes, as implemented in r1846. Some bounds checking should perhaps be added to the storage library to prevent crashes, but this is a different issue.