Skip to content

Commit

Permalink
[giow] (0) Captions - Stage 20.2b: fix markup error (oops)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@5139 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 8, 2010
1 parent 4a10526 commit 5f00c9d
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 77 deletions.
108 changes: 75 additions & 33 deletions complete.html
Expand Up @@ -26745,13 +26745,13 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onload title=handler-TimedTrack-onload>onload</a>; readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onload title=handler-TimedTrack-onload>onload</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onerror title=handler-TimedTrack-onerror>onerror</a>; readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onerror title=handler-TimedTrack-onerror>onerror</a>;


const unsigned short <span title=dom-TimedTrack-OFF>OFF</span> = 0; const unsigned short <a href=#dom-timedtrack-off title=dom-TimedTrack-OFF>OFF</a> = 0;
const unsigned short <span title=dom-TimedTrack-HIDDEN>HIDDEN</span> = 1; const unsigned short <a href=#dom-timedtrack-hidden title=dom-TimedTrack-HIDDEN>HIDDEN</a> = 1;
const unsigned short <span title=dom-TimedTrack-SHOWING>SHOWING</span> = 2; const unsigned short <a href=#dom-timedtrack-showing title=dom-TimedTrack-SHOWING>SHOWING</a> = 2;
attribute unsigned short <span title=dom-TimedTrack-mode>mode</span>; attribute unsigned short <a href=#dom-timedtrack-mode title=dom-TimedTrack-mode>mode</a>;


readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-cues>cues</span>; readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <a href=#dom-timedtrack-cues title=dom-TimedTrack-cues>cues</a>;
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-activeCues>activeCues</span>; readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <a href=#dom-timedtrack-activecues title=dom-TimedTrack-activeCues>activeCues</a>;


readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange>oncuechange</a>; readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange>oncuechange</a>;
};</pre> };</pre>
Expand Down Expand Up @@ -26793,31 +26793,31 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
</dd> </dd>
</dl></dd> </dl></dd>


<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-mode>mode</code></dt> <dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-mode><a href=#dom-timedtrack-mode>mode</a></code></dt>
<dd> <dd>
<p>Returns the <a href=#timed-track-mode>timed track mode</a>, represented by a <p>Returns the <a href=#timed-track-mode>timed track mode</a>, represented by a
number from the following list:</p> number from the following list:</p>
<dl><dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-OFF>OFF</code> (0)</dt> <dl><dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-OFF><a href=#dom-timedtrack-off>OFF</a></code> (0)</dt>
<dd> <dd>
<p>The <a href=#timed-track-disabled>timed track disabled</a> mode.</p> <p>The <a href=#timed-track-disabled>timed track disabled</a> mode.</p>
</dd> </dd>
<dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-HIDDEN>HIDDEN</code> (0)</dt> <dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-HIDDEN><a href=#dom-timedtrack-hidden>HIDDEN</a></code> (0)</dt>
<dd> <dd>
<p>The <a href=#timed-track-hidden>timed track hidden</a> mode.</p> <p>The <a href=#timed-track-hidden>timed track hidden</a> mode.</p>
</dd> </dd>
<dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-SHOWING>SHOWING</code> (0)</dt> <dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-SHOWING><a href=#dom-timedtrack-showing>SHOWING</a></code> (0)</dt>
<dd> <dd>
<p>The <a href=#timed-track-showing>timed track showing</a> mode.</p> <p>The <a href=#timed-track-showing>timed track showing</a> mode.</p>
</dd> </dd>
</dl><p>Can be set, to change the mode.</p> </dl><p>Can be set, to change the mode.</p>
</dd> </dd>


<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-cues>cues</code></dt> <dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-cues><a href=#dom-timedtrack-cues>cues</a></code></dt>
<dd> <dd>
<p>Returns the <a href=#timed-track-list-of-cues>timed track list of cues</a>, as a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object.</p> <p>Returns the <a href=#timed-track-list-of-cues>timed track list of cues</a>, as a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object.</p>
</dd> </dd>


<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-activeCues>activeCues</code></dt> <dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-activeCues><a href=#dom-timedtrack-activecues>activeCues</a></code></dt>
<dd> <dd>
<p>Returns the <a href=#timed-track-cue title="timed track cue">timed track cues</a> from the <a href=#timed-track-list-of-cues>timed track list of cues</a> that are currently active (i.e. that start before the <a href=#current-playback-position>current playback position</a> and end after it), as a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object.</p> <p>Returns the <a href=#timed-track-cue title="timed track cue">timed track cues</a> from the <a href=#timed-track-list-of-cues>timed track list of cues</a> that are currently active (i.e. that start before the <a href=#current-playback-position>current playback position</a> and end after it), as a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object.</p>
</dd> </dd>
Expand All @@ -26840,10 +26840,10 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
represents.</p> represents.</p>


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


<dl><dt><dfn id=dom-timedtrack-none title=dom-TimedTrack-NONE><code>NONE</code></dfn> (numeric value 0)</dt> <dl><dt><dfn id=dom-timedtrack-none title=dom-TimedTrack-NONE><code>NONE</code></dfn> (numeric value 0)</dt>
<dd>The <a href=#timed-track-not-loaded>timed track not loaded</a> state.</dd> <dd>The <a href=#timed-track-not-loaded>timed track not loaded</a> state.</dd>
Expand All @@ -26853,31 +26853,66 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
<dd>The <a href=#timed-track-loaded>timed track loaded</a> state.</dd> <dd>The <a href=#timed-track-loaded>timed track loaded</a> state.</dd>
<dt><dfn id=dom-timedtrack-error title=dom-TimedTrack-ERROR><code>ERROR</code></dfn> (numeric value 3)</dt> <dt><dfn id=dom-timedtrack-error title=dom-TimedTrack-ERROR><code>ERROR</code></dfn> (numeric value 3)</dt>
<dd>The <a href=#timed-track-failed-to-load>timed track failed to load</a> state.</dd> <dd>The <a href=#timed-track-failed-to-load>timed track failed to load</a> state.</dd>
</dl><!-- XXX </dl><p>The <dfn id=dom-timedtrack-mode title=dom-TimedTrack-mode><code>mode</code></dfn>

attribute, on getting, must return the numeric value corresponding
const unsigned short <dfn title="dom-TimedTrack-OFF"><code>OFF</code></dfn> = 0 to the <a href=#timed-track-mode>timed track mode</a> of the <a href=#timed-track>timed track</a>
const unsigned short <dfn title="dom-TimedTrack-HIDDEN"><code>HIDDEN</code></dfn> = 1 that the <code><a href=#timedtrack>TimedTrack</a></code> object represents, as defined by
const unsigned short <dfn title="dom-TimedTrack-SHOWING"><code>SHOWING</code></dfn> = 2 the following list:</p>
attribute unsigned short <dfn title="dom-TimedTrack-mode"><code>mode</code></dfn>

readonly attribute <span>TimedTrackCueList</span> <dfn title="dom-TimedTrack-cues"><code>cues</code></dfn>
readonly attribute <span>TimedTrackCueList</span> <dfn title="dom-TimedTrack-activeCues"><code>activeCues</code></dfn>

Make sure that .cues and .activeCues doesn't change while script is
running, except for addCue/removeCue and the removal of all cues in
the face of a dynamic track.src change.


<p>User agents must not expose cues whose start and end times are <dl><dt><dfn id=dom-timedtrack-off title=dom-TimedTrack-OFF><code>OFF</code></dfn> (numeric value 0)</dt>
entirely prior to the <span>media resource</span>'s <span>earliest <dd>The <a href=#timed-track-disabled>timed track disabled</a> mode.</dd>
possible position</span>.</p> <dt><dfn id=dom-timedtrack-hidden title=dom-TimedTrack-HIDDEN><code>HIDDEN</code></dfn> (numeric value 1)</dt>
<dd>The <a href=#timed-track-hidden>timed track hidden</a> mode.</dd>
<dt><dfn id=dom-timedtrack-showing title=dom-TimedTrack-SHOWING><code>SHOWING</code></dfn> (numeric value 2)</dt>
<dd>The <a href=#timed-track-showing>timed track showing</a> mode.</dd>
</dl><p class=XXX>On setting, ...</p>


<!-- XXX
changing dom-TimedTrack-mode to disabled/hidden should hide all the changing dom-TimedTrack-mode to disabled/hidden should hide all the
titles, changing it to showing should show them. (Only 'showing' titles, changing it to showing should show them. (Only 'showing'
tracks get updated automatically.) tracks get updated automatically.)
-->


<p>If the <a href=#timed-track-mode>timed track mode</a> of the <a href=#timed-track>timed
track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object represents is
not the <a href=#timed-track-disabled>timed track disabled</a> mode, then the <dfn id=dom-timedtrack-cues title=dom-TimedTrack-cues><code>cues</code></dfn> attribute must
return a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object that represents the
subset of the <a href=#timed-track-list-of-cues>timed track list of cues</a> of the
<a href=#timed-track>timed track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object
represents whose <a href=#timed-track-cue-start-time title="timed track cue start time">start
times</a> occur before the <span>earliest possible position when
the script started</span>, in <a href=#timed-track-cue-order>timed track cue
order</a>. Otherwise, it must return null. When an object is
returned, the same object must be returned each time.</p>

<p>The <dfn id=earliest-possibly-position-when-the-script-started>earliest possibly position when the script started</dfn>
is whatever the <span>earliest possibly position</span> was the last
time the <a href=#event-loop>event loop</a> reached step 1.</p>

<p>If the <a href=#timed-track-mode>timed track mode</a> of the <a href=#timed-track>timed
track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object represents is
not the <a href=#timed-track-disabled>timed track disabled</a> mode, then the <dfn id=dom-timedtrack-activecues title=dom-TimedTrack-activeCues><code>activeCues</code></dfn>
attribute must return a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object that
represents the subset of the <a href=#timed-track-list-of-cues>timed track list of cues</a>
of the <a href=#timed-track>timed track</a> that the <code><a href=#timedtrack>TimedTrack</a></code>
object represents whose <a href=#timed-track-cue-start-time title="timed track cue start
time">start times</a> occur before the <a href=#current-playback-position-when-the-script-started>current playback
position when the script started</a> and whose <a href=#timed-track-cue-end-time title="timed
track cue end time">end times</a> occur after the <a href=#current-playback-position-when-the-script-started>current
playback position when the script started</a>, in <a href=#timed-track-cue-order>timed
track cue order</a>. Otherwise, it must return null. When an
object is returned, the same object must be returned each time.</p>

<p>The <dfn id=current-playback-position-when-the-script-started>current playback position when the script started</dfn>
is whatever the <a href=#current-playback-position>current playback position</a> was the last
time the <a href=#event-loop>event loop</a> reached step 1.</p>

<!-- XXX
- <span>MutableTimedTrack</span> <span title="dom-media-addTrack">addTrack</span>(in DOMString label, in DOMString kind, in DOMString language); - <span>MutableTimedTrack</span> <span title="dom-media-addTrack">addTrack</span>(in DOMString label, in DOMString kind, in DOMString language);
- addTrack should add it as Loaded, Disabled, and with the rules for WebSRT. - addTrack should add it as Loaded, Disabled, and with the rules for WebSRT.
--></div> -->

</div>


<hr><pre class=idl>interface <dfn id=mutabletimedtrack>MutableTimedTrack</dfn> : <a href=#timedtrack>TimedTrack</a> { <hr><pre class=idl>interface <dfn id=mutabletimedtrack>MutableTimedTrack</dfn> : <a href=#timedtrack>TimedTrack</a> {
void <span title=dom-MutableTimedTrack-addCue>addCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue); void <span title=dom-MutableTimedTrack-addCue>addCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue);
Expand Down Expand Up @@ -26905,6 +26940,13 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>


<p class=XXX>...</p> <p class=XXX>...</p>


<!-- XXX
Make sure that <code>TimedTrackCueList</code>s don't change while
script is running, except for addCue/removeCue and the removal of
all cues in the face of a dynamic track.src change.
(right now only in-band cues can change this, I think)
-->

</div> </div>


<hr><pre class=idl>interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> { <hr><pre class=idl>interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> {
Expand Down

0 comments on commit 5f00c9d

Please sign in to comment.