W3C home > Mailing lists > Public > wai-wcag-editor@w3.org > April to June 2000

Re: Isn't onFocus REALLY onKeyboardFocus?

From: Ian Jacobs <ij@w3.org>
Date: Thu, 13 Apr 2000 09:59:03 -0400
Message-ID: <38F5D2A7.841026F2@w3.org>
To: Bruce Bailey <bbailey@clark.net>
CC: w3c-wai-ig@w3.org, wai-wcag-editor@w3.org
Bruce Bailey wrote:
> 
> In light of recent discussions, this excerpt from the techniques document
> caught my eye:
> http://www.w3.org/TR/WAI-WEBCONTENT-TECHS/#device-ind-events
> 
> <BLOCKQUOTE>
> Use application-level event triggers rather than user interaction-level
> triggers.  In HTML 4.0, application-level event attributes are "onfocus",
> "onblur" (the opposite of "onfocus"), and "onselect".  Note that these
> attributes are designed to be device-independent, but are implemented as
> keyboard specific events in current browsers.
> </BLOCKQUOTE>
> 
> >From recent discussions, am I correct to understand that the last sentence
> above is a LIE?  That, in fact, PER THE FORMAL 4.01 SPECIFICATIONS, onFocus
> is DEFINED to be keyboard specific?

From section 18.2.3 of HTML 4.01 [1]:

  "The onfocus event occurs when an element receives focus either by the 
   pointing device or by tabbing navigation."

I don't believe that "tabbing navigation" is required to be accomplished
by
any particular device such as the keyboard. Thus, the quote from WCAG
1.0 
seems correct to me. Have I missed something?

 - Ian

[1]
http://www.w3.org/TR/1999/REC-html401-19991224/interact/scripts.html#events

>  And that MSIE 4+ (for example) handling
> of onFocus is perfectly in keeping with the specifications?
> 
> There is also the problem that the formal specifications allows the use of
> onMouseOver MUCH more liberally than onFocus...
> 
> This might belong on the GL or ER list.

-- 
Ian Jacobs (jacobs@w3.org)   http://www.w3.org/People/Jacobs
Tel:                         +1 831 457-2842
Cell:                        +1 917 450-8783
Received on Thursday, 13 April 2000 09:59:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 14 December 2011 23:05:46 GMT