function Crawler::__construct
Parameters
\DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A Node to use as the base for the crawling:
File
-
vendor/
symfony/ dom-crawler/ Crawler.php, line 61
Class
- Crawler
- Crawler eases navigation of a list of \DOMNode objects.
Namespace
Symfony\Component\DomCrawlerCode
public function __construct(\DOMNodeList|\DOMNode|array|string|null $node = null, ?string $uri = null, ?string $baseHref = null, bool $useHtml5Parser = true) {
$this->baseHref = $baseHref ?: $uri;
$this->html5Parser = $useHtml5Parser ? new HTML5([
'disable_html_ns' => true,
]) : null;
$this->cachedNamespaces = new \ArrayObject();
$this->add($node);
}