W3C home > Mailing lists > Public > www-validator@w3.org > April 2010

Re: onfocus attribute in XHTML Transitional

From: David Dorward <david@dorward.me.uk>
Date: Wed, 7 Apr 2010 09:24:54 +0100
Cc: www-validator@w3.org
Message-Id: <9E36350B-7AC8-4151-879B-B8927A9E55AB@dorward.me.uk>
To: Corey Mwamba <send.missive@coreymwamba.co.uk>

On 4 Apr 2010, at 05:20, Corey Mwamba wrote:
> Is this a bug? According to the DTD for XHTML 1.0 Transitional the standard 
> attributes include the event attributes:
> 
> <!ENTITY % attrs "%coreattrs; %i18n; %events;">

The %events don't include onfocus: http://www.w3.org/TR/html4/sgml/dtd.html#events

(Probably because it is only useful on elements which can have the focus, which a div cannot without doing things with non-standard attributes or JavaScript).

-- 
David Dorward
http://dorward.me.uk
Received on Wednesday, 7 April 2010 08:25:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:40 GMT