Possible bug in sgmllib?
Fredrik Lundh
effbot at telia.com
Thu Oct 5 16:18:51 EDT 2000
the other Fredrik wrote:
> The start_<tag> and do_<tag> methods does't get called with the correct name
> when tag contains a underscore, however the end_<tag> method works as
> expected.
note that the bug is really on the end tag side; sgmllib checks
that start tags are valid, but accepts almost anything in the end
tag:
>>> Parser().feed("<foo_bar>data</foo/&%&#bar>")
start_foo
do_foo
end_foo/&%&#bar
(also see robert's post)
</F>
More information about the Python-list
mailing list