-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on document tree and DOM tree #1188
Comments
How does this question relate to the DOM Standard? |
@annevk Both of these terms are mentioned in the dom spec and I am confused about them. |
There are no hits for "DOM tree" as far as I can tell. What document are you reading? |
Hmm you are right. It does not say a “tree”. I probably read it as a DOM tree somewhere else. Now I am even more confused. Thanks anyway |
Ah it is mentioned in the HTML spec |
That might be worth cleaning up a bit. I recommend filing an issue against whatwg/html. It should say "node tree" instead. |
Done. |
The document tree and DOM tree are not the same thing, although they are related. The document tree refers to the hierarchical structure of an HTML or XML document. This structure is created by the author and is static. The DOM tree, on the other hand, is a representation of the document tree in memory, created by the browser when the document is loaded.
Is my understanding correct?
The text was updated successfully, but these errors were encountered: