mirror of
https://github.com/ariya/phantomjs.git
synced 2024-09-11 04:46:09 +03:00
Fix examples/pizza.js.
Guess the DOM has changed a little. No more class .address but an (incorrectly used) <address> tag instead. http://code.google.com/p/phantomjs/issues/detail?id=921
This commit is contained in:
parent
027aa93b18
commit
8f14ef027e
@ -8,7 +8,7 @@ page.open(url, function (status) {
|
||||
console.log('Unable to access network');
|
||||
} else {
|
||||
var results = page.evaluate(function() {
|
||||
var list = document.querySelectorAll('span.address'), pizza = [], i;
|
||||
var list = document.querySelectorAll('address'), pizza = [], i;
|
||||
for (i = 0; i < list.length; i++) {
|
||||
pizza.push(list[i].innerText);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user