public function __construct($html, $url = null, $parser = 'libxml', $use_tidy = true)
{
$this->url = $url;
$this->html = $html;
$this->parser = $parser;
$this->useTidy = $use_tidy && function_exists('tidy_parse_string');
$this->logger = new NullLogger();
$this->loadHtml();
}