-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use placeholder
attribute on input elements for placeholder text (instead of value
attribute)
#3133
Comments
jenlampton
pushed a commit
to jenlampton/chosen-1
that referenced
this issue
Aug 15, 2022
5 tasks
While this is fixed in Chosen, here is an external solution I developed for my project:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chosen puts the Placeholder text into the
value
attribute on the input elements, instead of in theplaceholder
attribute. It still renders as though it was a placeholder.I'm using the localize.js service for translation on several websites. This service specifically searches for placeholder attributes and translates those, so that all visible text on the page can be translated. The localize script is not able to recognize the placeholder text, because it's not in the placeholder attribute, so these values are not properly translated.
Is there some reason the
placeholder
attribute was not used for its intended purpose? Does theplaceholder
attribute not work as expected?I would like to propose that Chosen switch back to using attributes as they were intended to avoid this problem, and similar conflicts with other projects or systems that are expecting standard markup.
The text was updated successfully, but these errors were encountered: