[whatwg] Errormessages in forms

Ian Hickson ian at hixie.ch
Mon Nov 10 12:50:37 PST 2008


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list