W3C home > Mailing lists > Public > public-webevents@w3.org > April to June 2011

Re: [WebIDL] Inherited Attributes?

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 13 Apr 2011 11:33:16 +1200
To: Doug Schepers <schepers@w3.org>
Cc: public-webevents@w3.org
Message-ID: <20110412233316.GD9809@wok.mcc.id.au>
Hi Doug.

Doug Schepers:
> We would like to indicate in the Touch Interface spec that the
> TouchEvent Interface inherits the Event.timestamp attribute from the
> Event Interface, just to make it explicit.
> Is there some way to express that in Web IDL?

There is no way in Web IDL to explicitly state that a particular
interface member is inherited from a parent interface; all are inherited
by definition.  (If you repeat the attribute definition in the
inheriting interface, this will introduce a separate propert in JS that
shadows Event’s timestamp, which isn’t what you want.)

Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 12 April 2011 23:33:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:53 UTC