Skip to content

gh-77057: Fix handling of invalid markup declarations in HTMLParser - #9295

Merged
serhiy-storchaka merged 7 commits into
python:mainfrom
ezio-melotti:issue32876-HTMLParser
May 10, 2025
Merged

serhiy-storchaka merged 7 commits into
python:mainfrom
ezio-melotti:issue32876-HTMLParser

Conversation

@ezio-melotti

@ezio-melotti ezio-melotti commented Sep 14, 2018 •

Copy link
Copy Markdown
Member

This work-in-progress commit addresses one of the issues reported in bpo-32876.

https://bugs.python.org/issue32876

Comment thread Lib/html/parser.py Resolved
@ezio-melotti
ezio-melotti marked this pull request as draft May 12, 2022 01:29
@erlend-aasland erlend-aasland changed the title bpo-32876: fix handling of invalid markup declarations. (WIP) Jan 17, 2024
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Dec 15, 2024

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I propose to add addition tests for some cases which were incorrectly handled in parse_marked_section().

Comment thread Lib/test/test_htmlparser.py Resolved
Comment thread Lib/test/test_htmlparser.py Resolved
Comment thread Lib/test/test_htmlparser.py Resolved
Comment thread Lib/test/test_htmlparser.py Resolved
@serhiy-storchaka serhiy-storchaka removed the stale Stale PR or inactive for long period of time. label May 7, 2025
@serhiy-storchaka
serhiy-storchaka marked this pull request as ready for review May 9, 2025 14:19
@serhiy-storchaka serhiy-storchaka changed the title gh-77057: fix handling of invalid markup declarations. (WIP) May 9, 2025
@serhiy-storchaka serhiy-storchaka changed the title gh-77057: fix handling of invalid markup declarations May 9, 2025

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels May 10, 2025
@miss-islington-app

Copy link
Copy Markdown

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

@miss-islington-app

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2025
…rser (pythonGH-9295)

(cherry picked from commit 76c0b01)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2025
…rser (pythonGH-9295)

(cherry picked from commit 76c0b01)

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

bedevere-app Bot commented May 10, 2025

Copy link
Copy Markdown

GH-133833 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 10, 2025
@bedevere-app

bedevere-app Bot commented May 10, 2025

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label May 10, 2025
serhiy-storchaka added a commit that referenced this pull request May 10, 2025
…arser (GH-9295) (GH-133834)

(cherry picked from commit 76c0b01)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request May 10, 2025
…arser (GH-9295) (GH-133833)

(cherry picked from commit 76c0b01)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…rser (pythonGH-9295)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…rser (pythonGH-9295)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants