workaround a Firefox bug - remove onFocus attribute

By Miernik Last update Jun 3, 2007 — Installed 158 times.

Script Summary: This script is a workaround this Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=240722 If any HTML element has an attibute onFocus="this.blur() it is impossible to navigate past that element with Tab



This script is a workaround this Firefox bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=24...
If any HTML element has an attibute onFocus="this.blur()
it is impossible to navigate past that element with Tab.
For example links like this:
link

This script works around that by removing that attribute.
Currently it is not very clever, because it removes any onfocus
attribute regardless of value. That is sufficient for me, if you need
more fingrained fix, you have to modify this script yourself.
In the variable 'tagnames' is a list of element types this script
touches, you probably can add some more if you encounter this problem
on any other attributes then listed.