I'm using the latest version of Thymeleaf 2.0.11 for a project that must work in Internet Explorer 6. My CSS uses "box model", but in IE6 doesn't render fine. I'm been doing some research (http://en.wikipedia.org/wiki/Quirks_mode) and I think I must active "quirks mode".
I'm my templates I have the following at the very top:
Unfortunately, the current implementation of DOCTYPE output in Thymeleaf actually wants to make sure you don't accidentally put your browser in quirks mode --which is considered always bad--, and that's why DOCTYPE is output at the very beginning of the page no matter where it was at input.