[DomCrawler] fixed wrong merge
This commit is contained in:
parent
7a29818d77
commit
5808287d52
@ -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);
|
||||
|
Reference in New Issue
Block a user