Description
Describe the bug
When binding to inputs in nested forms, the binding fails and a runtime error is thrown:
<form>
<form>
<input bind:value />
</form>
</form>
Although nested forms are not valid according to the HTML spec, the error should be either friendlier or not throw at all since it worked just fine in Svelte 4.
Reproduction
Logs
Cannot read properties of null (reading 'addEventListener')
in App.svelte
System Info
running Svelte compiler version 5.0.0-next.151
Severity
blocking an upgrade