mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
* "--!>" now ends the comment.
* "-- >" no longer ends the comment.
* Support abnormally ended empty comments "<-->" and "<--->".
---------
(cherry picked from commit 8ac7613dc8)
Co-author: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
3 lines
220 B
ReStructuredText
3 lines
220 B
ReStructuredText
Fix comment parsing in :class:`html.parser.HTMLParser` according to the
|
|
HTML5 standard. ``--!>`` now ends the comment. ``-- >`` no longer ends the
|
|
comment. Support abnormally ended empty comments ``<-->`` and ``<--->``.
|