Skip to content

bpo-41748: Handles unquoted attributes with commas#24072

Merged
ezio-melotti merged 9 commits into
python:masterfrom
karlcow:bpo-41748
Feb 1, 2021
Merged

bpo-41748: Handles unquoted attributes with commas#24072
ezio-melotti merged 9 commits into
python:masterfrom
karlcow:bpo-41748

Conversation

@karlcow

@karlcow karlcow commented Jan 3, 2021

Copy link
Copy Markdown
Contributor

data:text/html,<!doctype html><div class=bar,baz=asd>text</div>
serialized as <div class="bar,baz=asd">text</div>

but

data:text/html,<!doctype html><div class=bar ,baz=asd>text</div>
serialized as <div class="bar" ,baz="asd">text</div>

As discussed in https://bugs.python.org/issue41748

https://bugs.python.org/issue41748

Automerge-Triggered-By: GH:ezio-melotti

Comment thread Lib/html/parser.py Outdated
@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@ezio-melotti ezio-melotti self-assigned this Jan 3, 2021
@karlcow

karlcow commented Jan 3, 2021

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@ezio-melotti: please review the changes made to this pull request.

Comment thread Lib/html/parser.py Outdated
Comment thread Lib/test/test_htmlparser.py Outdated
@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@karlcow

karlcow commented Jan 4, 2021

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@ezio-melotti: please review the changes made to this pull request.

@ezio-melotti ezio-melotti 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.

A couple minor comments, in addition to the comment I left in the main conversation.
Also remember to add a NEWS entry to the PR.

Comment thread Lib/html/parser.py Outdated
Comment thread Lib/test/test_htmlparser.py
@karlcow

karlcow commented Jan 6, 2021

Copy link
Copy Markdown
Contributor Author

@ezio-melotti done. I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@ezio-melotti: please review the changes made to this pull request.

@ezio-melotti

Copy link
Copy Markdown
Member

Thanks for addressing all the comments, we only need a NEWS entry and then I can merge the PR.
You can use blurb or blurb-it to add one (see the devguide for more info).

@karlcow

karlcow commented Jan 6, 2021

Copy link
Copy Markdown
Contributor Author

@ezio-melotti NEWS.d entry added. Thanks for the review and the help along this PR.

@karlcow

karlcow commented Jan 12, 2021

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@ezio-melotti: please review the changes made to this pull request.

@ezio-melotti ezio-melotti added 🤖 automerge type-bug An unexpected behavior, bug, or error labels Feb 1, 2021
@ezio-melotti
ezio-melotti merged commit 9eb11a1 into python:master Feb 1, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

@ezio-melotti: Please replace # with GH- in the commit message next time. Thanks!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 1, 2021
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a1)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
@bedevere-bot

Copy link
Copy Markdown

GH-24415 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 1, 2021
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a1)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
@bedevere-bot

Copy link
Copy Markdown

GH-24416 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Feb 1, 2021
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a1)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
miss-islington added a commit that referenced this pull request Feb 1, 2021
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a1)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants