Re:HTML Data List Element
by whoisthemachine on Wednesday June 23, 2021 @08:49AM
(#27603881)
Yeah it's kind of awkward. My first assumption would have been that it would have had semantic similarities to a `<select>`, ie
[ Parent
| on HN ]
Re:HTML Data List Element
by chrismorgan on Wednesday June 23, 2021 @09:04AM
(#27604064)
<input> has been an empty element right from the start, meaning it mustn’t have any children. (And the HTML syntax enforces this.)
Re:HTML Data List Element
by CodesInChaos on Wednesday June 23, 2021 @08:50AM
(#27603895)
AFAIK <input> is hardcoded as self-closing in the html5 parser.
Re:HTML Data List Element
by whoisthemachine on Wednesday June 23, 2021 @12:44PM
(#27606578)
Hm interesting... presumably this could be changed though? We aren't locked to <input> following one convention, are we?