Closed Bug 244143 Opened 21 years ago Closed 21 years ago

Mozilla stops at control with tabIndex="-1"

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 56809

People

(Reporter: mattias.waldau, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 In IE you can prevent TAB from stopping at controls with tabIndex="-1". Mozilla handles tabIndex="-1" the same way as if tabIndex isn't set, ie it first loops through all controls with tabIndex set, and the start with then ones with tabIndex="-1". I do not know if tabIndex=-1 is an IE-specific trick. I didn't find anything about it in http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex but it is very useful. Reproducible: Always Steps to Reproduce: 1. Open http://www.xleverywhere.com/mozilla/tabindex/tabindex.htm 2. Press tab and notice it stops at the 2nd "10" 3. Expected Results: It should have skipped the 2nd "10" Are there any workarounds?
-1 is an invalid tabindex value per the spec. http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.11.1 So we don't do what IE does. It's their weird thing. *** This bug has been marked as a duplicate of 56809 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
I think my URL shows a good example where it is stupid to stop at all form controls. Therefor, I think that IE has a good solution to this.
You need to log in before you can comment on or make changes to this bug.