[whatwg] Errormessages in forms
Ian Hickson
ian at hixie.ch
Wed Nov 5 07:32:41 PST 2008
On Mon, 21 Jul 2008, Keryx Web wrote:
>
> A simple use case: It is getting quite common to have the following:
>
> <label for="myfield">Instructions
> <strong class="error"> Must be a valid value</strong>
> </label>
> <input id="myfield" etc />
>
> But presentationwise it should be displayed like this:
>
> Instructions [ (input) ] Must be a valid value
What's wrong with?:
<label>
Instructions
<input name="idfield" ...>
<strong class="error"> Must be a valid value </strong>
</label>
> And by adding a new element the following two additional benefits could
> be achieved:
>
> 1. A default hook for errormessages from the UA. I.e. if a field has an
> associated errormsg-element the UA knows exactly where to put its
> messages.
Opera seems to use a pop-up UI, which seems fine, and less likely to
cause problems.
> 2. Assistive technology can use this additional semantics and it is not
> hard to imagine how that could lead to better user experiences.
It's not clear to me how.
--
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