]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-135661: Fix parsing unterminated bogus comments in HTMLParser (GH-137873...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 17 Aug 2025 10:59:24 +0000 (12:59 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Aug 2025 10:59:24 +0000 (10:59 +0000)
commitf2b7954ce0b07cceebea30d7a89d8a97d206d745
tree77ee8cb0f31d47fef7f94f53324e562d7e7f4436
parent133f7bd22bfe3c928c2504617660cd8e8a8198f7
[3.13] gh-135661: Fix parsing unterminated bogus comments in HTMLParser (GH-137873) (GH-137875)

Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
(cherry picked from commit 7636a66635a0da849cfccd06a52d0a21fb692271)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/html/parser.py
Lib/test/test_htmlparser.py