DOM tests - The node tree with empty child nodes

Back to index.

Spec

childNodes

firstChild

hasChildNodes

lastChild

nextSibling

previousSibling

parentNode

Test area

  1. This OL has id="childTest"
  2. It’s meant for the childNodes test
  3. because between every two LIs there’s an empty text node.
This DIV with id="testRoot" starts with an em and has EMPTY TEXT NODES.

and then comes a paragraph with id="testPar" which has a strong tag nested in it.

And after a comment comes this div.

And in this nested paragraph I remind you that there are empty text nodes between the elements.

This paragraph has a single text node as child.