-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
The following WHATWG-spec-compliant code causes an error in Svelte 5 but not in Svelte 4
<select>
<option value="0">The</option>
<hr>
<option value="1">bug</option>
</select>Thre is even an example of using hr as an separator in https://html.spec.whatwg.org/#the-select-element:

Reproduction
Logs
<hr> is invalid inside <select>System Info
Does not matterSeverity
annoyance
Prinzhorn and theodorejb
Metadata
Metadata
Assignees
Labels
No labels