<html>
<head>
<script>
window.onload = function() {
  document.querySelector('object').appendChild(document.querySelector('#move-me'));
};
</script>
</head>
<body dir="rtl">
<object></object>
<table>
  <caption style="display:none">
    <span>
      <div id="move-me"></div>
    </span>
  </caption>
</table>
</body>
