W3C home > Mailing lists > Public > public-html@w3.org > May 2009

Re: [WF2] new attributes that often conflict with actual pages

From: Sean Hogan <shogun70@westnet.com.au>
Date: Wed, 27 May 2009 22:18:59 +1000
Message-ID: <4A1D2FB3.3000105@westnet.com.au>
To: Simon Pieters <simonp@opera.com>
CC: public-html@w3.org, Ian Hickson <ian@hixie.ch>, "Hallvord R. M. Steen" <hallvord@opera.com>, Laurens Holst <lholst@students.cs.uu.nl>
Simon Pieters wrote:
> On Sat, 23 May 2009 16:45:36 +0200, Sean Hogan <shogun70@westnet.com.au> wrote:
>
>   
>> Regarding the renamed submit-button attributes: formaction, formmethod,  
>> formtarget, formenctype, etc.
>>
>> These names could be confusing, especially in JS code where  
>> button.formaction resembles button.form.action.
>>     
>
> They are actually camelCased i.e. button.formAction.
>
>
>   
>> Perhaps they could be named "altaction", etc.
>> Or even "submitaction", etc.
>>     
>
> I don't think these are any better.
>
>   
If I didn't know HTML5 Forms and was looking for a bug in code someone 
else wrote and saw button.formAction I would assume it was meant to be 
button.form.action. If I saw button.submitAction then I would google it.
Received on Wednesday, 27 May 2009 12:20:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:03 UTC