This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 ezio.melotti
收信人 Neil Muller, eric.araujo, ezio.melotti, fdrake, jjlee, kxroberto, orsenthil, r.david.murray, terry.reedy
日期 2011-11-16.10:50:06
SpamBayes Score 3.524019e-09
Marked as misclassified
Message-id <1321440606.95.0.494074313189.issue1486713@psf.upfronthosting.co.za>
In-reply-to
内容
Note that the regex and the way the parser considers the commas changed in 16ed15ff0d7c (it now considers them as the name of a value-less attribute), so adding a group for the comma is no longer doable.

In theory, the approach you suggest might work, but if we want some warning mechanism it should be generic enough to work with all kind of invalid markup.  In addition this adds complexity to already complex regular expressions, so there should be a valid use case for this.
Also keep in mind that HTMLParser won't do any check about the validity of the elements' names or attributes' names/values, or even if they are nested/closed correctly, so even with a comprehensive set of warnings, you won't still be able to use HTMLParser to validate your pages.
历史
日期 用户 动作 参数
2011-11-16 10:50:07ezio.melotti修改recipients: + ezio.melotti, fdrake, terry.reedy, jjlee, orsenthil, kxroberto, Neil Muller, eric.araujo, r.david.murray
2011-11-16 10:50:06ezio.melotti修改messageid: <1321440606.95.0.494074313189.issue1486713@psf.upfronthosting.co.za>
2011-11-16 10:50:06ezio.melotti链接issue1486713 messages
2011-11-16 10:50:06ezio.melotti创建