1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-09 16:55:47 +01:00

heuristics to avoid duplicate relative hints

This commit is contained in:
Martin Stubenschrott
2007-09-27 21:06:04 +00:00
parent 39ca50905c
commit 4d48090bd2
2 changed files with 49 additions and 22 deletions

View File

@@ -163,12 +163,14 @@ function Buffer() //{{{
this.lastInputField = null; // used to keep track of the right field for "gi"
// returns an XPathResult object
this.evaluateXPath = function(expression, doc, ordered)
this.evaluateXPath = function(expression, doc, elem, ordered)
{
if (!doc)
doc = window.content.document;
if (!elem)
elem = doc;
var result = doc.evaluate(expression, doc,
var result = doc.evaluate(expression, elem,
function lookupNamespaceURI(prefix) {
switch (prefix) {
case 'xhtml':