Re: onfocus attribute in XHTML Transitional

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 UTC