HTMLParser and Quotes
Richard West
rwest2 at opti.cgi.net
Thu Jan 2 00:37:37 EST 2003
This evening I found a case that crashes HTMLParser (lib 2.2.2) which
probably shouldn't. Check out the following code:
from HTMLParser import HTMLParser
test = """<html>
<body>
<font face=arial,helvetica>test</font>
</body>
</html>"""
x = HTMLParser()
x.feed(test)
The face should obviously have quotes around its value, but under the
circumstances I would think HTMLParser should take anything up until
the next space or end of the tag as its value.
-Richard
More information about the Python-list
mailing list