Fix for invalid html: <span>...<span> should be <span>...</span>

Without this fix nodeunit does not function properly when running in a browser using a xhtml mimetype.