On 12/12/16 16:24, Samuel Thibault wrote:
<html>
<a href="http://www.debian.org/";><div class="foo">Debian</div></a>
</html>

This wasn't HTML. I'm not sure whether it is now HTML3, and, if not, I'd need to carefully read the spec to find out the correct error recovery.

It really should be:

<a class="foo" href=..>Debian</a>

however, if you want another element, div should be span, as links are inline, but div is block.

My guess is that lynx does error recovery based on seeing a block element where inline is expected, and closes the, inline, a at that point. However, one of the features of HTML3 is that the error recovery is defined by the specification, so this will have a defined behaviour, even if it is invalid. I doubt that Lynx is HTML3 compliant in this regard.

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to