-
Notifications
You must be signed in to change notification settings - Fork 312
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
Why the names of data attributes transformed into lowser case #406
Comments
It depends on how you are passing these data-attributes.. if you're setting them in HTML it's because HTML is case insensitive as a language, generally it's bad practice to rely on HTML saving the correct case. If you're setting something on a model or app and it's not saving the case correctly, can you please provide an example of the code you're running and I can try digging into it for ya? |
Hi @saponifi3d , thank you for your reply. I mean data passed from controller to view, via Here is an example:
|
What does your HTML look like? Are any of the variables renamed or changed in that? The problem I've run into in the past was when passing through variables was because of HTML being case insensitive. Also, what version of rendr are you using? Are you using rendr-handlebars? |
Sorry for the late response. @saponifi3d
Ande the dependencies are (the updated release)
But you enlightened me somehow when you mentioned that HTML is case insensitive. |
I wonder when the data is passed on from server to front, why the name of data attributes are set to lower case.
Could you please share the consideration for doing it that way?
Thank you very much.
The text was updated successfully, but these errors were encountered: