Skip to content

gh-162371: Validate namespaces in minidom renameNode - #162372

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:minidom-rename-xml-prefix
Open

tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:minidom-rename-xml-prefix

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Document.renameNode() skipped the qualified-name validation used by the other
namespace-aware methods. Reuse the existing validator before changing the node,
and cover element and attribute renames with the existing namespace error cases.

Document.renameNode() skipped the qualified-name checks used by the other namespace-aware methods. Reuse the existing validator before mutating the node.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #36063163 | 📁 Comparing a2ed0c8 against main (3d248a2)

  🔍 Preview build  

2 files changed
± library/xml.dom.html
± whatsnew/changelog.html

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.

1 participant