From b6a122d536aef024b69d40cdf2ac0332d7c14607 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 01 Oct 2006 23:53:31 +0000 Subject: paginating through search results git-svn-id: http://svn.klever.net/kin/fireflix/trunk@179 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'content/util.js') diff --git a/content/util.js b/content/util.js index c4af09e..ccc61cf 100644 --- a/content/util.js +++ b/content/util.js @@ -58,6 +58,13 @@ function xp_node(xp,x) { xp, x, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ); return rv.singleNodeValue; } +/* + * extract xpath-specified ordered set of nodes + */ +function xp_nodes(xp,x) { + return x.evaluate( + xp, x, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); +} /* * pull in elements into documents as a member variables -- cgit v0.9.0.2