Skip to content

Fix GH-21544: Dom\XMLDocument::C14N() drops namespace declarations on…#21561

Open
devnexen wants to merge 1 commit intophp:PHP-8.4from
devnexen:gh21544
Open

Fix GH-21544: Dom\XMLDocument::C14N() drops namespace declarations on…#21561
devnexen wants to merge 1 commit intophp:PHP-8.4from
devnexen:gh21544

Conversation

@devnexen
Copy link
Copy Markdown
Member

… DOM-built documents.

For programmatically built documents (e.g. createElementNS), namespaces live on node->ns without corresponding xmlns attributes. Create temporary synthetic nsDef entries so C14N can find them, complementing the existing xmlns attribute to nsDef conversion.

… on DOM-built documents.

For programmatically built documents (e.g. createElementNS), namespaces
live on node->ns without corresponding xmlns attributes. Create temporary
synthetic nsDef entries so C14N can find them, complementing the existing
xmlns attribute to nsDef conversion.
@devnexen devnexen marked this pull request as ready for review March 28, 2026 10:04
@devnexen devnexen requested a review from ndossche as a code owner March 28, 2026 10:04
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.

Dom\XMLDocument::C14N() drops namespace declarations on DOM-built documents

1 participant