tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

track-element-dom-change.html (499B)


      1 <!DOCTYPE html>
      2 <title>Simple DOM mutations with track element</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script>
      6 test(function() {
      7    var video = document.createElement("video");
      8    var testTrack = document.createElement("track");
      9 
     10    // Append the track element to the video element.
     11    video.appendChild(testTrack);
     12 
     13    // Set the mode of the text track to "showing".
     14    testTrack.track.mode = "showing";
     15 });
     16 </script>