根据MDN ATTRIBUTE_NODE
已弃用。为什么属性不再拥有 nodeType
?它们不再被视为节点吗?
最佳答案
来自Attr :
Warning: In DOM Core 1, 2 and 3,
Attr
inherited fromNode
. This is no longer the case in DOM4. In order to bring the implementation ofAttr
up to specification, work is underway to change it to no longer inherit fromNode
. You should not be using anyNode
properties or methods onAttr
objects.
关于html - 属性不再被视为节点了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17116946/