DEV Community

Discussion on: Explain What is DOM like I'm 🖐

Collapse
 
richarddavenport profile image
Richard Davenport

Great write up! I'd only suggest one small change. When you say "This document is actually an object", I would change it to "This document is parsed into an object". What I mean is that the HTML document IS the document, but then it is parsed and out of it comes the object model. Hence Document... Object Model.

Collapse
 
jeoxs profile image
José Aponte

OMG! I finally got it after reading this comment. Thank you!

Collapse
 
imronlearning profile image
Michael Learns

Oh right! 😮 That makes sense. Thank you 😄

Collapse
 
roman4u profile image
Roman4u

This a great, and I think I understand. But I have a question with regards to how you're using the term 'parse' in your explanation. For instance, in the following sentence:

the HTML document IS the document, but then it is parsed and out of it comes the object model. Hence Document... Object Model.

would it be fine to substitute 'parse' with either 'analyze' or 'interpret'? What I'm asking is: is there another word instead of 'parse' that can be used to help me better understand.

Collapse
 
richarddavenport profile image
Richard Davenport

@roman4u, the object model is created from the document. I would agree with you. You could say the document is analyzed or interpreted and an object is created from the document.