Skip to content
Permalink
Browse files

[giow] (0) Move TextTrack.readyState to HTMLTrackElement.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14241

git-svn-id: http://svn.whatwg.org/webapps@6689 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 15, 2011
1 parent 0a3e8a7 commit 022fe429af25c34f0a07a3387a0d4404c2736b98
Showing with 139 additions and 154 deletions.
  1. +46 −51 complete.html
  2. +46 −51 index
  3. +47 −52 source

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 14 October 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 October 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
attribute DOMString <a href=#dom-track-label title=dom-track-label>label</a>;
attribute boolean <a href=#dom-track-default title=dom-track-default>default</a>;

const unsigned short <a href=#dom-track-none title=dom-track-NONE>NONE</a> = 0;
const unsigned short <a href=#dom-track-loading title=dom-track-LOADING>LOADING</a> = 1;
const unsigned short <a href=#dom-track-loaded title=dom-track-LOADED>LOADED</a> = 2;
const unsigned short <a href=#dom-track-error title=dom-track-ERROR>ERROR</a> = 3;
readonly attribute unsigned short <a href=#dom-track-readystate title=dom-track-readyState>readyState</a>;

readonly attribute <a href=#texttrack>TextTrack</a> <a href=#dom-track-track title=dom-track-track>track</a>;
};</pre>
</dd>
be more appropriate. There must not be more than one
<code><a href=#the-track-element>track</a></code> element with the same parent node with the <code title=attr-track-default><a href=#attr-track-default>default</a></code> attribute specified.</p>

<dl class=domintro><dt><var title="">track</var> . <code title=dom-track-track><a href=#dom-track-track>track</a></code></dt>
<dl class=domintro><dt><var title="">track</var> . <code title=dom-track-readyState><a href=#dom-track-readystate>readyState</a></code></dt>
<dd>
<p>Returns the <a href=#text-track-readiness-state>text track readiness state</a>,
represented by a number from the following list:</p>
<dl><dt><var title="">track</var> . <code title=dom-track-NONE><a href=#dom-track-none>NONE</a></code> (0)</dt>
<dd>
<p>The <a href=#text-track-not-loaded>text track not loaded</a> state.</p>
</dd>
<dt><var title="">track</var> . <code title=dom-track-LOADING><a href=#dom-track-loading>LOADING</a></code> (1)</dt>
<dd>
<p>The <a href=#text-track-loading>text track loading</a> state.</p>
</dd>
<dt><var title="">track</var> . <code title=dom-track-LOADED><a href=#dom-track-loaded>LOADED</a></code> (2)</dt>
<dd>
<p>The <a href=#text-track-loaded>text track loaded</a> state.</p>
</dd>
<dt><var title="">track</var> . <code title=dom-track-ERROR><a href=#dom-track-error>ERROR</a></code> (3)</dt>
<dd>
<p>The <a href=#text-track-failed-to-load>text track failed to load</a> state.</p>
</dd>
</dl></dd>

<dt><var title="">track</var> . <code title=dom-track-track><a href=#dom-track-track>track</a></code></dt>

<dd>


</dl><div class=impl>

<p>The <dfn id=dom-track-track title=dom-track-track><code>track</code></dfn> IDL
<p>The <dfn id=dom-track-readystate title=dom-track-readyState><code>readyState</code></dfn> attribute
must return the numeric value corresponding to the <a href=#text-track-readiness-state>text track
readiness state</a> of the <code><a href=#the-track-element>track</a></code> element's
<a href=#text-track>text track</a>, as defined by the following list:</p>

<dl><dt><dfn id=dom-track-none title=dom-track-NONE><code>NONE</code></dfn> (numeric value 0)</dt>
<dd>The <a href=#text-track-not-loaded>text track not loaded</a> state.</dd>
<dt><dfn id=dom-track-loading title=dom-track-LOADING><code>LOADING</code></dfn> (numeric value 1)</dt>
<dd>The <a href=#text-track-loading>text track loading</a> state.</dd>
<dt><dfn id=dom-track-loaded title=dom-track-LOADED><code>LOADED</code></dfn> (numeric value 2)</dt>
<dd>The <a href=#text-track-loaded>text track loaded</a> state.</dd>
<dt><dfn id=dom-track-error title=dom-track-ERROR><code>ERROR</code></dfn> (numeric value 3)</dt>
<dd>The <a href=#text-track-failed-to-load>text track failed to load</a> state.</dd>
</dl><p>The <dfn id=dom-track-track title=dom-track-track><code>track</code></dfn> IDL
attribute must, on getting, return the <code><a href=#the-track-element>track</a></code> element's
<a href=#text-track>text track</a>'s corresponding <code><a href=#texttrack>TextTrack</a></code>
object.</p>
readonly attribute DOMString <a href=#dom-texttrack-label title=dom-TextTrack-label>label</a>;
readonly attribute DOMString <a href=#dom-texttrack-language title=dom-TextTrack-language>language</a>;

const unsigned short <a href=#dom-texttrack-none title=dom-TextTrack-NONE>NONE</a> = 0;
const unsigned short <a href=#dom-texttrack-loading title=dom-TextTrack-LOADING>LOADING</a> = 1;
const unsigned short <a href=#dom-texttrack-loaded title=dom-TextTrack-LOADED>LOADED</a> = 2;
const unsigned short <a href=#dom-texttrack-error title=dom-TextTrack-ERROR>ERROR</a> = 3;
readonly attribute unsigned short <a href=#dom-texttrack-readystate title=dom-TextTrack-readyState>readyState</a>;
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-texttrack-onload title=handler-TextTrack-onload>onload</a>;
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-texttrack-onerror title=handler-TextTrack-onerror>onerror</a>;

const unsigned short <a href=#dom-texttrack-disabled title=dom-TextTrack-DISABLED>DISABLED</a> = 0;
const unsigned short <a href=#dom-texttrack-hidden title=dom-TextTrack-HIDDEN>HIDDEN</a> = 1;
const unsigned short <a href=#dom-texttrack-showing title=dom-TextTrack-SHOWING>SHOWING</a> = 2;
<p>Returns the <a href=#text-track-language>text track language</a> string.</p>
</dd>

<dt><var title="">textTrack</var> . <code title=dom-TextTrack-readyState><a href=#dom-texttrack-readystate>readyState</a></code></dt>
<dd>
<p>Returns the <a href=#text-track-readiness-state>text track readiness state</a>,
represented by a number from the following list:</p>
<dl><dt><code><a href=#texttrack>TextTrack</a></code> . <code title=dom-TextTrack-NONE><a href=#dom-texttrack-none>NONE</a></code> (0)</dt>
<dd>
<p>The <a href=#text-track-not-loaded>text track not loaded</a> state.</p>
</dd>
<dt><code><a href=#texttrack>TextTrack</a></code> . <code title=dom-TextTrack-LOADING><a href=#dom-texttrack-loading>LOADING</a></code> (1)</dt>
<dd>
<p>The <a href=#text-track-loading>text track loading</a> state.</p>
</dd>
<dt><code><a href=#texttrack>TextTrack</a></code> . <code title=dom-TextTrack-LOADED><a href=#dom-texttrack-loaded>LOADED</a></code> (2)</dt>
<dd>
<p>The <a href=#text-track-loaded>text track loaded</a> state.</p>
</dd>
<dt><code><a href=#texttrack>TextTrack</a></code> . <code title=dom-TextTrack-ERROR><a href=#dom-texttrack-error>ERROR</a></code> (3)</dt>
<dd>
<p>The <a href=#text-track-failed-to-load>text track failed to load</a> state.</p>
</dd>
</dl></dd>

<dt><var title="">textTrack</var> . <code title=dom-TextTrack-mode><a href=#dom-texttrack-mode>mode</a></code> [ = <var title="">value</var> ]</dt>
<dd>
<p>Returns the <a href=#text-track-mode>text track mode</a>, represented by a
<a href=#text-track>text track</a> that the <code><a href=#texttrack>TextTrack</a></code> object
represents.</p>

<p>The <dfn id=dom-texttrack-readystate title=dom-TextTrack-readyState><code>readyState</code></dfn>
attribute must return the numeric value corresponding to the
<a href=#text-track-readiness-state>text track readiness state</a> of the <a href=#text-track>text
track</a> that the <code><a href=#texttrack>TextTrack</a></code> object represents, as
defined by the following list:</p>

<dl><dt><dfn id=dom-texttrack-none title=dom-TextTrack-NONE><code>NONE</code></dfn> (numeric value 0)</dt>
<dd>The <a href=#text-track-not-loaded>text track not loaded</a> state.</dd>
<dt><dfn id=dom-texttrack-loading title=dom-TextTrack-LOADING><code>LOADING</code></dfn> (numeric value 1)</dt>
<dd>The <a href=#text-track-loading>text track loading</a> state.</dd>
<dt><dfn id=dom-texttrack-loaded title=dom-TextTrack-LOADED><code>LOADED</code></dfn> (numeric value 2)</dt>
<dd>The <a href=#text-track-loaded>text track loaded</a> state.</dd>
<dt><dfn id=dom-texttrack-error title=dom-TextTrack-ERROR><code>ERROR</code></dfn> (numeric value 3)</dt>
<dd>The <a href=#text-track-failed-to-load>text track failed to load</a> state.</dd>
</dl><p>The <dfn id=dom-texttrack-mode title=dom-TextTrack-mode><code>mode</code></dfn>
<p>The <dfn id=dom-texttrack-mode title=dom-TextTrack-mode><code>mode</code></dfn>
attribute, on getting, must return the numeric value corresponding
to the <a href=#text-track-mode>text track mode</a> of the <a href=#text-track>text track</a>
that the <code><a href=#texttrack>TextTrack</a></code> object represents, as defined by
objects implementing the <code><a href=#texttrack>TextTrack</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttrack-onload title=handler-TextTrack-onload><code>onload</code></dfn> <td> <code title=event-load>load</code>
<tr><td><dfn id=handler-texttrack-onerror title=handler-TextTrack-onerror><code>onerror</code></dfn> <td> <code title=event-error>error</code>
<tr><td><dfn id=handler-texttrack-oncuechange title=handler-TextTrack-oncuechange><code>oncuechange</code></dfn> <td> <code title=event-cuechange>cuechange</code>
<tbody><tr><td><dfn id=handler-texttrack-oncuechange title=handler-TextTrack-oncuechange><code>oncuechange</code></dfn> <td> <code title=event-cuechange>cuechange</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be supported, as IDL attributes, by all

0 comments on commit 022fe42

Please sign in to comment.
You can’t perform that action at this time.