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

Re: onfocus-onmouseover xhtml

From: Jim Ley <jim@jibbering.com>
Date: Sat, 29 Jun 2002 11:50:22 +0100
Message-ID: <007401c21f5b$e6fb2960$9d3c70c2@7020CT>
To: <w3c-wai-ig@w3.org>

"David Woolley" <david@djwhome.demon.co.uk>
> > 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.

I think this is an odd argument, when Windows Internet Explorer can have
(almost?) any element recieve focus.  You can even add it to the tab order
to obtain keyboard focus by adding a tabindex.  So if the reason was based
on Windows behaviour, it's rather odd conclusion.

Still onmouseover does exist for A, and so does onfocus, you can just use
the A one in all browsers I know of which allow you to use the img one
(and more in fact.)

Jim.
Received on Saturday, 29 June 2002 06:56:53 GMT

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