When I set XML namespaces using Sarissa.setXpathNamespaces I get an error that tells that the method setProperty is not defined for the oDoc parameter.
I encounter this problem only with IE10.
This also correctly interprets the compatiblity mode (IE9 and IE10 have the DomParser and XMLSerializer, but seem to lack the selectSingleNode() and selectNodes() methods).
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
The solution:
change line 66 in sarissa.js:
/* @private IE9 or IE10 (also correct identification of compatibility mode/view) /
Sarissa._SARISSA_IS_IE9 = Sarissa._SARISSA_IS_IE && (navigator.userAgent.toLowerCase().indexOf("msie 9") > -1 || navigator.userAgent.toLowerCase().indexOf("msie 10") > -1 || document.documentMode >= 9);
This also correctly interprets the compatiblity mode (IE9 and IE10 have the DomParser and XMLSerializer, but seem to lack the selectSingleNode() and selectNodes() methods).
see http://sourceforge.net/p/sarissa/bugs/61/
Last edit: Anonymous 2013-06-03