|
Posted by moosus on 11/24/06 01:01
Thanks everybody for your input
.... Good old IE always ready to stuff things up
in article bzd9h.58275$NQ1.27974@reader1.news.jippii.net, Jukka K. Korpela
at jkorpela@cs.tut.fi wrote on 23/11/06 7:09 PM:
> Scripsit Toby Inkster:
>
>>> Can you nest input tags insde of label tags and do away with the for
>>> attribute?
>>> <p><label>Comments:<textarea name="textareaName" rows="4"
>>> cols="40"></textarea></label></p>
>>
>> Yes, but Interner Explorer doesn't support this. (Not sure if it's
>> been fixed in IE7.)
>
> There's no specific support _required_ for the markup. The <label> markup is
> declarative: it just specifies a logical relationship between some text and
> some form field.
>
> But I guess you mean the feature that by clicking on the label text, as
> specified by the <label> markup, the form field can be focused on. This
> feature exists in IE when "explicit" association with for and id attributes
> has been established but not when "implicit" association (by nesting the
> field inside the <label> element - rather illogical if you ask me!) is used.
> This has been changed in IE 7, i.e. it recognizes the "implicit" association
> too.
>
> The feature is not particularly useful for <textarea>, since you can just as
> well or better click on the area itself. It is much more useful for radio
> buttons and checkboxes, which are rather small, creating a problem if you
> are motorically challenged.
>
> On the other hand, the explicit association has worked for a long time and
> keeps working, and it is a more logical approach. The only drawbacks are
> that you need a little more markup and you need to invent unique identifiers
> for the fields.
Navigation:
[Reply to this message]
|