code_junkie

Baffled by an XPath issue on IE

Nov 11th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. // In IE, the context must be an Element not a document,
  2. // so if the context is a document, use the documentElement instead
  3. if (context == doc) context = doc.documentElement;
  4. return context.selectNodes(this.xpathText);
Add Comment
Please, Sign In to add comment