[webvtt] The VTTRegion.lines attribute is a long type but cannot accept negative values

srirama179 has just created a new issue for https://github.com/w3c/webvtt:

== The VTTRegion.lines attribute is a long type but cannot accept negative values ==
According to spec....
[region-lines](https://w3c.github.io/webvtt/#dom-vttregion-lines)
> The lines attribute, on getting, must return the WebVTT region lines of the WebVTT region that the VTTRegion object represents. On setting, if the new value is negative, then an IndexSizeError exception must be thrown. Otherwise, the WebVTT region lines must be set to the new value.

But according to webidl spec long type is ...
[long-type](https://heycam.github.io/webidl/#idl-long)
> The long type is a signed integer type that has values in the range [−2147483648, 2147483647].

So if we are not accepting negative values for lines, then how about changing its type to "unsigned long"?



Please view or discuss this issue at https://github.com/w3c/webvtt/issues/414 using your GitHub account

Received on Tuesday, 28 November 2017 06:18:25 UTC