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.
Created on 2012年05月12日 08:10 by liuyug, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg160463 - (view) | Author: Yugang LIU (liuyug) | Date: 2012年05月12日 08:10 | |
Hi, I parse html source with htmlparser. I catch a tag, br, issue. my code : <div> aaaa<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. |
|||
| msg160481 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2012年05月12日 16:51 | |
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 |
|||
| msg160592 - (view) | Author: Yugang LIU (liuyug) | Date: 2012年05月14日 03:29 | |
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.melotti@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 <report@bugs.python.org> > <http://bugs.python.org/issue14786> > _______________________________________ > |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:30 | admin | set | github: 58991 |
| 2012年05月14日 04:11:12 | ezio.melotti | set | status: open -> closed type: behavior stage: resolved |
| 2012年05月14日 03:29:34 | liuyug | set | messages: + msg160592 |
| 2012年05月12日 16:51:14 | ezio.melotti | set | nosy:
+ ezio.melotti messages: + msg160481 assignee: ezio.melotti components: + Library (Lib), - None resolution: not a bug |
| 2012年05月12日 08:10:07 | liuyug | create | |