[issue14786] htmlparser with tag br
Yugang LIU liu...@yahoo.cn added the comment: By HTML standard, it is not a bug. I will verify my code. Thanks for your reply. On 2012-05-13 0:51, Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: The HTML you pasted looks valid to me -- the br element doesn't have an end tag and the HTML 4.01 standard explicitly says Start tag: required, End tag: forbidden [0]. Why do you think this is a problem? [0]: http://www.w3.org/TR/html401/struct/text.html#edef-BR -- assignee: - ezio.melotti components: +Library (Lib) -None nosy: +ezio.melotti resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14786 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14786] htmlparser with tag br
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14786] htmlparser with tag br
New submission from Yugang LIU liu...@yahoo.cn: Hi, I parse html source with htmlparser. I catch a tag, br, issue. my code : div br /div parse result: begin tag: div begin tag: br end tag: div So I can't find end tag of 'br'. I know it is invalid text, 'br', it set htmlparser parameter, strict, to 'False', it can't help me also. Please help fix it. Thanks. -- components: None messages: 160463 nosy: liuyug priority: normal severity: normal status: open title: htmlparser with tag br versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14786] htmlparser with tag br
Ezio Melotti ezio.melo...@gmail.com added the comment: The HTML you pasted looks valid to me -- the br element doesn't have an end tag and the HTML 4.01 standard explicitly says Start tag: required, End tag: forbidden [0]. Why do you think this is a problem? [0]: http://www.w3.org/TR/html401/struct/text.html#edef-BR -- assignee: - ezio.melotti components: +Library (Lib) -None nosy: +ezio.melotti resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com