-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
HTML5 custom hyphenated attribute #807
Comments
aliuk2012
added a commit
to ministryofjustice/correspondence_tool_staff
that referenced
this issue
Oct 11, 2018
Users reported that they were not able to upload files. What was happening is that dropzone was not displaying the filename and file size for the file that was uploaded. The cause of this issue was from us recently updating slim-rails and slim changed the way html data attributes were output. This meant that dropzoneJS could not find the right attributes to update and display. slim-template/slim#807 slim-template/slim#820 someone else reported this issue to slim and suggested adding a configuration option to allow underscore to hyphen conversion to still take place. This commit updates dropzoneJS to the latest version.
Hi @cuihq @stonean In my app I found out that the changes are working as expected for simple HTML tags where we use data attributes like this - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issues:
slim code:
html expect:
html actual:
Reason:
The custom attributes are all
underscore
.Do not need to switch between
underscore
anddasherize
(camelize
).So compatibility is better.
Validate:
validate attribute
data-object_id
:Code:
slim/lib/slim/splat/builder.rb
Line 94 in 5cc796c
modified code:
Test:
Test code that needs to be changed:
slim/test/core/test_html_attributes.rb
Line 111 in 5cc796c
The text was updated successfully, but these errors were encountered: