W3C home > Mailing lists > Public > public-html@w3.org > January 2008

[WF2] backwards compatibility with values of custom required attributes

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Wed, 16 Jan 2008 14:04:01 +0100
To: public-html@w3.org
Message-ID: <op.t40w8zc6a3v5gv@hr-opera.oslo.opera.com>

[I recently posted a couple of WF2-related messages on the WHATWG list,  
but Chaals asked me to post them here instead. This is the first one:]


Hi,
some code from airgreenland.com reminded me to bring up the discussion
of how to treat values of "required" attributes:

     <input name="CONTROLGROUPCONTACT$ContactInputView$TextBoxAddressLine2"
type="text" maxlength="52"
id="CONTROLGROUPCONTACT_ContactInputView_TextBoxAddressLine2"
class="w10" required="false" requiredError="Street address Field 2 is
required.">

I've seen this before (and I'm sure many of you will recognise the
ASP.NET stuff). The problem is that <input required="false"> is
treated as <input required> by WF2 because the "false" value isn't
recognised. I think WF2 needs to do something sensible to ensure
backwards compatibility - ASP.NET form validation is going to cause us
serious problems otherwise.


-- 
Hallvord R. M. Steen
Core QA JavaScript tester, Opera Software
http://www.opera.com/
Opera - simply the best Internet experience
Received on Wednesday, 16 January 2008 13:03:34 UTC

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