a few more improvements for invalid tag handling in Mojo::DOM::HTML