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

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

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 11 Jun 2009 18:57:58 +0000 (UTC)
To: Sean Hogan <shogun70@westnet.com.au>, Simon Pieters <simonp@opera.com>, Anne van Kesteren <annevk@opera.com>
Cc: public-html@w3.org, "Hallvord R. M. Steen" <hallvord@opera.com>, Laurens Holst <lholst@students.cs.uu.nl>
Message-ID: <Pine.LNX.4.62.0906111855050.1648@hixie.dreamhostps.com>
On Sun, 24 May 2009, Sean Hogan 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.
> Perhaps they could be named "altaction", etc. Or even "submitaction", 
> etc.

It's a judgement call, but I have to say that personally I don't really 
like submitAction more than formAction.

On Wed, 27 May 2009, Sean Hogan wrote:
> 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.

That seems like a dangerous way to maintain code...

On Thu, 28 May 2009, Sean Hogan wrote:
> I hope the spec writers aren't presuming to tell the rest of the world 
> what is intuitive.

Actually, yes, that's pretty much our job. :-)

> As for debugging, a real-world debugging scenario could be:
> There's a problem in form-submission!
> Look at the relevant code...
> Why is button.formAction used? I'll just change that to button.form.action and
> see what happens...
> That seems to fix the reported problem, commit the change.
> ... Later ...
> The fix for form-submission has broken something else!
> Hmmm, what did I change? Can't remember... look at the code... looks
> alright...
> Hmmm, what is supposed to happen? Oh, there's a formaction attribute on that
> submit-button...
> Ahhh, the button.formAction property must mirror that attribute. I'll just
> revert the last change and see what happens...
> That seems to fix the latest problem, I'll just commit the change and go back
> to the first issue tomorrow.

That's a frightening way to debug code. I would urge more care.

I do admit that it is likely that this is a common way to write code on 
the Web, though.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 11 June 2009 18:58:35 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:46 UTC