W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2014

RE: Form submission participation (was Re: Goals for Shadow DOM review)

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Thu, 20 Feb 2014 22:51:12 +0000
To: Jonas Sicking <jonas@sicking.cc>, Webapps WG <public-webapps@w3.org>
Message-ID: <0b6471357fc04187a9f0ef187fb1eb0b@BN1PR05MB325.namprd05.prod.outlook.com>
From: Jonas Sicking <jonas@sicking.cc>

> I'm not sure if we should return a dictionary or an array. Keep in mind that a form control can have multiple values. This is something used by both <input multiple> and <select multiple>. Also keep in mind that order matters as many servers are sensitive to order.

I wonder if the existing `FormData` objects have something to say here? Could we use them? Are they constructible yet? (Are the constructors as easy to use as the syntaxes you propose?) Presumably the spec for those encapsulates most of the complexities involved here already.

> The other thing is that it would be great if elements that wanted to participate in submission didn't have to manually call addParticipant. This could be done by having the <form> element attempt check for a .formData property on any descendant that was added, and add any elements that has such a property as a participant automatically.

I really like this idea and the subsequent paragraphs in which you flesh it out. Makes great sense to me.

Received on Thursday, 20 February 2014 22:51:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:22 UTC