logo       

Re: label for checkbox: msg#00008

web.dojo.devel

Subject: Re: label for checkbox

This is a patch of what I proposed, please review it

with this patch, if the other syntax is used, when mouseover the label
(even on the text), the image on the checkbox will be changed
accordingly

(some extra spaces are removed in this patch as well)

thanks

On 9/29/06, LiuCougar <liucougar@xxxxxxxxx> wrote:
Hi Becky,
Bill told me I should consult with you about this:

in Checkbox.js:
postCreate: function(args, frag){
// find any associated label and create a labelled-by
relationship
// assumes <label for="inputId">label text </label>
rather than
// <label><input type="xyzzy">label text</label>

I would like to add support for the syntax as well:
<label><input type="xyzzy">label text</label>

because I do not want to have an id specified for the widget (I use
checkbox in a widget template, and yes it is the new widgetsInTemplate
stuff)

Do you think this syntax is ok? Will it confuse screen reader?

If you are ok with it, I will go ahead and add the support.

Thanks,
Cougar
--
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage



--
http://liucougar.scim-im.org
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage

Attachment: a.patch
Description: Binary data

_______________________________________________
dojo-contributors mailing list
dojo-contributors@xxxxxxxxxxxxxxx
http://dojotoolkit.org/mailman/listinfo/dojo-contributors
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise