Forms do not submit values for elements that use the "form" attribute
See original GitHub issueThe form
attribute on the following textarea
element should mean that the element’s value is submitted when the form is submitted:
<html>
<body>
<textarea form="myForm" name="data">Some data</textarea>
<form id="myForm">
<button type="submit">Submit</button>
</form>
</body>
</html>
It looks like HtmlForm.getSubmtitableElements()
doesn’t look for elements outside the form whose form
attributes match the ID of the form, though, so the submitted form contains no data.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Forms in HTML documents - W3C
This attribute specifies which HTTP method will be used to submit the form data set. Possible (case-insensitive) values are "get" (the default) and...
Read more >The Form element - HTML: HyperText Markup Language | MDN
This value can be overridden by a formaction attribute on a <button> , <input type="submit"> , or <input type="image"> element. This attribute ......
Read more >Stop an input field in a form from being submitted
According to the w3: To be included in a form's submission. a field (form element) must be defined within the form element, and...
Read more >HTML5 Forms: Value Attribute - Wufoo
The value attribute is used to set the value of <input> elements: it defines ... value in the name/value pair that is sent...
Read more >The form element in depth - web.dev
When you submit a <form> , the browser checks the <form> attributes. The data is sent as a GET or POST request according...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You are right, this is a really old issue. Think i can fix this soon.
Your welcome