Thursday, May 23, 2013

Why does the childNodes array have and inaccurate number of items

As you can see from the image below, the childNodes array has 13 item. But clearly the "book" element has only 6 childNodes. Why is this inaccurate? 



Answer: It's because of the white space between the elements.

No comments:

Post a Comment