gpt4 book ai didi

html - 属性不再被视为节点了吗?

转载 作者:行者123 更新时间:2023-11-28 00:08:16 26 4
gpt4 key购买 nike

根据 MDN ATTRIBUTE_NODE 已弃用。为什么属性不再拥有 nodeType?它们不再被视为节点了吗?

最佳答案

来自 Attr :

Warning: In DOM Core 1, 2 and 3, Attr inherited from Node. This is no longer the case in DOM4. In order to bring the implementation of Attr up to specification, work is underway to change it to no longer inherit from Node. You should not be using any Node properties or methods on Attr objects.

关于html - 属性不再被视为节点了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17116946/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com