[web-animations] Wrong AnimationPlayer attributes and typos

Hi there,

Take a look at 5.25. Script execution and live updates to the model
(http://w3c.github.io/web-animations/#script-execution-and-live-updates-to-the-model).
There is Non-normative section with the EXAMPLE 18

      // Initially player.src.localTime is 3000
      player.currentTime += 2000;
      alert(player.src.localTime); // Displays ‘5000’

AnimationPlayer interface has no .src attribute, it has .source attribute
that returns AnimationNode which has no .localTime either.

And a couple of typos.

3.5.15. Speed control (http://w3c.github.io/web-animations/#speed-control)
...
Setting a player’s playback rate to zero effectively pauses the player
b(however, the play state does not necessarily become paused).

Note 'b' letter before parenthesis

3.5.15.1. Updating the playback rate of a player
(http://w3c.github.io/web-animations/#updating-the-playback-rate-of-a-player)
...
The procedure to update the player playback rate of a player, player to
new playback rate is as followsL

Note 'L' at the string end

--
Regards,
Sergey G. Grekhov

Received on Wednesday, 15 October 2014 06:58:11 UTC