[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Re: Lynx interprets <a/> as </a>?

From: David Woolley
Subject: Re: lynx-dev Re: Lynx interprets <a/> as </a>?
Date: Sat, 11 Dec 1999 09:53:06 +0000 (GMT)

> they had put some comment:
> <!-- some comment --!>
> and Lynx did _not_ assume the tag to be closed (it
> still doesn't, AFAICT). The end result was that email

This *is* a bug in Lynx if it occurs in the strict SGML parsing mode for
comments.  HTML comments are really null SGML declarations containing
comments, so, taking the comment out of the above gives:


which, although rubbish, appears to be clearly terminated.

Lynx has various alternative comment parsing modes because of the abuse
of this syntax in the past, and in some of these it might insist on
having -->.

XML uses the HTML style comment but formalises it as part of the language,
so the behaviour on a broken comment like this may be less well defined.

The most common error with comments these days is unbalanced --s, e.g.
<!--------------> has three closed comments and one unterminated one.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]