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

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

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

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

Sorry Anton for being that late on this.
This should be now fixed.

See https://github.com/HtmlUnit/htmlunit/issues/132

And many thanks for the patch.


---

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

**Status:** open
**Group:** 2.28
**Created:** Wed Dec 20, 2017 12:40 PM UTC by Anton
**Last Updated:** Thu Feb 15, 2018 09:20 AM UTC
**Owner:** nobody
**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.
--===============3083639848237386373==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>Sorry Anton for being that late on this.<br/>
This should be now fixed.</p>
<p>See <a href="https://github.com/HtmlUnit/htmlunit/issues/132" rel="nofollow">https://github.com/HtmlUnit/htmlunit/issues/132</a></p>
<p>And many thanks for the patch.</p>
<hr/>
<p><strong> <a class="alink" 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> open<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> Thu Feb 15, 2018 09:20 AM UTC<br/>
<strong>Owner:</strong> nobody<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>
--===============3083639848237386373==--
--===============3356025965879007019==--


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


--===============4731007886913766383==
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

--===============4731007886913766383==--