@@ -54,6 +54,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/
54
54
text: rules for extracting the chapter title
55
55
text: text track cue start time
56
56
text: text track cue end time
57
+ text: unbounded text track cue
57
58
text: expose a user interface to the user
58
59
text: text track cue order
59
60
text: honor user preferences for automatic text track selection
@@ -5546,7 +5547,7 @@ enum PositionAlignSetting { "line-left", "center", "line-right", "auto" };
5546
5547
enum AlignSetting { "start", "center", "end", "left", "right" };
5547
5548
[Exposed=Window]
5548
5549
interface VTTCue : TextTrackCue {
5549
- constructor(double startTime, double endTime, DOMString text);
5550
+ constructor(double startTime, unrestricted double endTime, DOMString text);
5550
5551
attribute VTTRegion? region;
5551
5552
attribute DirectionSetting vertical;
5552
5553
attribute boolean snapToLines;
@@ -5568,7 +5569,8 @@ interface VTTCue : TextTrackCue {
5568
5569
<dd>
5569
5570
<p> Returns a new {{VTTCue}} object, for use with the {{TextTrack/addCue()}} method.</p>
5570
5571
<p> The |startTime| argument sets the <a>text track cue start time</a> .</p>
5571
- <p> The |endTime| argument sets the <a>text track cue end time</a> .</p>
5572
+ <p> The |endTime| argument sets the <a>text track cue end time</a> . In the case of the value being
5573
+ positive Infinity, the {{VTTCue}} object represents an <a>unbounded text track cue</a> .</p>
5572
5574
<p> The |text| argument sets the <a>cue text</a> .</p>
5573
5575
</dd>
5574
5576
@@ -5689,11 +5691,14 @@ interface VTTCue : TextTrackCue {
5689
5691
5690
5692
<li><p> Create a new <a>WebVTT cue</a> . Let |cue| be that <a>WebVTT cue</a> .</p></li>
5691
5693
5692
- <li><p> Let |cue|'s <a>text track cue start time</a> be the value of the |startTime| argument,
5693
- interpreted as a time in seconds .</p></li>
5694
+ <li><p> Let |cue|'s <a>text track cue start time</a> be the value of the |startTime|
5695
+ argument .</p></li>
5694
5696
5695
- <li><p> Let |cue|'s <a>text track cue end time</a> be the value of the |endTime| argument,
5696
- interpreted as a time in seconds.</p></li>
5697
+ <li><p> If the value of the |endTime| argument is negative Infinity or a Not-a-Number (NaN) value,
5698
+ then throw a <a
5699
+ href="https://tc39.es/ecma262/#sec-native-error-types-used-in-this-standard-typeerror"> TypeError
5700
+ </a> exception. Otherwise, let |cue|'s <a>text track cue end time</a> be the value of the |endTime|
5701
+ argument.</p></li>
5697
5702
5698
5703
<li><p> Let |cue|'s <a>cue text</a> be the value of the |text| argument, and let the <a>rules for
5699
5704
extracting the chapter title</a> be the <a>WebVTT rules for extracting the chapter
0 commit comments