xref: /PHP-8.3/ext/dom/tests/gh16336_1.phpt (revision 5cb38e9d)
1--TEST--
2GH-16336 (Attribute intern document mismanagement)
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$doc = new DOMDocument();
9$elem = new DOMElement("g");
10$attr = new DOMAttr("iF", "j");
11
12// First append, then attribute
13$doc->appendChild($elem);
14$elem->setAttributeNode($attr);
15echo $attr->firstChild->textContent;
16
17?>
18--EXPECT--
19j
20