The code below results in an exception (Python 2.4.2):
HTMLParser.HTML ParseError: bad end tag: "</foo' + 'bar>", at line 4,
column 6
Should it? The end tag it chokes on is in comment, isn't it?
import HTMLParser
HTMLParser.HTML Parser().feed(" ""
<html><head><ti tle></title></head><body><scr ipt>
<!--
x = '</foo' + 'bar>'
// -->
</script></body></html>
""")
--
René Pijlman
HTMLParser.HTML ParseError: bad end tag: "</foo' + 'bar>", at line 4,
column 6
Should it? The end tag it chokes on is in comment, isn't it?
import HTMLParser
HTMLParser.HTML Parser().feed(" ""
<html><head><ti tle></title></head><body><scr ipt>
<!--
x = '</foo' + 'bar>'
// -->
</script></body></html>
""")
--
René Pijlman
Comment