Re: on<event> attributes as global attributes

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