Is An Element An Instance Of A Node In Html?
Is an Element an instance of a Node in HTML? I presume Attributes are also Nodes and that 'the Elements' is the set of Nodes that can be defined using the angle-bracket syntax?
Solution 1:
Yes it is a Node
, according to the MDN documentation for HTMLElement
:
Inherits properties from its parents
Node
, and its own parent,EventTarget
, and implements those ofParentNode
,ChildNode
,NonDocumentTypeChildNode
, andAnimatable
.
If that's a bit hard to find in text, MDN also provides an "Inheritance section" in the left sidebar.
Solution 2:
Properties
Inherits properties from its parents Node, and its own parent,
EventTarget
, and implements those ofParentNode
,ChildNode
,NonDocumentTypeChildNode
, andAnimatable
.
Post a Comment for "Is An Element An Instance Of A Node In Html?"