WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: jQuery: link focus lost in FF 3.5.5 whenfollowinglinkand hitting backspace key

for

From: Al Sparber
Date: Nov 11, 2009 5:35PM


From: "Loremy" < <EMAIL REMOVED> >
> Update first:
> Seems I have pinned down the problem to the jQuery version...
> I have just tested with several older versions (1.3.min, 1.2.6.min, and
> 1.2.min, and it works with the latter!
> With jquery-1.2.min.js enabled, link focus is still there after coming
> back!
> We'll see if the developers can provide help...
>
>
> Hi Al,
>
> Thanks for your answer!
>
> I see the same is happening on your website (interesting products --
> didn't know them so far), e.g.
> at http://www.projectseven.com/products/index.htm.
>
> With js disabled, I tab to the "Extensions" link in the top menu, follow
> the link and, after hitting the backspace key, still have the link focus
> on "Extensions".
> However, with js enabled, link focus on "Extensions" is lost when I get
> back.
>
> With jQuery and Firefox being so widespread nowadays, this really seems
> to be a serious accessibility bug to me. I guess I'll have to
> register at jQuery's forum to ask the developers.
>
>> The problem is actually present in all modern browsers except IE8.
>
> When testing, I didn't notice this problem with Opera 9.5.1 (haven't
> installed the latest version yet), nor with IE7 (IE Tester) and, as I
> said, with my native IE8.
>
> BTW, I found one exception, where jQuery version 1.1.3.1 is enabled and
> focus doesn't get lost on page change, so maybe it really has something
> to do with the combination of Firefox and the latest version of jQuery.
> Maybe the developers can give us help in this respect.

You're welcome. In our site, it's due to this little script:
//Fix Firefox backButton Stupidity
if(window.addEventListener){window.addEventListener("unload",P7_FFfix,false);}
function P7_FFfix(){return;}

Unfortunately, the bug is a Firefox (and Safari/Chrome) one so our choice is
to rewrite our scripts or work around their deficiencies. If we do nothing,
then our scripts will not works correctly, which is probably worse -
especially in our line of business. We thought we'd give them a few "dot"
releases to fix it but they have not yet. I think you'll find most major
sites, including Adobe.com and Yahoo.com to have this "issue".

I would also consider contacting Mozilla as well.

--
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Menus | Galleries | Widgets
http://www.projectseven.com/go/apm
An Accessible & Elegant Accordion