]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135661: Fix parsing unterminated bogus comments in HTMLParser (GH-137873)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 Aug 2025 10:37:50 +0000 (13:37 +0300)
committerGitHub <noreply@github.com>
Sun, 17 Aug 2025 10:37:50 +0000 (13:37 +0300)
commit7636a66635a0da849cfccd06a52d0a21fb692271
treecdc5b732bb655d21aa7c4c8db23682dd1c7131f4
parenteac37b46d97d91aaad7278f31f74ddb57b92bc25
gh-135661: Fix parsing unterminated bogus comments in HTMLParser (GH-137873)

Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
Lib/html/parser.py
Lib/test/test_htmlparser.py