[Bug 11451] Add a string enum type

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

--- Comment #17 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-12-14 19:26:21 UTC ---
(In reply to comment #16)
> I was only suggesting we throw for methods. We should not throw for attributes.
> And I'm not sure what the best way to support enum is. It might be nicer if we
> could just do:
> 
> attribute "foo" "bar" "baz" someAttribute;
> 
> Tab, example of such an API?

The MutationObserver API, for instance, defines a MutationObserverOptions
interface, which it uses to type the second argument to observe().

-- 
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 Wednesday, 14 December 2011 19:26:23 UTC