Message152806
html.parser fails to handle the following invalid comments:
<! foo >
<! bar -->
<! -- baz -->
The attached patch follows the HTML5 specs [0], and parses them as "bogus comments". Currently the patch fixes the problem only when strict=False, but it might be better to make this the default behavior and apply it to 2.7 too.
[0]: http://www.w3.org/TR/html5/tokenization.html#bogus-comment-state |
|
Date |
User |
Action |
Args |
2012-02-07 11:56:36 | ezio.melotti | set | recipients:
+ ezio.melotti, eric.araujo |
2012-02-07 11:56:36 | ezio.melotti | set | messageid: <1328615796.36.0.0693404155355.issue13960@psf.upfronthosting.co.za> |
2012-02-07 11:56:35 | ezio.melotti | link | issue13960 messages |
2012-02-07 11:56:35 | ezio.melotti | create | |
|