<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13054</bug_id>
          
          <creation_ts>2011-06-25 07:48:06 +0000</creation_ts>
          <short_desc>WF3: Allow one input to be part of multiple forms</short_desc>
          <delta_ts>2011-08-14 06:43:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>w3cbugs</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50303</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-06-25 07:48:06 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/html5/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
I am referring to this section of the HTML5 spec:

http://www.w3.org/TR/html5/association-of-controls-and-forms.html#association-
of-controls-and-forms

Decoupling form controls and the form element is a good first step to
improving the flexibility of web forms, but I think we should go one step
further: allowing a single form-associated element to be associated with
multiple forms. I propose that there may be circumstances where application
developers may want to create a form containing several inputs, but to also
associate sub-groups of those inputs with another form.

I propose that the syntax of the form attribute be modified to work like the
class attribute does. rather than containing a single form id, the form
attribute should be a space-separated list of form ids.

I recognize some difficulties in this approach, for example:
- Submit inputs and buttons obviously cannot attempt to submit multiple forms
at once, so the proposed syntax should be invalid for those elements.

- When clearing a form which contains an input that is associated with a
second form, it is unclear what the expected behavior of that input would be.
Should the input be cleared, or remain populated?

I think good solutions can be found for these problems, and, if there is
interest among the group, this new syntax could be adopted and may prove
useful to many developers.

Thanks for reading. I hope I made my case well. 

Posted from: 71.61.178.237
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.24 Safari/535.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50304</commentid>
    <comment_count>1</comment_count>
    <who name="Nicholas Sloan">w3cbugs</who>
    <bug_when>2011-06-25 07:57:11 +0000</bug_when>
    <thetext>Here is a short use case:

I have a shopping cart page with an input for each item in my cart which allows me to update the quantity of that item. I have a form for each of these inputs that points to a script that saves the quantity of the item in my cart. I also have all of the inputs associated with a form that saves all of the quantity values (and possibly some other fields) and directs the user to a checkout page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50307</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-06-25 09:52:38 +0000</bug_when>
    <thetext>This used to be in Web Forms 2.0 (and Opera). We dropped it to make the specification simpler. It also gave problems with radio buttons and checkboxes, if I remember correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50330</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-26 22:19:21 +0000</bug_when>
    <thetext>Not sure if the use-case is compelling, particularly since it could easily be done by script.  Generally if something is doable by script, we require that it be very commonly needed before we&apos;re willing to add a declarative way to do it.  I encourage you to provide as many distinct, common use-cases as possible to make a case for your proposal.  The one you gave is a good start.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53511</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:14:34 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54928</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-14 06:43:29 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: As Anne says, we actually did this a few years ago. It was more trouble than it&apos;s worth and really there aren&apos;t as many use cases as you&apos;d think. In practice you generally end up having to have script anyway so it&apos;s no big loss.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>