- 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>
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 UTC