Skip to content

Commit 145d47f

Browse files
xml.etree: Fix namespace prefix resolution in ElementPath xpath_tokenizer (GH-140123)
The namespace prefix resolution in ElementPath.xpath_tokenizer now properly uses globally registered namespaces after trying local namespaces first. This ensures consistent namespace handling across both Python and C implementations.
1 parent 49d517d commit 145d47f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ElementTree.find() and similar methods now properly use globally registered namespaces when resolving namespace prefixes in XPath expressions.

0 commit comments

Comments
 (0)