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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user