-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot specify form=
attribute on form element
#1742
Comments
Can someone please explain this in more detail with a reproduction? I'm willing to look into this and help fix. |
Huh. When I created this issue, I was getting an exception from the browser when attempting to update the A component like this: <script>
let foo = 'foo';
</script>
<form name={foo}></form>
<input bind:value={foo}> produces output that the browser seems to be completely happy with. I'm not sure what's going on or whether this is still an issue. |
Oops. Completely disregard that last comment. I misread my own issue somehow. Hold on... |
Okay, here's what's really going on: The issue arises when compiling a component that has something like |
This is what I got from MDN and I understand what the @Conduitry I see you using two terms I guess updating the |
While digging into this issue, as noticed by @Conduitry , it seems that Also doing some testing with weather or not the same behavior can be achieved using So I guess the solution is likely to just remove the |
Specifying the
form=
attribute on form element results in code that attempts to set the.form
property on the element, which throws an error as that is read-only.I'm not sure what the desired behavior here is. The immediately obvious path is to just not treat
form=
specially on form elements, and just generatesetAttribute
calls for this. But I don't know whether that's going to do the same thing as having aform=
attribute on an element in regular old HTML.The text was updated successfully, but these errors were encountered: