Skip to content

Commit

Permalink
[DomCrawler] fixed add() method to support HTML content as string
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 19, 2010
1 parent 8c0f7e8 commit d6a7b43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Components/DomCrawler/Crawler.php
Expand Up @@ -62,7 +62,9 @@ public function add($node)
$this->addNodeList($node);
} elseif (is_array($node)) {
$this->addNodes($node);
} elseif (null !== $node) {
} elseif (is_string($node)) {
$this->addContent($node);
} elseif (is_object($node)) {
$this->addNode($node);
}
}
Expand Down

0 comments on commit d6a7b43

Please sign in to comment.