enableInlineTableEditing-after-updating-selection-range-cross-shadow-dom-boundary.html (447B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script> 6 "use strict"; 7 8 document.addEventListener("DOMContentLoaded", () => { 9 window.find("A"); 10 const range = document.createRange(); 11 getSelection().addRange(range); 12 range.setEnd(document.querySelector("template").content, 0); 13 document.execCommand("enableInlineTableEditing", false, "true"); 14 }); 15 </script> 16 <body> 17 <template> 18 </template> 19 A 20 <time contenteditable></time> 21 </body> 22 </html>