I am stuck with as issue of accessing HTML element in IE using XPath in Javascript? I already tried with selectNodes() method but its for XML only, it does not work for XPat
Try Wicked Good XPath: https://code.google.com/p/wicked-good-xpath/
It is the smallest and fastest JavaScript-based XPath library and maintained by Google.
you can try the following ,
Browsers can use the following to get all elements with a given tag, regardless of namespace, if the document is served as application/xhtml+xml or other XML type:
var titles = document.getElementsByTagNameNS("*","input[@name='action']");
You might also like this solution to add xpath support for HTML in IE:
http://sourceforge.net/projects/html-xpath/
This has the benefit of unifying the API between IE and other browsers, as well.