元素是 HTML 中节点的实例吗?
Is an Element an instance of a Node in HTML?
元素是HTML中节点的实例吗?
我假设属性也是节点,并且 "the Elements" 是可以使用尖括号语法定义的节点集?
Properties
Inherits properties from its parents Node, and its own parent, EventTarget
, and implements those of ParentNode
, ChildNode
, NonDocumentTypeChildNode
, and Animatable
.
是的Node
,根据MDN documentation for HTMLElement
:
Inherits properties from its parents Node
, and its own parent, EventTarget
, and implements those of ParentNode
, ChildNode
, NonDocumentTypeChildNode
, and Animatable
.
如果在文本中很难找到,MDN 还在左侧边栏中提供了一个 "Inheritance section"。
元素是HTML中节点的实例吗?
我假设属性也是节点,并且 "the Elements" 是可以使用尖括号语法定义的节点集?
Properties
Inherits properties from its parents Node, and its own parent,
EventTarget
, and implements those ofParentNode
,ChildNode
,NonDocumentTypeChildNode
, andAnimatable
.
是的Node
,根据MDN documentation for HTMLElement
:
Inherits properties from its parents
Node
, and its own parent,EventTarget
, and implements those ofParentNode
,ChildNode
,NonDocumentTypeChildNode
, andAnimatable
.
如果在文本中很难找到,MDN 还在左侧边栏中提供了一个 "Inheritance section"。