Ch9 ex2 The Node Object: Navigating the DOM
What I don't understand is what we are testing for? What do you mean by Whitespace between nodes?
Quote:
Here you check to see what the nodeType of the nextSibling of headingElement is. If it returns
3, (nodeType 3 is a text node), you set bodyElement to be the nextSibling of the nextSibling of
headingElement; otherwise, you just set it to be the nextSibling of headingElement.
|
Last edited by jaycbrf4; December 19th, 2017 at 04:47 PM..
|