Re: Week 14/15: Staged WHATWG patches for HTML5.1

thanks for clarifying (i haven't started using the newer WebIDL enums...);
i withdraw my comment at this time


On Thu, Apr 18, 2013 at 8:36 AM, Eric Carlson <eric.carlson@apple.com>wrote:

>
> On Apr 17, 2013, at 10:24 PM, Glenn Adams <glenn@skynav.com> wrote:
>
> Historically speaking, there has been a trend away from using enumerated
> types, e.g., DOMError, to using DOMString. This change looks like it's
> headed in the other direction, which I find surprising.
>
> In general, it has been my experience that use of enums in standards APIs
> is harder to evolve than using string arguments.
>
>   The values are still strings:
>
> enum TextTrackMode { "disabled",  "hidden",  "showing" };
> enum TextTrackKind { "subtitles",  "captions",  "descriptions",
>  "chapters",  "metadata" };
>
>
> http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#texttrackkind
>
> eric
>
>
>

Received on Thursday, 18 April 2013 14:51:15 UTC