| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Node.insertBefore(), Node.removeChild() and Node.replaceChild() raise NotFoundErr, not ValueError. Element.removeAttribute() and Element.removeAttributeNS() raise NotFoundErr if there is no matching attribute, which contradicts the DOM, so this is documented as a deviation in the minidom documentation.
Documentation build overview2 files changed ± library/xml.dom.html ± library/xml.dom.minidom.html |
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-156637 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 74b944afe32049191674c747e060d8d67a2a1b17 3.13 |
Sorry, something went wrong.
|
GH-156638 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-156639 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…-156636) (GH-156638) Node.insertBefore(), Node.removeChild() and Node.replaceChild() raise NotFoundErr, not ValueError. Element.removeAttribute() and Element.removeAttributeNS() raise NotFoundErr if there is no matching attribute, which contradicts the DOM, so this is documented as a deviation in the minidom documentation. (cherry picked from commit 74b944a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…-156636) (GH-156639) Node.insertBefore(), Node.removeChild() and Node.replaceChild() raise NotFoundErr, not ValueError. Element.removeAttribute() and Element.removeAttributeNS() raise NotFoundErr if there is no matching attribute, which contradicts the DOM, so this is documented as a deviation in the minidom documentation. (cherry picked from commit 74b944a)
The DOM does not allow Element.removeAttribute() and removeAttributeNS() to raise NotFoundErr in this case, it is a deviation of minidom, documented in pythonGH-156636.
…honGH-156636) Node.insertBefore(), Node.removeChild() and Node.replaceChild() raise NotFoundErr, not ValueError. Element.removeAttribute() and Element.removeAttributeNS() raise NotFoundErr if there is no matching attribute, which contradicts the DOM, so this is documented as a deviation in the minidom documentation.
| Back | FazBrowse Home | New Git URL |
Node.insertBefore(), Node.removeChild() and Node.replaceChild() were documented as raising ValueError for a node which is not a child of this node. They raise NotFoundErr, which is a DOMException and not a ValueError.
Element.removeAttribute() was documented as raising NotFoundErr if there is no matching attribute, and Element.removeAttributeNS() as raising nothing, although both raise NotFoundErr. The DOM specifies that removing an absent attribute has no effect, so neither is documented in xml.dom any more, and this is documented as a deviation in the xml.dom.minidom documentation.