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

Named constant as default value

From: Seo Sanghyeon <sanxiyn@gmail.com>
Date: Sat, 14 Apr 2012 18:48:23 +0900
Message-ID: <CAPrzcnKJatZJuXrX_EiN9YnM8JOhOaS8TOrUcqKCz9m--RLhJw@mail.gmail.com>
To: public-script-coord@w3.org, www-dom@w3.org
2012-04-05 working draft of DOM4 (same in editor's draft) introduced:

interface Document {
  NodeIterator createNodeIterator(Node root, optional unsigned long
whatToShow = SHOW_ALL, optional NodeFilter? filter = null);

SHOW_ALL is 0xFFFFFFFF, but it seems such use of named constant
as default value is not allowed by WebIDL grammar, either working draft
or editor's draft.

Which of the following is true?
1. WebIDL specification should be updated.
2. DOM4 specification should be updated.
3. It is okay for DOM4 specifcation WebIDL to be non-conforming.
It is for illustrative purpose.

Seo Sanghyeon
Received on Saturday, 14 April 2012 09:48:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:00 UTC