Open LeaVerou opened 3 years ago
Similar to what #278, this probably should touch on how the attribute is exposed to the DOM, and also for APIs that accept sequences. (and how interop is expected to work - className ergonomics is probably and example that would work as an antipattern.)
See also #270
Consensus from today's breakout:
<input accept>
case)<datalist>
or <source>
elements)
This relates to #269.
For short lists of values, current practice is to use a space or comma separated attribute. Examples:
class
attribute (space separated)<iframe sandbox>
(space separated)<input accept>
(comma separated)For larger lists of values, embedding the list in an attribute should be discouraged. Instead, current practice is to link to another element (e.g.
<input list>
) or to declare the list using child elements, if this is an essential part of the element (e.g. the list of<option>
elements inside<select>
).