--TEST-- GH-20281 (\Dom\Document::getElementById() is inconsistent after nodes are removed) --EXTENSIONS-- dom --CREDITS-- cscott --FILE-- b

c

', LIBXML_NOERROR); $p = $d->getElementById('a'); $p->remove(); echo $d->getElementById('a')->textContent, "\n"; ?> --EXPECT-- c