Implement TimeRanges interface

This commit is contained in:
Fernando Jiménez Moreno 2018-10-26 16:54:35 +02:00
parent 662fd0afa4
commit 664d5cd2fa
9 changed files with 281 additions and 28 deletions

View file

@ -0,0 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#time-ranges
[Exposed=Window]
interface TimeRanges {
readonly attribute unsigned long length;
[Throws] double start(unsigned long index);
[Throws] double end(unsigned long index);
};