[PATCH] Last version of the "fix label form focus" (59489)

Franck Quélain shift at free.fr
Mon Jul 5 17:48:45 BST 2004


Selon Tobias Anton <TA at ESC-Electronics.de>:

> On Donnerstag, 1. Juli 2004 00:09, bj at altern.org wrote:
> > Hi!
> >
> > Ok, I am beginning to understand how it works.
> > I think this patch should be good enough for committing (at least much
> > better than my 2 previous versions). It also adds support for label
> > accesskey, and improves form input accesskeys (pressing a checkbox
> > accesskey now
> > checks/unchecks it instead of just focusing it).
> >
> > Comments welcome.
> 
> 
> If a label does not have a "for" attribute and does not contain child 
> elements, shouldn't it activate the nearest following input element in 
> document order?
> 
> Tobias
> 
Hi,

No. Label is associate with the form control define in the "for" attribute or
with the form control it contains ( ex : <label>Plop : <input name="quack"
value="42" /> </label> )

See http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1

Franck




More information about the kfm-devel mailing list