DOM manipulation

Example

This is an h5 element with no class
This is an h5 element with the class "red"

This is an h4 element with the class "red" and the id "highlight"

This is an h4 element with no class, the second clause is a span element

This is an h5 element with no class, the second clause is a span element
This is another h5 element with class "red", the second clause is a span element

Source code