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

[Bug 11451] Add a string enum type

From: <bugzilla@jessica.w3.org>
Date: Wed, 14 Dec 2011 19:26:21 +0000
To: public-script-coord@w3.org
Message-Id: <E1RauT7-0005RC-Na@jessica.w3.org>
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

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