W3C DOM tests - the Five Methods

This is the test HTML:

Test <p> with id="test" and class="testClass". It contains a <b> with id="testB".

<p> with id="test2" and class="nonsense testClass"

This is a <ppk> tag.

This <img>has name (and not id!) test3

This <div> also has id="test". It should be ignored, since there's a previous element with id="test".

This page tests a few basic DOM methods.

Test scripts

createElement()

createTextNode()

compareDocumentPosition()

getElementById()

getElementsByTagName()

contains()

getElementsByClassName()

querySelectorAll()

item()