1574544.html (499B)
1 <style> 2 * { display: table-caption } 3 body { display: contents } 4 </style> 5 <script> 6 function onLoad() { 7 // For emulating the traditional behavior, collapse Selection to end of the 8 // text node in the <th> which is the deepest last child of the <body>. 9 const th = document.querySelector("th"); 10 getSelection().collapse(th.lastChild, th.lastChild.length); 11 document.execCommand("enableInlineTableEditing"); 12 } 13 </script> 14 <body onload="onLoad()"> 15 <table contenteditable> 16 <th> 17 </th></table></body>