Node.TEXT_NODE and IE7

佐手、 提交于 2019-11-27 23:38:54

Unfortunately you are not missing anything.

There is no Node constant in IE. Look here http://www.ibm.com/developerworks/xml/library/x-matters41.html at section "What else can you do with the DOM?".

So either you define your own Node constant or you simply ask for

node.nodeType === 3
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!