tabindex=bogus (detailed review of Semantics)

(This is part of my detailed review of the Semantics and structure of HTML  
elements section.)

In Firefox, any element that has a tabindex attribute specified,  
regardless of its value, receives focus when it is clicked. Is this to be  
considered a bug in Firefox or should the spec be updated to reflect this?

The spec currently says:

    If the attribute is specified, it must be parsed using the rules for
    parsing integers. If parsing the value returns an error, the attribute
    is ignored for the purposes of focus management (as if it wasn't
    specified).

Demo:

    http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cstyle%3E%3Afocus{outline%3Asolid}%3C/style%3E%3Cp%3E%3Cbutton%20tabindex%3D-1%3Eclick%20me%20(1)%3C/button%3E%3Cp%3E%3Cbutton%20tabindex%3Dbogus%3Eclick%20me%20(2)%3C/button%3E%3Cp%20tabindex%3D-1%3Eclick%20me%20(3)%3Cp%20tabindex%3Dbogus%3Eclick%20me%20(4)

-- 
Simon Pieters
Opera Software

Received on Thursday, 26 July 2007 15:47:02 UTC