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.

classification
Title: Incorrect Example in HTMLParser.handle_comment(data)
Type: behavior Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, python-dev, r.david.murray, vineetkumardoshi
Priority: normal Keywords:

Created on 2015-08-24 16:42 by vineetkumardoshi, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg249063 - (view) Author: Vineet Kumar Doshi (vineetkumardoshi) Date: 2015-08-24 16:42
Hi,

link : https://docs.python.org/2/library/htmlparser.html#HTMLParser.HTMLParser.handle_comment

Incorrect Line : 

The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for <!--[if IE 9]>IE9-specific content<![endif]-->, this method will receive '[if IE 9]>IE-specific content<![endif]'.

Corrected Line :
The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for <!--[if IE 9]>IE9-specific content<![endif]-->, this method will receive '[if IE 9]>IE9-specific content<![endif]'.

Please correct this mistake in the docs.

Let me know, if it helps.

Thanks

Best Regards
msg249064 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-08-24 16:51
New changeset ff53dbcdc85f by R David Murray in branch '2.7':
#24926: Fix typo in example.
https://hg.python.org/cpython/rev/ff53dbcdc85f
msg249065 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-08-24 16:52
Thanks for the report.
msg249066 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-08-24 16:56
New changeset 6eb5e59886e1 by R David Murray in branch '3.4':
#24926: Fix typo in example.
https://hg.python.org/cpython/rev/6eb5e59886e1

New changeset ae9a9f201870 by R David Murray in branch '3.5':
Merge: #24926: Fix typo in example.
https://hg.python.org/cpython/rev/ae9a9f201870

New changeset ccde4da4d0de by R David Murray in branch 'default':
Merge: #24926: Fix typo in example.
https://hg.python.org/cpython/rev/ccde4da4d0de
History
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69114
2015-08-24 16:56:57python-devsetmessages: + msg249066
2015-08-24 16:52:38r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg249065

resolution: fixed
stage: resolved
2015-08-24 16:51:41python-devsetnosy: + python-dev
messages: + msg249064
2015-08-24 16:42:46vineetkumardoshicreate