Skip to content

[3.14] gh-135661: Fix parsing attributes with whitespaces around the "=" separator in HTMLParser (GH-136908) - #136927

Merged
ambv merged 2 commits into
python:3.14from
serhiy-storchaka:backport-dee6501-3.14
Jul 21, 2025
Merged

ambv merged 2 commits into
python:3.14from
serhiy-storchaka:backport-dee6501-3.14

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 21, 2025 •

Copy link
Copy Markdown
Member

This fixes a regression introduced in GH-135930.
(cherry picked from commit dee6501)

…d the "=" separator in HTMLParser (pythonGH-136908)

This fixes a regression introduced in pythonGH-135930.
(cherry picked from commit dee6501)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Comment thread Misc/NEWS.d/3.14.0b4.rst Outdated
E.g. ``<a foo==bar>`` produces attribute "foo" with value "=bar".

* Whitespaces between the ``=`` separator and attribute name or value are no
* [REVERTED] Whitespaces between the ``=`` separator and attribute name or value are no

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is it fine? I do not want to remove this, this is a history, but we should add an indication that this change was not in the final release.

Comment thread Misc/NEWS.d/3.14.0b4.rst Resolved
@ambv
ambv merged commit 893707c into python:3.14 Jul 21, 2025
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
@serhiy-storchaka
serhiy-storchaka deleted the backport-dee6501-3.14 branch July 1, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants