4 ms·
does it also support the official HTML5 syntax[1] for placeholder attributes in select elements? I'd be impressed if it does. I can't parse that sentence in th
by edoloughlin 15y ago
does it also support the official HTML5 syntax[1] for placeholder attributes in select elements?
I'd be impressed if it does. I can't parse that sentence in the spec.
- thristian 15y agoThe markup it describes is basically: <select required> <option value="">Placeholder Text Here</option> <option value="1">first real option</option> </select> The rest of the text basically says that select elements that are not required don't have placeholder text; that select elements that allow multiple selections don't have placeholder text; multi-line select elements don't have placeholder text, and that if the first option is inside an optgroup element, it doesn't count as placeholder text.