console.log("Could not apply XPath selector to current document because the quote has changed. (Saved quote is '"+savedQuote+"'. Current quote is '"+currentQuote+"'.)");
returnnull;
}else{
console.log("Saved quote matches.");
}
}else{
console.log("No saved quote, nothing to compare. Assume that it's OK.");
}
return{
range:normalizedRange,
quote:savedQuote
};
}catch(exception){
if(exceptioninstanceofRange.RangeError){
console.log("Could not apply XPath selector to current document. \ The document structure may have changed.");
console.log("Could not apply position selector to current document because the quote has changed. (Saved quote is '"+savedQuote+"'. Current quote is '"+currentQuote+"'.)");
returnnull;
}else{
console.log("Saved quote matches.");
}
}else{
console.log("No saved quote, nothing to compare. Assume that it's okay.");