Skip to content

[3.13] gh-86155: Fix data loss after unclosed script or style tag in HTMLParser (GH-22658) #133845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 10, 2025

When calling .close() the HTMLParser should flush all remaining content,
even when that content is in an unclosed script or style tag.
(cherry picked from commit 53383e9)

Co-authored-by: Waylan Limberg [email protected]

…TMLParser (pythonGH-22658)

When calling .close() the HTMLParser should flush all remaining content,
even when that content is in an unclosed script or style tag.
(cherry picked from commit 53383e9)

Co-authored-by: Waylan Limberg <[email protected]>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) May 10, 2025 17:41
@serhiy-storchaka serhiy-storchaka merged commit e76ff56 into python:3.13 May 10, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants