-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with template mode LEGACYHTML5 #23
Comments
I don't think you're missing anything there, and I'll admit I haven't tested (and don't have any tests) for the LEGACYHTML5 template mode, so you've likely stumbled across something I didn't know about. I'll try to replicate the problem (a content page that ends-up in the |
I've found out that NekoHTML is responsible for adding Do you use Maven? If so, I've uploaded a version 1.1.2-SNAPSHOT of the Layout Dialect that includes this fix. Can you test that out and see if it works for you? If you don't use Maven, let me know and I'll find a place to upload a ZIP of that snapshot version for you to download. |
Thank you for looking into it and providing a fix. I do use Maven. I'll test it as soon as I can and I'll get back to you. |
Did you manage to get this one tested? |
Sorry for not getting back to you earlier as I've been working on a different project. The snapshot doesn't seem to be available in the maven repository. Can you double check? Alternatively, you can also send me the link where I can download the JAR (I've tried the link on https://github.com/ultraq/thymeleaf-layout-dialect/tree/dev but it's not working either). Thanks! |
I probably uploaded to the wrong repository. I sent it to this one here: https://oss.sonatype.org/content/repositories/snapshots/ |
Thank you for the link. I just did a couple of tests and at first glance it seems to work fine. Well done! What side effects do you think there could be? Anything in particular I should pay attention to? I suppose the original check was put there for a reason. Thank you again for the quick fix! |
If there is any side effect, it's that developers can now put So long as everyone follows the instructions in the readme, they should be fine. If they don't, then I can't be held responsible for what might happen :) |
When changing the template mode from HTML5 to LEGACYHTML5 I keep getting the following exception:
In my content page, the
layout:decorator
attribute does appear in the root element and the page is processed correctly as long as the template mode is set to HTML5. I have tried to debug the source code and it seems thatis always true as the parent is never the document but rather the enclosing element (in my case
<body>
).The reason I need to use LEGACYHTML5 is that I need to use the
th:utext
attribute to include text which may contain HTML formatting, which is not necessarily XML-formed (i.e. it contains elements like<br>
without a closing tag).Is the layout dialect incompatible with the LEGACYHTML5 mode or am I missing something?
The text was updated successfully, but these errors were encountered: