question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Forms do not submit values for elements that use the "form" attribute

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rbricommented, Feb 15, 2020

You are right, this is a really old issue. Think i can fix this soon.

0reactions
rbricommented, Mar 2, 2020

Your welcome

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found