[HtmlUnit] [htmlunit:bugs] #1937 'Form' attribute is not supported for input element

RBRi via HtmlUnit-develop <[email protected]> Mon, 02 Mar 2020 11:57:59 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/1937/ff28a6574ef76da1a105a50b2f807103b327341b.bugs@htmlunit.p.sourceforge.net>
This is a multi-part message in MIME format.
--===============4214779996879517415==
Content-Type: multipart/related;
 boundary="===============2384546986046023505=="

This is a multi-part message in MIME format.
--===============2384546986046023505==
Content-Type: multipart/alternative;
 boundary="===============9119026796057945835=="
MIME-Version: 1.0

--===============9119026796057945835==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

- **status**: open --> closed
- **assigned_to**: RBRi



---

** [bugs:#1937] 'Form' attribute is not supported for input element**

**Status:** closed
**Group:** 2.28
**Created:** Wed Dec 20, 2017 12:40 PM UTC by Anton
**Last Updated:** Mon Mar 02, 2020 11:57 AM UTC
**Owner:** RBRi
**Attachments:**

- [form-attribute.patch](https://sourceforge.net/p/htmlunit/bugs/1937/attachment/form-attribute.patch) (9.2 kB; application/octet-stream)


> Attribute specifies the form element the <input> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document.

So with 'form' attribute it is should possible:
- to have input element outside the form. (Should be submitted with form)
- to have input element inside the from(1) which belongs to another form(2) (Should not be submitted with form (1))

More info - [Association of controls and forms](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form)

Please find tests and fix in attachment



---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============9119026796057945835==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><ul>
<li><strong>status</strong>: open --&gt; closed</li>
<li><strong>assigned_to</strong>: RBRi</li>
</ul>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/htmlunit/bugs/1937/">[bugs:#1937]</a> 'Form' attribute is not supported for input element</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> 2.28<br/>
<strong>Created:</strong> Wed Dec 20, 2017 12:40 PM UTC by Anton<br/>
<strong>Last Updated:</strong> Mon Mar 02, 2020 11:57 AM UTC<br/>
<strong>Owner:</strong> RBRi<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/htmlunit/bugs/1937/attachment/form-attribute.patch">form-attribute.patch</a> (9.2 kB; application/octet-stream)</li>
</ul>
<blockquote>
<p>Attribute specifies the form element the &lt;input&gt; element belongs to. The value of this attribute must be the id attribute of a </p>&lt;form&gt; element in the same document.<p></p>
&lt;/form&gt;</blockquote>
<p>So with 'form' attribute it is should possible:<br/>
- to have input element outside the form. (Should be submitted with form)<br/>
- to have input element inside the from(1) which belongs to another form(2) (Should not be submitted with form (1))</p>
<p>More info - <a class="" href="https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form" rel="nofollow">Association of controls and forms</a></p>
<p>Please find tests and fix in attachment</p>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============9119026796057945835==--
--===============2384546986046023505==--


--===============4214779996879517415==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4214779996879517415==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop

--===============4214779996879517415==--