Skip to content

Commit

Permalink
Use XML_ELEMENT_NODE in nodeType check
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanlaak committed Mar 17, 2016
1 parent 56624e6 commit cffea91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/DomCrawler/Crawler.php
Expand Up @@ -455,7 +455,7 @@ public function parents()
$nodes = array();

while ($node = $node->parentNode) {
if (1 === $node->nodeType) {
if (XML_ELEMENT_NODE === $node->nodeType) {
$nodes[] = $node;
}
}
Expand Down

0 comments on commit cffea91

Please sign in to comment.