deferred-tree-3c.xhtml (1331B)
1 <?xml version="1.0" encoding="UTF-8" standalone="no" ?> 2 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 3 <head> 4 <title>Deferred tree</title> 5 <script src="deferred-tree-util.js" type="text/javascript"/> 6 <script> 7 function animate() 8 { 9 // Set up 10 var div = makeDiv(); 11 var svg = makeSvg(); 12 var target = document.getElementById('tree-container'); 13 14 div.appendChild(svg); 15 target.appendChild(div); 16 17 // These calls *should* have an effect, since they happen 18 // after 'svg' has been attached to the XHTML document. 19 svg.setCurrentTime(1.0); 20 svg.pauseAnimations(); 21 22 // Create another div container, and move svg element there 23 // (temporarily detaching it from the document), before attaching 24 // this new subtree back onto the document. Our current behavior 25 // (which matches Opera 9.64) is to preserve svg's time container 26 // through this manipulation. 27 div2 = makeDiv(); 28 div2.appendChild(svg); 29 div.appendChild(div2); 30 31 // Reftest Snapshot 32 document.documentElement.removeAttribute("class"); 33 } 34 </script> 35 </head> 36 37 <body onload="animate()"> 38 <p id="tree-container"/> 39 </body> 40 </html>