[Bug 11535] tabIndex IDL default is −1 for elements that are not focusable, but if the tabindex value is negative integer, the element can still be focused.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11535

henry.fai.hang.chan@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |henry.fai.hang.chan@gmail.c
                   |                            |om

--- Comment #1 from henry.fai.hang.chan@gmail.com 2010-12-11 11:38:53 UTC ---
Statement 1:
"If the [tabindex attribute] value is a negative integer

    The user agent must allow the element to be focused, but should not allow
the element to be reached using sequential focus navigation."

Statement 2:
"The tabIndex IDL attribute must reflect the value of the tabindex content
attribute. Its default value is 0 for elements that are focusable and −1 for
elements that are not focusable."

contradiction?

it would be better if non-focusable elements had an tabIndex IDL attribute as
NULL instead:

NULL: cannot be focused (and cannot be in document.activeElement)
NEGATIVE: can be focused, not in sequence
0: can be focused, append to end of sequence
POSITIVE: can be focused, start of sequence

this better corresponds to the current behavior of Opera and firefox.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 11 December 2010 11:38:55 UTC