protected function Link::setNode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Link.php \Symfony\Component\DomCrawler\Link::setNode()
Sets current \DOMElement instance.
Parameters
\DOMElement $node A \DOMElement instance:
Throws
\LogicException If given node is not an anchor
1 call to Link::setNode()
- Link::__construct in vendor/
symfony/ dom-crawler/ Link.php - Constructor.
1 method overrides Link::setNode()
- Form::setNode in vendor/
symfony/ dom-crawler/ Form.php - Sets the node for the form.
File
- vendor/
symfony/ dom-crawler/ Link.php, line 172
Class
- Link
- Link represents an HTML link (an HTML a, area or link tag).
Namespace
Symfony\Component\DomCrawlerCode
protected function setNode(\DOMElement $node) {
if ('a' !== $node->nodeName && 'area' !== $node->nodeName && 'link' !== $node->nodeName) {
throw new \LogicException(sprintf('Unable to navigate from a "%s" tag.', $node->nodeName));
}
$this->node = $node;
}