W3C home > Mailing lists > Public > public-html@w3.org > June 2010

Re: on<event> attributes as global attributes

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 24 Jun 2010 18:55:01 +0000 (UTC)
To: Dominique Hazael-Massieux <dom@w3.org>
Cc: public-html@w3.org, "Michael(tm) Smith" <mike@w3.org>
Message-ID: <Pine.LNX.4.64.1006241854380.12296@ps20323.dreamhostps.com>
On Thu, 24 Jun 2010, Dominique Hazael-Massieux wrote:
> 
> I was wondering why most of the events attributes are defined as global
> attributes (i.e. available on all HTML elements):
> http://dev.w3.org/html5/spec/elements.html#global-attributes
> 
> The specs mentions that:
>         "While these attributes apply to all elements, they are not
>         useful on all elements. For example, only media elements will
>         ever receive a volumechange  event fired by the user agent."
> Why couldn't these events attributes only be defined for the relevant
> elements then?

It makes implementations easier.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 24 June 2010 18:55:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:18 UTC