W3C home > Mailing lists > Public > public-html@w3.org > July 2007

tabindex=bogus (detailed review of Semantics)

From: Simon Pieters <simonp@opera.com>
Date: Thu, 26 Jul 2007 17:46:38 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.tv2wr0apidj3kv@hp-a0a83fcd39d2>

(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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT