Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit ece73bd

Browse files
committed
parser: Fix detection of duplicate attributes in XML namespace
Fixes a regression from commit e0dd330, resulting in duplicate attributes in the predefined XML namespace not being detected or extraneous default attributes being passed. Fixes #704.
1 parent 4365a5e commit ece73bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9424,7 +9424,7 @@ xmlAttrHashInsert(xmlParserCtxtPtr ctxt, unsigned size, const xmlChar *name,
94249424
int nsIndex = (int) (ptrdiff_t) atts[2];
94259425

94269426
if ((nsIndex == NS_INDEX_EMPTY) ? (uri == NULL) :
9427-
(nsIndex == NS_INDEX_XML) ? (uri == ctxt->str_xml) :
9427+
(nsIndex == NS_INDEX_XML) ? (uri == ctxt->str_xml_ns) :
94289428
(uri == ctxt->nsTab[nsIndex * 2 + 1]))
94299429
return(bucket->index);
94309430
}

0 commit comments

Comments
 (0)