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