View on GitHub

reading-notes

Reading notes for Codesfellows Coding

Reading 06

js book

Chapter 3: “Object Literals” (pp.100-105)

Chapter 5: “Document Object Model” (pp.183-242)

Text node: Once you have accessed an element node, you can then reach the text within that element. This is stored in its own text node. Text nodes cannot have children. If an element contains text and another child element, the child element is not a child of the text node but rather a child of the containing element. (See the element on the first item.) This illustrates how the text node is always a new branch of the DOM tree, and no further branches come off of it.