Skip to content

Commit 28a0417

Browse files
committed
Make VTTRegion lines be a long.
Because WebIDL doesn't include an unsigned int, the VTTRegion interface specifically calls out that negative numbers should cause an IndexSizeError, and browser implementations are in the unsigned int, switch over to using a regular long value. Using a long gives us the correct range and with the definition that specifies throwing means that negative values are not allowed. This was discussed in the [20 June, 2019 TTWG call](https://www.w3.org/2019/06/20-tt-minutes.html#x02) Fixes #457.
1 parent f6b3eab commit 28a0417

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5937,7 +5937,7 @@ interface VTTRegion {
59375937
constructor();
59385938
attribute DOMString id;
59395939
attribute double width;
5940-
attribute unsigned long lines;
5940+
attribute long lines;
59415941
attribute double regionAnchorX;
59425942
attribute double regionAnchorY;
59435943
attribute double viewportAnchorX;

0 commit comments

Comments
 (0)