W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 19936] New: consider allowing non-matching enums to be converted to a particular value

From: <bugzilla@jessica.w3.org>
Date: Sun, 11 Nov 2012 18:23:34 +0000
To: public-script-coord@w3.org
Message-ID: <bug-19936-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19936

          Priority: P2
            Bug ID: 19936
                CC: ian@hixie.ch, mike@w3.org, public-script-coord@w3.org
          Assignee: cam@mcc.id.au
           Summary: consider allowing non-matching enums to be converted
                    to a particular value
        QA Contact: public-webapps-bugzilla@w3.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: cam@mcc.id.au
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: WebIDL
           Product: WebAppsWG

Something like:

  enum CanvasContextName {
    "2d", "webgl", default = ""
  };

  interface HTMLCanvasElement {
    any getContext(CanvasContextName name);
  };

so that bad values get converted into the specified default value rather than
resulting in an exception being thrown.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 11 November 2012 18:23:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:07 UTC