S
S
sasha2014-08-22 07:47:39
JavaScript
sasha, 2014-08-22 07:47:39

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

2 answer(s)
E
Evgeny Petrov, 2014-08-22
@madmages

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).
PrototypeRoot-example.png.
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 :)
dom-architecture.png

K
Kirows, 2014-08-22
@Kirows

I have never seen a fuller text version than THIS one, but one can only dream about pictures.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question