[whatwg] Syntax to access video elements time-ranges, a change from old pattern

What I understood from
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#time-ranges
following will be the syntax to access video elements buffered time-ranges

v1.buffered.length
v1.buffered.start(i)
v1.buffered.end(i)

When I compare it with existing syntax like

document.links.length
document.links[0].href

document.images.length
document.images[0].src

window.frames.length
window.frames[0].history

I feel it should have been of the pattern

v1.buffered.length
v1.buffered[i].start
v1.buffered[i].end


So why we changed the syntax for time-ranges?
(ie, buffered, seekable and played)

Thanks
Biju

Received on Sunday, 15 March 2009 11:34:35 UTC