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 Chenyun Yang
Recipients Chenyun Yang, ezio.melotti, josh.r, martin.panter, xiang.zhang
Date 2015-09-29.21:35:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAJZGQB6CLfRQOHXJnF89AN=msW-MTN7n9+PAP8ZT=YQcm=GHZw@mail.gmail.com>
In-reply-to <1443558424.19.0.0653133053759.issue25258@psf.upfronthosting.co.za>
Content
I think the bug is mostly about inconsistent behavior: <img> and <img/>
shouldn't be parsed differently.

This causes problem in the case that the parser won't be able to know
consistently whether it has ended the visit of <img> tag.

I propose one fix which will be: in the `parse_internal' method call, check
for void elements and call `handle_startendtag'

On Tue, Sep 29, 2015 at 1:27 PM, Martin Panter <report@bugs.python.org>
wrote:

>
> Martin Panter added the comment:
>
> Also applies to Python 3, though I’m not sure I would consider it a bug.
>
> ----------
> nosy: +martin.panter
> versions: +Python 3.4, Python 3.5, Python 3.6
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue25258>
> _______________________________________
>
History
Date User Action Args
2015-09-29 21:35:43Chenyun Yangsetrecipients: + Chenyun Yang, ezio.melotti, martin.panter, josh.r, xiang.zhang
2015-09-29 21:35:43Chenyun Yanglinkissue25258 messages
2015-09-29 21:35:43Chenyun Yangcreate