title: HTML5 Video.CurrentTime always set to 0
body: <p>I am trying to a HTML5 make a video start from a given current time. I am using a javascript function who does the follows:</p>
  
  <pre><code>function goToMinute(params) {
      var video = document.getElementById("video_tags");
      video.currentTime = 100;
      video.play();
  }
  </code></pre>
  
  <p>This function is called on click since I have a list of positions and when I click on of them I pass the position time through parameter and then I want to start video from there.</p>
  
  <p>I already checked and the params is giving me the number that I want, like 10.10 for instance (in seconds). </p>
  
  <p>Since it was not working I tried to put a value there like I showed in the piece of code before:</p>
  
  <pre><code>    video.currentTime = 100;
  </code></pre>
  
  <p>Debugging I found out that my <code>video.currentTime</code> attribution is setting <code>video.currentTime = 0</code> and video starts from the beginning. Why is this happening? </p>
  
  <p>Code that calls the function:</p>
  
  <pre><code>           &lt;th&gt;&lt;a onclick="goToMinute(&lt;%= manual.time %&gt;)"&gt;&lt;%= manual.time %&gt;&lt;/a&gt;&lt;/th&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Msxlg.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Msxlg.jpg" alt="Also I have added a picture with the debug on chrome:"></a></p>
  
  <p>I can also add that already tried in Firefox, Chrome and Edge.</p>