]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Jul 2025 07:26:03 +0000 (09:26 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Jul 2025 07:26:03 +0000 (07:26 +0000)
commitfa7e76e4ddbe92da1f1d98a24cc15d8306ef4e2e
tree8abd7c6e63d30e1542bf82631f2f58b134769a70
parent2449f7773446b45cc3bae2cc502e8fedf896df8d
[3.14] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard (GH-135664) (GH-136271)

* "--!>" now ends the comment.
* "-- >" no longer ends the comment.
* Support abnormally ended empty comments "<-->" and "<--->".

---------
(cherry picked from commit 8ac7613dc8b8f82253d7c0e2b6ef6ed703a0a1ee)

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>
Lib/html/parser.py
Lib/test/test_htmlparser.py
Misc/NEWS.d/next/Security/2025-06-18-13-28-08.gh-issue-102555.nADrzJ.rst [new file with mode: 0644]