HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/6010

File a bug

SVNBugCommentTime (UTC)
6010[Gecko] [Internet Explorer] [Opera] [Webkit] s/name/label/ since we call this kind of thing a label elsewhere2011-04-15 00:25
Index: source
===================================================================
--- source	(revision 6009)
+++ source	(revision 6010)
@@ -31198,7 +31198,7 @@
 
   <pre class="idl">interface <dfn>TrackList</dfn> {
   readonly attribute unsigned long <span title="dom-TrackList-length">length</span>;
-  DOMString <span title="dom-TrackList-getName">getName</span>(in unsigned long index);
+  DOMString <span title="dom-TrackList-getLabel">getLabel</span>(in unsigned long index);
   DOMString <span title="dom-TrackList-getLanguage">getLanguage</span>(in unsigned long index);
 
            attribute <span>Function</span> <span title="handler-TrackList-onchange">onchange</span>;
@@ -31225,11 +31225,11 @@
 
    </dd>
 
-   <dt><var title="">name</var> = <var title="">tracks</var> . <code title="dom-TrackList-getName">getName</code>( <var title="">index</var> )</dt>
+   <dt><var title="">label</var> = <var title="">tracks</var> . <code title="dom-TrackList-getLabel">getLabel</code>( <var title="">index</var> )</dt>
 
    <dd>
 
-    <p>Returns the name of the given track, if known, or the empty string otherwise.</p>
+    <p>Returns the label of the given track, if known, or the empty string otherwise.</p>
 
    </dd>
 
@@ -31297,12 +31297,12 @@
   thus has an index; the first has the index 0, and each subsequent
   track is numbered one higher than the previous one.</p>
 
-  <p>The <dfn title="dom-TrackList-getName"><code>getName(<var
-  title="">index</var>)</code></dfn> method must return the name of
+  <p>The <dfn title="dom-TrackList-getLabel"><code>getLabel(<var
+  title="">index</var>)</code></dfn> method must return the label of
   the track with index <var title="">index</var>, if there is one and
-  it has a name. If there is no such track, then the method must
+  it has a label. If there is no such track, then the method must
   instead throw an <code>INDEX_SIZE_ERR</code> exception. If there is
-  a track with index <var title="">index</var>, but it has no name,
+  a track with index <var title="">index</var>, but it has no label,
   then the method must return the empty string.</p>
 
   <p>The <dfn title="dom-TrackList-getLanguage"><code>getLanguage(<var
@@ -83447,13 +83447,13 @@
 
   <p>User agents may label audio and video sources (e.g. "Internal
   microphone" or "External USB Webcam"), in which case the <code
-  title="dom-TrackList-getName">getName()</code> methods (on the
+  title="dom-TrackList-getLabel">getLabel()</code> methods (on the
   <code>MultipleTrackList</code> and <code>ExclusiveTrackList</code>
   objects) must use the labels the user agent has assigned as the
-  track names of the source tracks of the <code>GeneratedStream</code>
+  track labels of the source tracks of the <code>GeneratedStream</code>
   object. Otherwise, the <code
-  title="dom-TrackList-getName">getName()</code> methods must use the
-  empty string as the track names of the source tracks of the
+  title="dom-TrackList-getLabel">getLabel()</code> methods must use the
+  empty string as the track labels of the source tracks of the
   <code>GeneratedStream</code> object. The <code
   title="dom-TrackList-getLanguage">getLanguage()</code> methods must
   use the empty string as the track language for all the source tracks

|