Close option tags in datalist

While your browser might be smart enough to figure it out, `<option>` tags can have children and need to be closed. Some apps/servers will have trouble with it otherwise (for example, this caused vitejs to crash).
This commit is contained in:
Connor Low
2021-04-17 21:06:17 -07:00
committed by GitHub
parent 90c0472293
commit 8983ac1be5

View File

@@ -521,9 +521,9 @@
<label for="idl">Datalist</label>
<input type="text" id="idl" list="example-list">
<datalist id="example-list">
<option value="Example #1">
<option value="Example #2">
<option value="Example #3">
<option value="Example #1" />
<option value="Example #2" />
<option value="Example #3" />
</datalist>
</p>
</fieldset>