1/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/#the-track-element
8 */
9
10[HTMLConstructor]
11interface HTMLTrackElement : HTMLElement {
12  [CEReactions, SetterThrows, Pure]
13  attribute DOMString kind;
14  [CEReactions, SetterThrows, Pure]
15  attribute DOMString src;
16  [CEReactions, SetterThrows, Pure]
17  attribute DOMString srclang;
18  [CEReactions, SetterThrows, Pure]
19  attribute DOMString label;
20  [CEReactions, SetterThrows, Pure]
21  attribute boolean default;
22
23  const unsigned short NONE = 0;
24  const unsigned short LOADING = 1;
25  const unsigned short LOADED = 2;
26  const unsigned short ERROR = 3;
27  readonly attribute unsigned short readyState;
28
29  readonly attribute TextTrack? track;
30};
31