mirror of
https://github.com/cbracco/html5-test-page.git
synced 2025-08-04 21:27:24 +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>
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user