Fixes vavere/htmltidy#24 by expecting for close instead of end