W3C home > Mailing lists > Public > public-html@w3.org > April 2013

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

From: Glenn Adams <glenn@skynav.com>
Date: Thu, 18 Apr 2013 08:50:24 -0600
Message-ID: <CACQ=j+eZgGjLv9L57Qf=2ox1R871U7D4wnpKnkHE+jHvVEi_GA@mail.gmail.com>
To: Eric Carlson <eric.carlson@apple.com>
Cc: public-html <public-html@w3.org>
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

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:32 UTC