Skip to content

[3.15] gh-156635: Fix the exceptions in the xml.dom documentation (GH-156636) - #156637

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-74b944a-3.15
Open

[3.15] gh-156635: Fix the exceptions in the xml.dom documentation (GH-156636)#156637
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-74b944a-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

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

…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.
(cherry picked from commit 74b944a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@read-the-docs-community

Copy link
Copy Markdown

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

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants