Could you please look at this jsFiddle example, and tell me why the number \'11\' is alerted rather than \'5\' (the number of elements)?
From
As others have pointed out, the childNode count inclues the text nodes, generated by the whitespace between the
milkbuttereggsorange juicebananas
That will give you 5 childNodes because it omits the whitespace.