[dev] RFC: Horde_Form Rewrite's XHTML Output

Matt Warden mwarden at gmail.com
Sat Aug 6 18:10:35 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Patrice,

Thanks for your feedback. See below:

Patrice Levesque wrote:
>     1) Embed form fields in their labels when possible, meaning instead
>     of:
> 
>     <label for="myid">mylabel</label><input id="myid" />
> 
>     use something like:
> 
>     <label for="myid">mylabel<input id="myid" /></label>
> 
>     I read a bit ago that some screenreaders prefer it that way; I have
>     nothing to back this right now but I can't see why you'd resist :)

I have no reason to resist other than I have never seen it this way. I
will try to find some information on what you are referring to and I
will likely change it to your suggestion.

>     2) For "required" images, the alt="*" seems perfect to me because
>     it's an alternative to the shown bullet.  title="*" though is
>     irrelevant, the title attribute should not be used to replace the
>     image but to supply extra information.  title="Required field"
>     might be closer to what we want.

Good point. That's how it was in the original Horde_Form, but I agree
it should be changed.

>     3) Radio buttons should have one selection at all times; I don't

Why is this? What if it is not a required field? It seems to me this
would hurt usability as one might have a value submitted that one did
not intend, if they don't notice something is already selected.

>     3.5) I may be wrong about this, but the descriptions that are shown
>     at the very right should be reproduced in the corresponding input
>     field title, meaning that for the "Enum" example, it should look
>     like this:
> 
>     <select name="opciones" id="opciones" title="Simple description">
> 
>     If not, there is no semantic relation whatsoever between the
>     description and the form field.

Do you have any ideas on how to relate the notes semantically? (Aside
from presentation, I mean. I already have some ideas on how to
increase the visual relation better.)

Thanks again for taking a look.

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFC9V+LAQ0d4HGyPE8RAtfQAJ9nC81NZidanM2Pjcg6nNf06mEbZwCfSPRn
9xBJNSnUeUK2AUS5UB7pe6o=
=nv8q
-----END PGP SIGNATURE-----


More information about the dev mailing list