SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
fa7e76e4ddbe92da1f1d98a24cc15d8306ef4e2e
Parent: 2449f77
Committed by GitHub <noreply@github.com> on 7/4/2025, 7:26:03 AM