Commits

Marcin Kasperski committed 0fdf9f6

(techie helper function, xpathFirstRelative)

  • Participants
  • Parent commits e39fa21

Comments (0)

Files changed (1)

smtuning/content/smt_docutil.js

         return document.evaluate(query, document, null,
                                  XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
     },
+    xpathFirstRelative : function(document, under, query) {
+        return document.evaluate(query, under, null,
+                                 XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
+    },
+
     xpathAsArray : function(document, query) {
         var r = document.evaluate(query, document, null,
                                   XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);