-
Notifications
You must be signed in to change notification settings - Fork 53
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
Follow standards for javascript "data-" attribute names #47
Comments
…can't see a place where the attribute is actually used)
…ph-id and data-sentence-id
I agree it's a judgement call. In my opinion, using the interfaces that are specific to custom attributes ( In case that's a change you want to make, I tested everything as best I could and submitted a PR. |
Merged #79 . |
Launched in 3.0.8. |
Currently,
lute/templates/read/textitem.html
has the following:This doesn't follow javascript standards, e.g outlined at https://dev.to/dev-harbiola/custom-data-attributes-in-html-a-guide-to-data--373.
These could be changed as follows:
tid => data-tid (or data-text-id)
lid => data-lid (or data-lang-id)
paraid => data-para-id
data-se-id or data-sentence-id
data-status-class
data-order
data-wid or data-word-id
I believe that these are only referenced in lute/static/lute.js:
I don't know if this work is worth it ... following standards is good, but not critical. Is this make-work only?
The text was updated successfully, but these errors were encountered: