The problem I am running into is I am using Thymeleaf in combination with other front end build tools (gulp and company)
What is happening is I am injecting my combined and minified scripts/css into the thymeleaf templates. Once this is done I am getting a SAX parse exception saying link tags require a closing </link> tag.
If I try to add a self closing tag <link /> it is getting stripped out by my build tools and made to be just <link>. I cant really file a bug report against these other tools since actually with HTML5 the self closing tag is redundant.
Is there a way to make Thymeleaf not throw errors if self closing tags are not used (when mode is HTML5)
Thanks for taking the time to respond. I did actually see that shortly after I posted. I opted for fixing it with a regex replace on that particular HTML file further down the gulp pipeline, rather than using the legacy mode. For the most part I like the validation that is provided it just bit me in this particular case it seems.
Can you expound a little on how Thymeleaf 3 will be different in the way it handles this?