WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Loremy
Date: Nov 11, 2009 4:45PM


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.

Thanks again,

Loremy


> The problem is actually present in all modern browsers except IE8. Go
> to
> jQuery's forum and see if there is a fix. Here's what I think is
> happening
> since it does work fine in IE8 and it also works right in Firefox with
> script disabled...
>
> Mozilla and Safari/Chrome (KHTML) are notorious (at least among
> scripters)
> for taking rendering shortcuts in order to give the illusion of being
> a
> faster browser. This often wreaks havoc with advanced scripts and
> authors
> sometimes program workarounds. I know we do. Check your jQuery scripts
> for
> any unload functions or calls.
>
> --
> Al Sparber - PVII
> http://www.projectseven.com