DEV Community

moogoo
moogoo

Posted on

Note abont JavaScript DOM objects

DOM Element structure

+-------------+    +------+    +---------+    +-------------+
| EventTarget | <- | Node | <- | Element | <- | HTMLElement |
+-------------+    +------+    +---------+    +-------------+
Enter fullscreen mode Exit fullscreen mode

The DOM Node interface is an abstract base class upon which many other DOM API objects are based, thus letting those object types to be used similarly and often interchangeably.

every kind of DOM node is represented by an interface based on Node

Element - Web APIs | MDN

Top comments (0)