Skip to content

gh-135661: Fix parsing unterminated bogus comments in HTMLParser - #137873

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:htmlparser-bogus-comment-cdata-eof
Aug 17, 2025
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:htmlparser-bogus-comment-cdata-eof

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 17, 2025 •

Copy link
Copy Markdown
Member

Bogus comments that start with "<![CDATA[" should not include the starting "!" in its value.

Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 7636a66635a0da849cfccd06a52d0a21fb692271 3.14
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 17, 2025
pythonGH-137873)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app

bedevere-app Bot commented Aug 17, 2025

Copy link
Copy Markdown

GH-137875 is a backport of this pull request to the 3.13 branch.

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Backport to 3.14 was included in #137772.

@serhiy-storchaka
serhiy-storchaka deleted the htmlparser-bogus-comment-cdata-eof branch August 17, 2025 10:45
serhiy-storchaka added a commit that referenced this pull request Aug 17, 2025
…er (GH-137873) (GH-137875)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
pythonGH-137873)

Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant