W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2010

Re: IDL constants outside interfaces (widlproc, WebIDL, and DOM Level 3 events)

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 04 Apr 2010 21:44:56 +0200
To: "WWW DOM" <www-dom@w3.org>, "Philippe Le Hegaret" <plh@w3.org>
Message-ID: <op.vank46lj64w2qv@annevk-t60>
On Wed, 31 Mar 2010 16:32:27 +0200, Philippe Le Hegaret <plh@w3.org> wrote:
> widlproc [1] doesn't like the fact that two constants are defined
> outside an interface in the DOM Level 3 Events specification:
> [[
> // Introduced in DOM Level 2:
> exception EventException {
>   unsigned short          code;
> };
>
> // EventExceptionCode
> const unsigned short      UNSPECIFIED_EVENT_TYPE_ERR     = 0;
> // Introduced in DOM Level 3:
> const unsigned short      DISPATCH_REQUEST_ERR           = 1;
> ]]
>
> It doesn't look like WebIDL alows this [2]. Should the spec be modify to
> match the definition of WebIDL or should WebIDL be modified to allow
> constants outside an interface?

I guess it would be more consistent with the definition of interfaces if  
we put them on exception instead. However, we'd need [Supplemental] for  
exception too then I suppose.


> [1] http://widl.webvm.net/svn/widlproc/trunk/
> [2]  
> http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-Events-EventException
> [3] http://www.w3.org/TR/WebIDL/


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Sunday, 4 April 2010 19:45:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:04 GMT