Answer the question
In order to leave comments, you need to log in
Where can I find the prototype hierarchy DOM tree?
Everything is connected in the DOM. top-level elements are cloned from element constructors, these constructors in turn from other constructors, and so on. For divs, this hierarchy looks like this: HTMLDivElement -> HTMLElement -> Element -> Node -> EventTarget -> Object.
Question: Is there a complete scheme, in a watchable form, of all elements, events and other things that are there with a similar hierarchy?
Answer the question
In order to leave comments, you need to log in
It's not all that simple. Implemented interfaces (Web IDL).
The list of interfaces can be found in both HTML5 and DOM Core .
In one of the previous versions of DOM Core , you can find a picture explaining how this works for an element. It shows that the eventTarget is mixed in with the main model (at the bottom of the Mixin prototype object).
.
Well, I haven’t seen a full graphical version of all interfaces, and I doubt its availability. For example, there is an Attr interface - in which chain should I stick it? ..
But I met the DOM architecture :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question