3 ms·
Yeah it's kind of awkward. My first assumption would have been that it would have had semantic similarities to a `<select>`, ie <input type="datalist"> <
by whoisthemachine 5y ago
Yeah it's kind of awkward. My first assumption would have been that it would have had semantic similarities to a `<select>`, ie
<input type="datalist">
<option>a</option>
</input>
- CodesInChaos 5y agoAFAIK <input> is hardcoded as self-closing in the html5 parser.
- whoisthemachine 5y agoHm interesting... presumably this could be changed though? We aren't locked to <input> following one convention, are we?
- chrismorgan 5y ago<input> has been an empty element right from the start, meaning it mustn’t have any children. (And the HTML syntax enforces this.)