--TEST-- noscript behaviour --EXTENSIONS-- dom --FILE-- ", Dom\HTML_NO_DEFAULT_NS); var_dump($dom->documentElement->textContent); var_dump($dom->documentElement->namespaceURI); echo $dom->saveHtml(), "\n"; echo $dom->saveXml(), "\n"; echo "--- Modifying the text content: tag ---\n"; $xpath = new Dom\XPath($dom); $noscript = $xpath->query("//noscript")[0]; $noscript->textContent = "

bye

"; echo $dom->saveHtml(), "\n"; echo $dom->saveXml(), "\n"; echo "--- Modifying the text content: trick ---\n"; $noscript->textContent = ""; echo $dom->saveHtml(), "\n"; echo $dom->saveXml(), "\n"; ?> --EXPECT-- --- Parsing --- string(2) "hi" NULL --- Modifying the text content: tag --- --- Modifying the text content: trick ---