Skip to content

Fix GH-21548: Dom\XMLDocument::C14N() emits duplicate xmlns declarati…#21565

Closed
devnexen wants to merge 1 commit intophp:masterfrom
devnexen:gh21548
Closed

Fix GH-21548: Dom\XMLDocument::C14N() emits duplicate xmlns declarati…#21565
devnexen wants to merge 1 commit intophp:masterfrom
devnexen:gh21548

Conversation

@devnexen
Copy link
Copy Markdown
Member

…ons after setAttributeNS().

The xmlns attribute unlinking code in dom_relink_ns_decls_element was clobbering attr->prev instead of updating the predecessor's next pointer, leaving non-first xmlns attributes reachable in the properties list. C14N then output them both as nsDef entries and as attributes.

…ations after setAttributeNS().

The xmlns attribute unlinking code in dom_relink_ns_decls_element was
clobbering attr->prev instead of updating the predecessor's next pointer,
leaving non-first xmlns attributes reachable in the properties list.
C14N then output them both as nsDef entries and as attributes.
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