W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2002

Re: onfocus-onmouseover xhtml

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sat, 29 Jun 2002 09:34:30 +0100 (BST)
Message-Id: <200206290834.g5T8YUw02967@djwhome.demon.co.uk>
To: w3c-wai-ig@w3.org

> anyone aware why onfocus belongs to <a> yet onmouseover is <img>?

onfocus didn't belong to <a> in draft versions of HTML 4.01; it might have
been added at the last minute.

onmouseover does belong to <a> in the same draft; it is listed in the
%events; entity.

onfocus belongs to controls because the Windows concept of focus relates
to their ability to accept input.

onmouseover is probably used for images because they are not controls, and
because it is relates to a specific visual mode of access, which the standard
Windows 9x user interface model considers not to create focus, although the
standard model for some X window managers do consider it to create a level
of focus, although possibly only at the window, not the control, level.

The CSS equivalent of onmouseover, :hover, certainly works on <a> elements.
Received on Saturday, 29 June 2002 04:34:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:05 GMT