Skip to content
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

bpo-33274: Compliance with DOM L1: return removed attribute #6462

Closed
wants to merge 1 commit into from
Closed

bpo-33274: Compliance with DOM L1: return removed attribute #6462

wants to merge 1 commit into from

Conversation

arikrupnik
Copy link
Contributor

@arikrupnik arikrupnik commented Apr 13, 2018

W3C DOM Level 1[1] requires removeAttributeNode() to return the removed node:

removeAttributeNode: Removes the specified attribute.
Return Value: The Attr node that was removed.

Current implementation returns None.

[1]https://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-removeAttributeNode

https://bugs.python.org/issue33274

W3C DOM Level 1[1] requires `removeAttributeNode()` to return the removed node:

removeAttributeNode: Removes the specified attribute.
Return Value: The Attr node that was removed.

Current implementation returns `None`.

[1]https://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-removeAttributeNode
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@arikrupnik arikrupnik changed the title Compliance with DOM L1: return removed attribute #33274 Compliance with DOM L1: return removed attribute Apr 13, 2018
@arikrupnik arikrupnik changed the title #33274 Compliance with DOM L1: return removed attribute bpo-33274: Compliance with DOM L1: return removed attribute Apr 13, 2018
@ned-deily
Copy link
Member

@arikrupnik, Thanks for your PR. I see that additions to the PR have been requested on the bug tracker. Please note you should make the PR against the "master" branch, not the "3.6" branch. If a core developer decides to merge the PR to master, they will also decide whether to backport the change to other branches. Thus, I'm closing this PR against 3.6.

https://devguide.python.org/pullrequest/

@ned-deily ned-deily closed this Jun 7, 2018
@arikrupnik
Copy link
Contributor Author

Thank you @ned-deily. Is it the practice in CPython to open new PRs rather than updating existing ones if one pushes additional commits to the branch?

@terryjreedy
Copy link
Member

When a PR is made against the wrong branch, yes.

@arikrupnik
Copy link
Contributor Author

New PR here: #7465

@ned-deily
Copy link
Member

@arikrupnik It's fine to push additional commits to an open PR. But as @terryjreedy notes, the issue here was that the target cpython branch was incorrect and, while I have since found that you can edit the PR to change the target branch, as a practical matter I don't think that would ever be useful with the main cpython branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants