Similar errors I get working with elements like <meta>, <link>, <script>, making it pretty annoying to clean up the existing code to incorporate into enonic XP views.
Are there any restrictions or any clear rules stating what should or should not be used or something to implicitly tell the parser we dont need to worry about closing tags (like probably use doctype implicitly?)
Coming from an XSLT background, I’ve always used XHTML. But there are times when it’s more convenient to just put an attribute with no =“something”.
I’m not that familiar with Thymeleaf backend. Is there a way to implement legacy without altering the XP code? Where is this templateResolver bean? Or do I just add ‘net.sourceforge.nekohtml:nekohtml:1.9.21’ to the build.gradle file? It would be nice if XP had a setting in a config file that could force legacy mode.
This has not been exposed through the library at the moment.
We’re exposing an options parameter for this in the thymeleaf.render(view, model, options) function for 6.10 - hope this will make your day!