W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

[Bug 12530] <video> Make TrackList an Array-like list of Track objects and move get* into those

From: <bugzilla@jessica.w3.org>
Date: Fri, 01 Jul 2011 13:47:10 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Qce3q-00074Y-9c@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12530

--- Comment #18 from Silvia Pfeiffer <silviapfeiffer1@gmail.com> 2011-07-01 13:47:09 UTC ---
(In reply to comment #17)
> (In reply to comment #16)
> > (In reply to comment #15)
> > > I don't think that line does what you think it does if you think it changes
> > > anything. It is a purely editorial change.
> > 
> > You are correct. It hides the fact that they are different and I don't think
> > that helps. As an author, you should be able to do:
> > 
> > audioTracks(5) and videoTracks(5) and textTracks(5) and not have to do
> > textTracks[5] and all sorts of other differences.
> 
> You should never be able to do audioTracks(5), and I'm pretty sure Gecko will
> never implement that.

Is that not what this definition means:
readonly attribute AudioTrackList audioTracks;

interface AudioTrackList {
  [..]
  getter AudioTrack (in unsigned long index);
}

Just checked and the examples actually say audioTracks[i] ... hmmm

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 1 July 2011 13:47:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:13 UTC