[php-src] PR #22224: ext/dom: resolve in-scope prefixed QName values during document valid…
| From: | devnexen | Date: | Thu, 04 Jun 2026 05:15:28 +0000 |
| Subject: | [php-src] PR #22224: ext/dom: resolve in-scope prefixed QName values during document valid… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36293@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22224
Author: devnexen
…ation.
Fix #22219
Modern DOM keeps namespace declarations off the tree (node->nsDef is NULL), so libxml's
native validators cannot resolve a prefixed QName appearing in element or attribute content.
Temporarily materialize them as nsDef entries around schema, RelaxNG and DTD validation, reusing the
C14N relink machinery, then restore the tree.