Re: InvalidStateError and TextTrackCue.snapToLines

On Sun, 21 Oct 2012 16:25:33 +0200, Philippe Le Hegaret <plh@w3.org> wrote:

> 2. Looking at the spec,
> [[
> The snapToLines attribute, on getting, must return true if the text
> track cue snap-to-lines flag of the text track cue that the TextTrackCue
> object represents is set; or false otherwise. On setting, the text track
> cue snap-to-lines flag must be set if the new value is true, and must be
> unset otherwise.
> ]]
>
> It's not clear to me that the following is correct:
> [[
>  assert_throws('INVALID_STATE_ERR', function(){ c1.snapToLines =
> false; });
> ]]
> https://dvcs.w3.org/hg/html/file/1ad5f579acf8/tests/submission/Opera/media/interfaces/TextTrackCue/snapToLines.html
>
> ie, unless I'm misreading the spec, I don't think that snapToLines is
> supposed to return an exception.

Indeed. This changed in:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16917
http://html5.org/r/7328

I've fixed the test. Thanks!

http://dvcs.w3.org/hg/html/rev/c24e5d66880b

-- 
Simon Pieters
Opera Software

Received on Saturday, 27 October 2012 10:56:28 UTC