I can’t recall where in the doc I read it, but you can’t type things like
<input type="range" id="points" name="points" min="0" max="10"></input>
because “type” gets seen as a ReScript keyword or something. So there’s a hack for this, and instead you write
<input type_="range" id="points" name="points" min="0" max="10"></input>
with an underscore after the type_
.
Fine. I’ve done that. But if I want a label
for some input, then (according to this) I should be typing
<label for="birthdaytime">Birthday (date and time):</label>
<input type_="datetime-local" id="birthdaytime" name="birthdaytime">
and that for
attribute again gets mistaken for a keyword. And changing it to for_
doesn’t seem to work. I also, looking at a very long arg-list presented in an error message, tried replace for
with itemID
as the thing that sounded the most likely, but it failed.
Are labels just stupid and no one uses them, so no one encountered this for =
problem, or did I miss something in the doc?