public function Crawler::addDocument in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::addDocument()
Adds a \DOMDocument to the list of nodes.
Parameters
\DOMDocument $dom A \DOMDocument instance:
2 calls to Crawler::addDocument()
- Crawler::addHtmlContent in vendor/
symfony/ dom-crawler/ Crawler.php - Adds an HTML content to the list of nodes.
- Crawler::addXmlContent in vendor/
symfony/ dom-crawler/ Crawler.php - Adds an XML content to the list of nodes.
File
- vendor/
symfony/ dom-crawler/ Crawler.php, line 261
Class
- Crawler
- Crawler eases navigation of a list of \DOMElement objects.
Namespace
Symfony\Component\DomCrawlerCode
public function addDocument(\DOMDocument $dom) {
if ($dom->documentElement) {
$this
->addNode($dom->documentElement);
}
}