$document = new Document('http://www.example.com/', true);
echo $document->first('title::text');
$links = $document->find('a[href]::attr(href)');
var_dump($links);
$links = $document->find('a[href]:has(img)::attr(href)');
var_dump($links);
function(){
console.log('Onclick working!'); // working!
this.ul.style.color = 'red'; //TypeError: this.ul is undefined
};
var that = this;
this.btn.onclick = function(){
console.log('Onclick working!'); // working!
that.ul.style.color = 'red'; //TypeError: this.ul is undefined
};