W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] Errormessages in forms

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 10 Nov 2008 20:50:37 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0811102049080.1237@hixie.dreamhostps.com>
On Wed, 5 Nov 2008, Old?ich Vete?n?k wrote:
> 
> It would be awesome if something like this would be possible:
> 
> <label for="idfield">Instructions</label>
> <input name="idfield" id="idfield">
> <error for="idfield">Must be a valid value</error>

You can use <output> for this purpose at this point.


> And to further enhance this futuristic view:
> 
> <label for="idfield">Instructions</label>
> <input name="idfield" id="idfield">
> <hint for="idfield">Type in dd-mm-yyyy format</hint>
> <error for="idfield">Must be a valid value</error> (if error is true)
> 
> What do you think about it? :)

This seems excessively complicated and I'm not convinced there is really a 
problem to solve here. Just using plain text seems enough.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 10 November 2008 12:50:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC