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/.
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/#the-track-element
11 interface HTMLTrackElement : HTMLElement {
12 [HTMLConstructor] constructor();
14 [CEReactions, SetterThrows, Pure]
15 attribute DOMString kind;
16 [CEReactions, SetterThrows, Pure]
17 attribute DOMString src;
18 [CEReactions, SetterThrows, Pure]
19 attribute DOMString srclang;
20 [CEReactions, SetterThrows, Pure]
21 attribute DOMString label;
22 [CEReactions, SetterThrows, Pure]
23 attribute boolean default;
25 const unsigned short NONE = 0;
26 const unsigned short LOADING = 1;
27 const unsigned short LOADED = 2;
28 const unsigned short ERROR = 3;
30 [BinaryName="readyStateForBindings"]
31 readonly attribute unsigned short readyState;
33 readonly attribute TextTrack? track;