[whatwg] Comments on Web Forms 2.0 Working Draft

On Tue, 29 Jun 2004, Christian Schmidt wrote:
>
> My idea was to add an onvalidate event that a "stupid" UA would just
> trigger whenever the value changes (i.e. oninput + scripted changes). A
> "smart" UA could be optimized so that the onvalidate event is only
> triggered under the above mentioned circumstances, and perhaps it could
> even skip some calls e.g. if the user is typing quickly in a text field.

It's not a bad idea, it's just that onchange is already implemented in
every scriptable UA, so it seems better to recommend using that,
especially if the author is using libraries that fake the WF2 interface
where it is not available.


> Well, I suggest that the spec at least explicitly states that the
> validity state should be constantly maintained.

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 30 June 2004 06:05:51 UTC