2.1.49 [HTML5] Section 4.7.10.14 Time ranges

V0114: The start and end methods throw an invalid argument exception, not an IndexSizeError exception

The specification states:

 ... Time ranges
     ...
     The start(index) method must return the position of the start of the index'th range 
     represented by the object, in seconds measured from the start of the timeline that 
     the object covers.
  
     The end(index) method must return the position of the end of the index'th range 
     represented by the object, in seconds measured from the start of the timeline that 
     the object covers.
  
     These methods must throw IndexSizeError exceptions if called with an index argument 
     greater than or equal to the number of ranges represented by the object.

All document modes (All versions)

If called with an index argument greater than or equal to the number of ranges represented by the object, start and end throw an invalid argument exception, not an IndexSizeError exception.

Show: