W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] WF2: setCustomValidity()

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 15 Aug 2006 10:03:04 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0608151002250.5340@dhalsim.dreamhost.com>
On Fri, 12 May 2006, Sean Hogan wrote:
>
> A question about the setCustomValidity method:
> The spec states:
> 
>    "If the method's argument is |null| or the empty string, then the
>    flag is reset (indicating that the control is valid)"
> 
> Does this mean that setCustomValidity(null) will always set "validity.valid"
> to "true"? Will it reset all the other validity error-codes to false? Or does
> customError over-ride all the other errors? 

It will only affect the custom validity state. I've clarified the spec. 
Thanks for your input!

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 15 August 2006 03:03:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC