Skip to content

gh-57336: Fix attr name setter behavior - #14757

Open
potomak wants to merge 2 commits into
python:mainfrom
potomak:issue13127
Open

gh-57336: Fix attr name setter behavior#14757
potomak wants to merge 2 commits into
python:mainfrom
potomak:issue13127

Conversation

@potomak

@potomak potomak commented Jul 13, 2019

Copy link
Copy Markdown
Contributor

Update the implementation of attributes name setter to correctly
replace the attribute in the owner element.

The update is divided in three main steps:

  1. update the implementation of Attr._set_name to behave more
    similarly to Document.renameNode

  2. update the implementation of Document.renameNode to use
    Attr._set_name if the node is of type "attribute"

  3. create a new function _parseName, that is used in both
    Attr._set_name and Document.renameNode, to reduce code
    duplication

https://bugs.python.org/issue13127

Update the implementation of attributes `name` setter to correctly
replace the attribute in the owner element.

The update is divided in three main steps:

1. update the implementation of `Attr._set_name` to behave more
   similarly to `Document.renameNode`

2. update the implementation of `Document.renameNode` to use
   `Attr._set_name` if the node is of type "attribute"

3. create a new function `_parseName`, that is used in both
   `Attr._set_name` and `Document.renameNode`, to reduce code
   duplication
@python-cla-bot

python-cla-bot Bot commented Apr 6, 2025

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@github-actions

github-actions Bot commented Apr 7, 2026

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 Apr 7, 2026
@serhiy-storchaka

Copy link
Copy Markdown
Member

@potomak, please sign the CLA (just click the button and follow instructions). We need this to be able to merge this PR.

@serhiy-storchaka serhiy-storchaka changed the title bpo-13127: Fix attr name setter behavior gh-57336: Fix attr name setter behavior Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants