Skip to content

Commit

Permalink
Fixed bug #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Mar 7, 2018
1 parent 23f3782 commit 7f12f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AdvancedHtmlDom/AdvancedHtmlDom.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function load($html, $is_xml = false)
$html = \preg_replace('/xmlns=".*?"/ ', '', $html);
}

$this->dom->loadHTML($html,LIBXML_NOWARNING | LIBXML_NOERROR);
$this->dom->loadHTML($html, LIBXML_NOERROR);
$this->xpath = new \DOMXPath($this->dom);
//$this->root = new AHTMLNode($this->dom->documentElement, $this->doc);
$this->root = $this->at('body');
Expand Down

0 comments on commit 7f12f31

Please sign in to comment.