Skip to content

Commit

Permalink
removed Exception
Browse files Browse the repository at this point in the history
I couldn't get loadHTML to return `false` so I removed the unnecessary Exception
  • Loading branch information
SpazzMarticus committed Sep 18, 2015
1 parent 531f8c9 commit 60c1564
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/eCSStractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ public function extract($html)
$errorHandling=libxml_use_internal_errors(true);

$doc=new DOMDocument();
$htmlLoaded=$doc->loadHTML($html, $this->_libxmlOptions);

if (!$htmlLoaded)
{
throw new \InvalidArgumentException('The HTML-Document given could not be parsed!', 1);
}
$doc->loadHTML($html, $this->_libxmlOptions);

$stylesheet='';

Expand Down

0 comments on commit 60c1564

Please sign in to comment.