1890899.html (645B)
1 <html class="reftest-wait"> 2 <script> 3 // This test ensures Firefox doesn't crash when there's a selection that crosses 4 // the shadow boundary, and the ancestor of the end boundary is 5 // later being removed from the DOM. 6 window.addEventListener("DOMContentLoaded", () => { 7 try { 8 let sel = window.getSelection() 9 o3.select() 10 o1.insertBefore(o4, o1.childNodes[0]) 11 sel.extend(o4.attachShadow({mode: "open"})) 12 } catch (e) {} 13 o2.outerHTML = undefined 14 document.documentElement.removeAttribute("class"); 15 }) 16 </script> 17 <h2> 18 <content id="o1" contenteditable="true"> 19 </h2> 20 <samp id="o2"> 21 <input id="o3"> 22 <h1 id="o4" hidden=""> 23 </html>