1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 01:18:19 +02:00
Files
Jordi Kroon 9498bc3ee1 fix Dom\Notation nodes missing tree connection
Fixes an existing TODO by @ndossche.

Notation nodes returned from $doctype->notations were not linked to their owning document or parent DocumentType. This caused several incorrect behaviour; including:

ownerDocument was missing
parentNode was NULL
isConnected returned false
baseURI fell back to "about:blank"
textContent returned an empty string instead of NULL

The last point is a violation of the DOM specification. Since Notation is not an Element, CharacterData, Attr, or DocumentFragment, its textContent must return NULL.

Spec reference: https://dom.spec.whatwg.org/#dom-node-textcontent

close GH-21868
2026-04-25 20:13:14 +01:00
..
2026-04-16 14:12:45 +02:00
2025-06-04 18:59:21 +02:00