Originally Posted by meme
Just don't use HTML Tidy. Seriously, just use Pretty Print Tidy to format your code. You don't need all the changes that HTML Tidy might make.
Yes, I do use Pretty Print Tidy and not Html Tidy but still, Pretty Print Tidy changes <image ... /> into <image>...</image>.