[Bug 16729] New: Make endings an enum

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16729

           Summary: Make endings an enum
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: File API
        AssignedTo: arun@mozilla.com
        ReportedBy: simonp@opera.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: public-webapps@w3.org


I think it would make sense to make the endings member an enum as follows, to
make invalid values throw TypeError:

    enum EndingTypes { "transparent", "native" };
    dictionary BlobPropertyBag {

      ...
      EndingTypes endings = "transparent";

    };

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Friday, 13 April 2012 12:50:40 UTC