The HTML5 Helper
JavaScript, XML, HTML5, CSS, Canves, DOM
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment