mirror of
https://github.com/cbracco/html5-test-page.git
synced 2025-08-05 05:37:25 +02:00
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:
@@ -521,9 +521,9 @@
|
|||||||
<label for="idl">Datalist</label>
|
<label for="idl">Datalist</label>
|
||||||
<input type="text" id="idl" list="example-list">
|
<input type="text" id="idl" list="example-list">
|
||||||
<datalist id="example-list">
|
<datalist id="example-list">
|
||||||
<option value="Example #1">
|
<option value="Example #1" />
|
||||||
<option value="Example #2">
|
<option value="Example #2" />
|
||||||
<option value="Example #3">
|
<option value="Example #3" />
|
||||||
</datalist>
|
</datalist>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
Reference in New Issue
Block a user