RE: [TECHS] Use of anchor tags to invoke JavaScript

>>Why not:
>>  <a onclick="doSomething();return false;">Action link</a>
>>
>>I don't know what different user agent would do with this.  It is 
>>possible that it wouldn't be in the tab order unless a tabindex was 
>>also added.  Just a thought...
>
>...Adding the tabindex="0" attribute did not solve the problem since 
>older browsers did not include it in the tab order thus there is no 
>keyboard focus.

tabindex="0", by spec, means the same as having no tabindex at all.

<http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex>

>     2. Those elements that do not support the tabindex attribute or
>        support it and assign it a value of "0" are navigated next. These
>        elements are navigated in the order they appear in the character
>        stream.

<http://joeclark.org/book/sashay/serialization/Chapter08.html#p-5465>

I am aware that other researchers at IBM are attempting to rewrite 
the tabindex spec to match Microsoft's contradiction of same, but 
this seems to be a case where the spec must be followed as written.

-- 

     Joe Clark | joeclark@joeclark.org
     Accessibility <http://joeclark.org/access/>
     Expect criticism if you top-post

Received on Wednesday, 17 August 2005 17:03:35 UTC