I know the DOM is not JavaScript code, so what code is used to create the DOM, where can I see it ?
Also methods like document.querySelector()
are provided by the DOM, it's not actual JavaScript, for example you can use this method with Python.
So how JavaScript "uses" the DOM, how are them really connected ?
Can JavaScript just uses the DOM objects as JavaScript objects, and where can I see these actual raw DOM Objects ?
What is the source code of the getElementById()
method for example ?
I'm comming to you because the documentation is really abstract about this point, it says that the DOM is not JavaScript, but they are not showing what is the DOM.
Disclaimer : I know how to use it, every methods and properties, and I know that it represents a tree with the website elements, but I can't visualize the actual connection between DOM and JS, and it's frustrating :)
Thank's a lot for the hand ♥