[Bug 11451] Add a string enum type

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

--- Comment #20 from Cameron McCormack <cam@mcc.id.au> 2011-12-20 23:35:47 UTC ---
I wasn't planning on exposing the enum in any way.  If we make unknown string
values assigned to attributes be ignored, that can be used to feature detect. 
Similarly for catching an exception if that's how we make operations handle
unknown values.

(In reply to comment #15)
> Some recent APIs that take dictionaries define the dict as an interface that
> you can poke at to find support.  It would be nice to have the same with enums.

Not sure what you mean by defining a dictionary as an interface.  Do you mean
like `[Callback] interface SomeOptions { ... }`, the style used before
dictionaries were introduced?

-- 
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 Tuesday, 20 December 2011 23:35:54 UTC