<!DOCTYPE html>
<meta charset="utf-8">
<script>
  function go() {
    let b = window.getSelection();
    b.setPosition(a.insertRow(0), 0)
    b.modify("extend", "right", "word")
  }
</script>

<body onload=go()>
  <dd dir="rtl">M!}\\)M6\X</dd>
  <table id="a">
    <tr>
