"<!" in SGMLParser - an error ?

David Eppstein eppstein at ics.uci.edu
Sun Nov 11 23:21:57 EST 2001


In article <j4pu6p796i.fsf at informatik.hu-berlin.de>,
 Martin von Loewis <loewis at informatik.hu-berlin.de> wrote:

> It *does* have a problem with "<! bla bla> ", since it does not allow
> a space character between the exclamation mark and the first character
> of the directive. I believe you must not have a space in there, in
> SGML, either, so this is not a problem with Python, but an error in
> the document.

He is parsing HTML.  Of course he is going to have errors in the documents.
-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list