Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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>


<input> has been an empty element right from the start, meaning it mustn’t have any children. (And the HTML syntax enforces this.)


AFAIK <input> is hardcoded as self-closing in the html5 parser.


Hm interesting... presumably this could be changed though? We aren't locked to <input> following one convention, are we?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: