Edge / IE11上的Document.createProcessingInstruction()

时间:2018-01-19 14:44:19

标签: javascript internet-explorer dom microsoft-edge notsupportedexception

我目前正在开发一个项目,在一个用例中,它使用document.createProcessingInstruction方法为DOM创建指令节点。

我错过了什么或什么,但似乎这个方法没有正确实现,IE或Edge? (试图从互联网上查看信息,但说实话,没有找到任何......)

如果我拨打以下电话

document.createProcessingInstruction("a", "b")

在Chrome开发者工具控制台中可行,但如果我在IE 11或Edge中进行相同的调用,则会抛出NotSupportedError。好吧,NotSupportedError告诉我他们已经实现了它,但仍然无法理解会发生什么。

0 个答案:

没有答案
相关问题