Description
Using Internet Explorer 11 and XPath result in a Catalog Client Script. An undefined error occurs.
Steps to Reproduce
- Open Internet Explorer 11.
- Have a Client Script running on a catalog item using XPathResult that is not wrapped in a function.
The error message XPathResult undefined appears. - Switch to compatibility mode.
The error does not occur.
Workaround
XPATH is not supported in Internet Explorer currently.
For more information, see:
http://stackoverflow.com/questions/23560438/xpathresult-is-undefined-in-ie11
http://status.modern.ie/domlevel3xpath#domlevel3xpath
The workaround is to wrap the wanted script in a function. For example:
if( XPathResult ) {
.. your code here...
}
Another workaround is to use Compatibility Mode in Internet Explorer.
Related Problem: PRB600878