2 <html class=
"reftest-wait">
7 var doc
= document
.getElementsByTagName("iframe")[0].contentDocument
;
8 var vid
= doc
.getElementsByTagName("video")[0];
11 // The doc.write forces us to recreate doc's body.
12 doc
.write("Hello, world");
13 doc
.body
.appendChild(vid
);
14 document
.documentElement
.removeAttribute("class");
18 setTimeout(runnable
, 0);
22 <body onload='start()'
>
23 <iframe srcdoc=
"<body><video src=http://localhost:8080/ controls=true loop=true autoplay=true autobuffer=false></video>"></iframe>