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.

Author ezio.melotti
Recipients Jim.Jewett, Michel.Leunen, ezio.melotti, georg.brandl, r.david.murray, serhiy.storchaka
Date 2012-04-12.23:26:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334273197.95.0.798547085793.issue14538@psf.upfronthosting.co.za>
In-reply-to
Content
Attached a new patch with a few more tests and a simplification of the attrfind regex.


> But it allows the passage of an invalid code in strict mode.

HTMLParser is following the HTML5 specs, and doesn't do validation, so there's no strict mode (and the strict mode of Python 3 will be removed/deprecated soon).

> I think, this problem can be solved by a more direct way,
> perhaps even simplifying the original code.

This might be true, but I'm quite happy with this patch for now.  Maybe one day I'll rewrite it.


> Unless there is a specification somewhere (or at least an editor's
> draft), I can't really see any particular parse as a bugfix.

If HTMLParser doesn't parse as the HTML5 specs say, then it's considered a bug.
History
Date User Action Args
2012-04-12 23:26:37ezio.melottisetrecipients: + ezio.melotti, georg.brandl, r.david.murray, Jim.Jewett, serhiy.storchaka, Michel.Leunen
2012-04-12 23:26:37ezio.melottisetmessageid: <1334273197.95.0.798547085793.issue14538@psf.upfronthosting.co.za>
2012-04-12 23:26:37ezio.melottilinkissue14538 messages
2012-04-12 23:26:37ezio.melotticreate