Skip to content

Commit 5ee96b2

Browse files
committed
[DomCrawler] Inherit the namespace cache in subcrawlers
1 parent f8c304f commit 5ee96b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Crawler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ private function createSubCrawler($nodes)
11511151
$crawler = new static($nodes, $this->uri, $this->baseHref);
11521152
$crawler->isHtml = $this->isHtml;
11531153
$crawler->document = $this->document;
1154+
$crawler->namespaces = $this->namespaces;
11541155

11551156
return $crawler;
11561157
}

0 commit comments

Comments
 (0)