Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a complete description of JavaScript DOM class hierarchy?

Tags:

javascript

dom

Is there a more complete description of JavaScript's DOM class hierarchy than the one from JavaScript: The Definitive Guide? enter image description here

It doesn't show many other classes such as HTMLFormElement, HTMLButtonElement.

https://developer.mozilla.org/en-US/docs/Web/API doesn't seem to provide hierarchy information.

like image 526
Tim Avatar asked Nov 15 '25 22:11

Tim


1 Answers

Yes, the DOM is described in the HTML specification, which is free, open source and available at http://html.spec.whatwg.org/

Note that this is declared in formal language (IDL) so that it is not ambiguous and browsers actually compile it into tests. For example here's Document. Here is for example HTMLButtonElement, HTMLFormElement.

On top of that you have the WPT (web platform tests) that make sure that the non-formal parts are tested.

like image 73
Benjamin Gruenbaum Avatar answered Nov 18 '25 13:11

Benjamin Gruenbaum