Skip to content

th:attr lowercases attribute names in XML mode - workaround? #897

Discussion options

You must be logged in to vote

Why is the xml lowercased?

The real answer to this is: it isn't. When viewed from a web browser DOM this is the case because the content type was set incorrectly to text/html, but a curl request on the endpoint exposing this xml file confirmed that the attribute names are properly cased.

For others benefit, see caseSensitive attribute in TemplateMode.java for case insensitivity set true on HTML template mode, but false on all others (including XML).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshua-koehler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant