move-owned-inside-another-owned.html (276B)
1 <script> 2 window.onload = function() { 3 // Reparent z1 under z2. 4 const z2 = document.getElementById('z2'); 5 z2.appendChild(document.querySelector('#z1')); 6 } 7 </script> 8 <div aria-owns="z1 z2"> 9 <progress> 10 <div id="z1"></div> 11 <div id="z2"></div> 12 </progress> 13 </div>