Skip to content

Commit

Permalink
Google Dom fix : was ignoring first result if extended
Browse files Browse the repository at this point in the history
  • Loading branch information
gsouf committed Oct 26, 2014
1 parent deae0e7 commit fe1f31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GoogleUrl/GoogleDOM.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GoogleDOM extends \DOMDocument{
/**
* list of natural nodes
*/
const NATURAL_QUERY="//div[@id = 'ires']/ol/div[@class='srg']/li[@class='g'][not(@id) or @id != 'imagebox_bigimages']";
const NATURAL_QUERY="//div[@id = 'ires']/ol/descendant::li[@class='g'][not(@id) or @id != 'imagebox_bigimages']";
/**
* Get natural link (<a> tag) in the natural node context
*/
Expand Down

0 comments on commit fe1f31f

Please sign in to comment.