1--TEST--
2Bug #79701 (getElementById does not correctly work with duplicate definitions) - remove attribute variation
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$dom = Dom\XMLDocument::createFromString(<<<XML
8<root>
9    <test1 xml:id="x"/>
10    <test2 xml:id="x"/>
11</root>
12XML);
13
14var_dump($dom->getElementById('x')?->nodeName);
15$dom->getElementById('x')->removeAttribute('xml:id');
16var_dump($dom->getElementById('x')?->nodeName);
17?>
18--EXPECTF--
19Warning: Dom\XMLDocument::createFromString(): ID x already defined in Entity, line: 3 in %s on line %d
20string(5) "test1"
21NULL
22