Skip to content

Commit

Permalink
[e] (0) Make addTextTrack() actually create and return the MutableTex…
Browse files Browse the repository at this point in the history
…tTrack object.

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

git-svn-id: http://svn.whatwg.org/webapps@6506 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 17, 2011
1 parent 0785283 commit 56771a1
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 24 deletions.
28 changes: 20 additions & 8 deletions complete.html
Expand Up @@ -31773,14 +31773,18 @@ <h6 id=text-track-api><span class=secno>4.8.10.12.5 </span>Text track API</h6>

<li>

<p>Create a new <a href=#text-track>text track</a>, and set its <a href=#text-track-kind>text
track kind</a> to <var title="">kind</var>, its <a href=#text-track-label>text
track label</a> to <var title="">label</var>, its <a href=#text-track-language>text
track language</a> to <var title="">language</var>, its
<a href=#text-track-readiness-state>text track readiness state</a> to the <a href=#text-track-loaded>text track
loaded</a> state, its <a href=#text-track-mode>text track mode</a> to the
<a href=#text-track-hidden>text track hidden</a> mode, and its <a href=#text-track-list-of-cues>text track
list of cues</a> to an empty list.
<p>Create a new <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object.</p>

</li>

<li>

<p>Create a new <a href=#text-track>text track</a> corresponding to the new
object, and set its <a href=#text-track-kind>text track kind</a> to <var title="">kind</var>, its <a href=#text-track-label>text track label</a> to <var title="">label</var>, its <a href=#text-track-language>text track language</a> to <var title="">language</var>, its <a href=#text-track-readiness-state>text track readiness
state</a> to the <a href=#text-track-loaded>text track loaded</a> state, its
<a href=#text-track-mode>text track mode</a> to the <a href=#text-track-hidden>text track hidden</a>
mode, and its <a href=#text-track-list-of-cues>text track list of cues</a> to an empty
list.
<!--TTVTT-->
Associate the <a href=#text-track-list-of-cues>text track list of cues</a> with the
<a href=#rules-for-updating-the-display-of-webvtt-text-tracks>rules for updating the display of WebVTT text tracks</a>
Expand All @@ -31795,6 +31799,14 @@ <h6 id=text-track-api><span class=secno>4.8.10.12.5 </span>Text track API</h6>
<p>Add the new <a href=#text-track>text track</a> to the <a href=#media-element>media
element</a>'s <a href=#list-of-text-tracks>list of text tracks</a>.</p>

</li>

<li>

<p>Return the new <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object.</p>

</li>

</ol><p>The <dfn id=dom-mutabletexttrack-addcue title=dom-MutableTextTrack-addCue><code>addCue(<var title="">cue</var>)</code></dfn> method of
<code><a href=#mutabletexttrack>MutableTextTrack</a></code> objects, when invoked, must run the
following steps:</p>
Expand Down
28 changes: 20 additions & 8 deletions index
Expand Up @@ -31640,14 +31640,18 @@ typedef <a href=#texttrack>TextTrack</a>[] <dfn id=texttracklist>TextTrackList</

<li>

<p>Create a new <a href=#text-track>text track</a>, and set its <a href=#text-track-kind>text
track kind</a> to <var title="">kind</var>, its <a href=#text-track-label>text
track label</a> to <var title="">label</var>, its <a href=#text-track-language>text
track language</a> to <var title="">language</var>, its
<a href=#text-track-readiness-state>text track readiness state</a> to the <a href=#text-track-loaded>text track
loaded</a> state, its <a href=#text-track-mode>text track mode</a> to the
<a href=#text-track-hidden>text track hidden</a> mode, and its <a href=#text-track-list-of-cues>text track
list of cues</a> to an empty list.
<p>Create a new <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object.</p>

</li>

<li>

<p>Create a new <a href=#text-track>text track</a> corresponding to the new
object, and set its <a href=#text-track-kind>text track kind</a> to <var title="">kind</var>, its <a href=#text-track-label>text track label</a> to <var title="">label</var>, its <a href=#text-track-language>text track language</a> to <var title="">language</var>, its <a href=#text-track-readiness-state>text track readiness
state</a> to the <a href=#text-track-loaded>text track loaded</a> state, its
<a href=#text-track-mode>text track mode</a> to the <a href=#text-track-hidden>text track hidden</a>
mode, and its <a href=#text-track-list-of-cues>text track list of cues</a> to an empty
list.
<!--TTVTT-->
Associate the <a href=#text-track-list-of-cues>text track list of cues</a> with the
<a href=#rules-for-updating-the-display-of-webvtt-text-tracks>rules for updating the display of WebVTT text tracks</a>
Expand All @@ -31662,6 +31666,14 @@ typedef <a href=#texttrack>TextTrack</a>[] <dfn id=texttracklist>TextTrackList</
<p>Add the new <a href=#text-track>text track</a> to the <a href=#media-element>media
element</a>'s <a href=#list-of-text-tracks>list of text tracks</a>.</p>

</li>

<li>

<p>Return the new <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object.</p>

</li>

</ol><p>The <dfn id=dom-mutabletexttrack-addcue title=dom-MutableTextTrack-addCue><code>addCue(<var title="">cue</var>)</code></dfn> method of
<code><a href=#mutabletexttrack>MutableTextTrack</a></code> objects, when invoked, must run the
following steps:</p>
Expand Down
31 changes: 23 additions & 8 deletions source
Expand Up @@ -34649,14 +34649,21 @@ typedef <span>TextTrack</span>[] <dfn>TextTrackList</dfn>;</pre>

<li>

<p>Create a new <span>text track</span>, and set its <span>text
track kind</span> to <var title="">kind</var>, its <span>text
track label</span> to <var title="">label</var>, its <span>text
track language</span> to <var title="">language</var>, its
<span>text track readiness state</span> to the <span>text track
loaded</span> state, its <span>text track mode</span> to the
<span>text track hidden</span> mode, and its <span>text track
list of cues</span> to an empty list.
<p>Create a new <code>MutableTextTrack</code> object.</p>

</li>

<li>

<p>Create a new <span>text track</span> corresponding to the new
object, and set its <span>text track kind</span> to <var
title="">kind</var>, its <span>text track label</span> to <var
title="">label</var>, its <span>text track language</span> to <var
title="">language</var>, its <span>text track readiness
state</span> to the <span>text track loaded</span> state, its
<span>text track mode</span> to the <span>text track hidden</span>
mode, and its <span>text track list of cues</span> to an empty
list.
<!--END w3c-html--><!--TTVTT-->
Associate the <span>text track list of cues</span> with the
<span>rules for updating the display of WebVTT text tracks</span>
Expand All @@ -34671,6 +34678,14 @@ typedef <span>TextTrack</span>[] <dfn>TextTrackList</dfn>;</pre>
<p>Add the new <span>text track</span> to the <span>media
element</span>'s <span>list of text tracks</span>.</p>

</li>

<li>

<p>Return the new <code>MutableTextTrack</code> object.</p>

</li>

</ol>

<p>The <dfn title="dom-MutableTextTrack-addCue"><code>addCue(<var
Expand Down

0 comments on commit 56771a1

Please sign in to comment.