-rw-r--r-- | content/util.js | 7 |
1 files changed, 7 insertions, 0 deletions
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) { | |||
58 | xp, x, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ); | 58 | xp, x, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ); |
59 | return rv.singleNodeValue; | 59 | return rv.singleNodeValue; |
60 | } | 60 | } |
61 | /* | ||
62 | * extract xpath-specified ordered set of nodes | ||
63 | */ | ||
64 | function xp_nodes(xp,x) { | ||
65 | return x.evaluate( | ||
66 | xp, x, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); | ||
67 | } | ||
61 | 68 | ||
62 | /* | 69 | /* |
63 | * pull in elements into documents as a member variables | 70 | * pull in elements into documents as a member variables |