[PATCH] Last version of the "fix label form focus" (59489)
Tobias Anton
TA at ESC-Electronics.de
Tue Jul 6 13:34:28 BST 2004
On Dienstag, 6. Juli 2004 14:58, bj at altern.org wrote:
> > 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?
>
> That's what I initially did for the patch, but the problem is that the
> label can be placed before or after the corresponding input. For example, a
> poll can have the radio input buttons on the right or on the left of the
> text labels. So if we activate the nearest following input, we could end up
> activating next line's input which would be completely wrong.
I agree; in that case, we should perhaps better do nothing than doing it The
Wrong Way. On the other hand, web sites could rely on a certain fallback
behaviour. Do you know how other browsers behave?
> Let's hope that if more browser support the label form focus, webmasters
> will become more careful with the <label> tag.
>
> By the way, shall I get somebody else's approval before committing my patch
> ?
Good question.
I think that's not necessary. Go ahead and commit.
If somebody objects later on, you can blame me :-)
Cheers
-- Tobias
More information about the kfm-devel
mailing list