Cross Browser XPath Issue
On page 536 this code exists (this is just the relevant snippet of that code):
if (namespaces instanceof Object){
nsresolver = function(prefix){
return namespaces[prefix];
};
}
var result = doc.evaluate(expression, context, nsresolver,
XPathResult.FIRST_ORDERED_NODE_TYPE, null);
I don't understand where the function parameter 'prefix' is coming from, at no point is this parameter being filled with any data that the function can work with when it is being called.
Thanks
|