hint_manager.generate_hints: use SNAPSHOT xpath query
commit90d7adc9970df77a3f9f6d6d9f67b7081686a0a0
authorJohn Foerch <jjfoerch@earthlink.net>
Fri, 18 Jun 2010 17:17:41 +0000 (18 13:17 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Fri, 18 Jun 2010 17:21:42 +0000 (18 13:21 -0400)
tree3542ce5e8895066e3bb095c0657a6fa6b31fd182
parent84ae9edc271211b7bd5d386fa9c0fb7718f3d9ec
hint_manager.generate_hints: use SNAPSHOT xpath query

use a Snapshot query instead of an Iterator query to protect against
invalidation of the iterator.  This situation has been observed to occur
at amazon.com, code.google.com and elsewhere, where, when the document is
scrolled all the way to the top, hint generation fails.
modules/hints.js