[DomCrawler] fixed wrong merge

This commit is contained in:
Fabien Potencier 2014-03-26 13:00:53 +01:00
parent 7a29818d77
commit 5808287d52

View File

@ -224,8 +224,7 @@ class Crawler extends \SplObjectStorage
$dom->validateOnParse = true;
if ('' !== trim($content)) {
// remove the default namespace to make XPath expressions simpler
@$dom->loadXML(str_replace('xmlns', 'ns', $content), LIBXML_NONET);
@$dom->loadXML($content, LIBXML_NONET);
}
libxml_use_internal_errors($internalErrors);