From 28a04170e5d8eb48ddfb16f8d1df43eb98c0e2c8 Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Mon, 24 Jun 2019 15:28:21 -0400 Subject: [PATCH] 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. --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index d93e211..a3e53a0 100644 --- a/index.bs +++ b/index.bs @@ -5937,7 +5937,7 @@ interface VTTRegion { constructor(); attribute DOMString id; attribute double width; - attribute unsigned long lines; + attribute long lines; attribute double regionAnchorX; attribute double regionAnchorY; attribute double viewportAnchorX;