Added HTML validity assertion to tests and implemented ability for elements to indicate if the end tag should be output (so that elements like input can suppress the end tag per HTML5).