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

Re: on<event> attributes as global attributes

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Fri, 25 Jun 2010 07:29:57 +0000
To: Ian Hickson <ian@hixie.ch>
Cc: public-html@w3.org, "Michael(tm) Smith" <mike@w3.org>
Message-ID: <1277450982.1845.995.camel@localhost>
Le jeudi 24 juin 2010 à 18:55 +0000, Ian Hickson a écrit :
> On Thu, 24 Jun 2010, Dominique Hazael-Massieux wrote:
> > 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.

Could you be maybe a bit more specific? One of the drawbacks I see is
that it makes it harder to explain to authors/developers what e.g.
onvolumechange means on the title element.

Thanks,

Dom
Received on Friday, 25 June 2010 07:50:11 UTC

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