--TEST-- Dom\HTMLDocument::createFromString() with LIBXML_COMPACT --EXTENSIONS-- dom --FILE--

x

foo

foox

fooxx

fooxxx

fooxxxx

fooxxxxx

this does not fit

HTML, LIBXML_COMPACT); $xpath = new Dom\XPath($dom); foreach ($xpath->query("//*[name()='p']") as $p) { echo $p->textContent, "\n"; } ?> --EXPECT-- x foo foox fooxx fooxxx fooxxxx fooxxxxx this does not fit