mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
9498bc3ee1
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