selection-modify-extend-backward-character-to-outside-body-in-designMode.html (236B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <script> 4 onload = () => { 5 document.designMode = 'on'; 6 getSelection().selectAllChildren(document.body); 7 getSelection().modify('extend', 'backward', 'character'); 8 }; 9 </script> 10 <audio controls>