DEV Community

Discussion on: WTF is the DOM?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Did you know that #document is a node as well. I guess that makes sense given that document.body and document.head are not roots, this isn't a multiroot tree.

I think after many years I still have fundamental gaps in my knowledge and so it's good to read little posts like this.

Collapse
 
theianjones profile image
Ian Jones

What are some other gaps that you have discovered lately?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Great question!

  • That not all requests are async
  • Object.assign actually assigns not copies
  • semicolons should be used.
  • loops and blocks can be labelled

I have written a lot of posts lately about wierd bits I thought I knew.