Apricot
Apricot copied to clipboard
Finds title twice and includes linefeed
Apricot.open("http://audun.ytterdal.net/test.php", function(doc) {
doc.find('title');
doc.each(function(el) {
console.log('found "' + el.innerHTML + '"');
})
})
Produces
$ node examples.js
found "
"
found "Tittelen på siden
"