- From: <bugzilla@jessica.w3.org>
- Date: Wed, 21 Dec 2011 00:14:37 +0000
- To: public-script-coord@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=11451
--- Comment #23 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-12-21 00:14:37 UTC ---
(In reply to comment #22)
> Are you asking for window.EnumName to exist, or for window.EnumName to exist
> and there be a way to get the list of strings the implementation supports for
> it?
>
> If we were going to expose it, then I guess something equivalent to the
> following?
>
> window.CanPlayTypeValue = ["", "maybe", "probably"];
The latter, though probably more something like:
window.CanPlayTypeValue = {"":true, "maybe":true, "probably":true}
This way, one can do a simple test like
"if(window.CanPlayTypeValue['probably']){...}".
Dictionaries would be exposed in the same way, with the object holding the keys
they support.
--
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, 21 December 2011 00:14:42 UTC