Open
Description
Problem
After adding HTML validation to viewer-sinatra, some attributes had to be removed in order for the validation to pass. The “Search by country name” hint text now is missing from the search input on the homepage as a result of this.
Before:
After:
(Images by @zarino )
Proposed Solution
Since the text input (generated by selectToAutocomplete) uses
copy-attributes-to-text-field
to soak up whatever HTML attributes the source<select>
element had. I guess, a satisfactory solution if we still want W3C compliant markup, would be to add theplaceholder
attribute back in with JavaScript, immediately before we call. selectToAutocomplete()
in main.js.
-- Zarino.
Acceptance Criteria
The hint text is visible again in the search input on the homepage.