title: IE 8 getSelection().anchorOffset alternative
body: <p>I have got a Javascript code, which works well for modern browsers:</p>
  
  <pre><code>var offset = getSelection().anchorOffset;
  var node   = getSelection().anchorNode;
  </code></pre>
  
  <p>How can I get the same result on IE 8, which does not have window.getSelection() method?</p>