Skip to content

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

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

Closed
wants to merge 1,355 commits into from
Closed

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

wants to merge 1,355 commits into from

Conversation

arikrupnik
Copy link
Contributor

@arikrupnik arikrupnik commented Jun 7, 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

https://bugs.python.org/issue33274

miss-islington and others added 30 commits December 21, 2017 14:54
Skip the test failing randomly because of known race condition.

Skip the test to fix macOS buildbots until a decision is made on the
proper fix for the race condition.

(cherry picked from commit 550ee05)
…les (GH-4977) (#4979)

This is more complicated than it should be because we need to preserve the
useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar
has. We only look for the pickled grammar file with pkgutil.get_data and only if
the source file does not exist.
(cherry picked from commit 8a58771)
(cherry picked from commit d11e8e0)
* Fix typos
* Change warning text
* Add test
(cherry picked from commit a8f4e15)
In pydoc.py, the reference to Python' documentation was in http.
The link has been updated to use https.
(cherry picked from commit e5681b9)
Move other test to more proper place.
(cherry picked from commit e8ed965)
…5081)

Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (GH-5079)
(cherry picked from commit f190eb5)
The comment was added in 3abca12.
In d78448e, it was changed to
use PyArg_ParseTuple instead.

(cherry picked from commit 78e24d4)
It's more trouble than it's worth, since AppVeyor only checks the HEAD commit of a PR rather than the full diff against the base branch to decide which files changed.
(cherry picked from commit 7f7de37)
…rnal link (GH-5157) (GH-5160)

In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
(cherry picked from commit 3764bb0)
glibc has removed Sun RPC. Use replacement libtirpc headers and library in
nis module

Signed-off-by: Christian Heimes <[email protected]>
(cherry picked from commit f3031b8)
The code example that demonstrate how to use enum.Flag was missing
the import of enum.auto.
(cherry picked from commit 0f31c74)
`os.path.is*()` can return False if the file can't be accessed.
The behaviour is documented in details in `os.path.exists()`.
Link to `os.path.exists()` from `os.path.is*()`.
(cherry picked from commit b3dd18d)
Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
(cherry picked from commit ee3b835)
miss-islington and others added 13 commits April 6, 2018 18:15
* bpo-33201: Modernize "Extension types" doc
* Split tutorial and other topics
* Some small fixes
* Address some review comments
* Rename noddy* to custom* and shoddy to sublist
* Fix markup.
(cherry picked from commit 1d80a56)
(cherry picked from commit 9265dd7)

Co-authored-by: Raymond Hettinger <[email protected]>
When bpo-12015 got resolved by increasing the length of the
random string generated by _RandomNameSequence from six to eight
characters, the docstring of the class was not adjusted accordingly.
(cherry picked from commit 9c463ec)

Co-authored-by: Wolfgang Maier <[email protected]>
The protocol parameter can be any protocol supported by the
pickle module.
(cherry picked from commit 2ef65f3)

Co-authored-by: Serhiy Storchaka <[email protected]>
…`` script. (GH-6259)

Based on patch by Oleg Krasnikov.
(cherry picked from commit c93938b)

Co-authored-by: Serhiy Storchaka <[email protected]>
The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a in 2011.
(cherry picked from commit 04e8293)

Co-authored-by: suic86 <[email protected]>
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

test cases for Element.testRemoveAttributeNode()
@arikrupnik
Copy link
Contributor Author

Tried to open PR from wrong branch. Closing. Correct PR #7465

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.