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

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:36:33 UTC