IE9 selectSingleNode缺少测试版,如何在JavaScript中克服这一点? [英] IE9 selectSingleNode missing from beta, how to overcome this in JavaScript?

查看:85
本文介绍了IE9 selectSingleNode缺少测试版,如何在JavaScript中克服这一点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Internet Explorer 9中的XMLDocument对象不再包含selectSingleNode基于Xpath的遍历的定义。

XMLDocument object in Internet Explorer 9 does not contain definition for selectSingleNode Xpath-based traversal anymore.

当然,我用Google搜索了一下并遇到了这个帖子,其中它不确定是否因规格或事实仍处于测试阶段而失踪。

Of course, I googled a little and came across this thread, where it is unsure is it missing by specification or by the fact it is still "in beta".

http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/0dc55c4d-4a63- 4a12-b5cc-e4e12cc13d91

任何人都知道如何解决这个问题,还有其他一些通过XML文档进行XPath遍历的方式是IE9 Way吗? / p>

Anyone have idea how to resolve this, is there some other way of XPath traversal trough XMLDocument that is "IE9 Way"?

推荐答案

在IE9的原生XML支持中没有XPath;我们建议您转而使用Selectors API。如果需要,仍然可以使用MSXML ActiveX对象获得XPath支持。

XPath is not available in IE9's native XML support; we recommend moving to the Selectors API instead. If required, XPath support is still available using the MSXML ActiveX objects.

这篇关于IE9 selectSingleNode缺少测试版,如何在JavaScript中克服这一点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆