title: IE 11 Error message - Could not complete the operation due to error 800a025e
body: <p>I am getting the following error message in IE 11 : 
   <strong>Could not complete the operation due to error 800a025e.</strong></p>
  
  <p>This error is being thrown when range.select() is called</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  function ExtendSelection() {
        var sel;
        if (document.body.createTextRange) { // Internet Explorer
            var range = document.body.createTextRange();
            range.moveStart('character', 0);
            range.collapse(true);
            range.moveStart('character', 29); //causes an exception 
            //range.moveStart('character', 30);//No exception 
            range.moveEnd('character', 177);
            range.select();
            alert(range.text);
        } else {
            alert("Your browser does not support this example!");
        }
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button onclick="ExtendSelection ()"&gt;Click to reproduce the error&lt;/button&gt;
  &lt;a &gt;
      &lt;span&gt;
          &lt;div&gt;
              &lt;select&gt;                         
                  &lt;option&gt;CopyTo:&lt;/option&gt;
                 &lt;option&gt;Headnote&lt;/option&gt;
                  &lt;option&gt;Synopsis&lt;/option&gt;
                  &lt;option&gt;Statute&lt;/option&gt;
              &lt;/select&gt;
          &lt;/div&gt;
      &lt;/span&gt;
  &lt;/a&gt;
  &lt;a&gt;
      &lt;span&gt;Pages: 8 - 8&lt;/span&gt;
  &lt;/a&gt;
  &lt;a&gt;
      &lt;span&gt;nortlaw&lt;/span&gt;
  &lt;/a&gt;
  &lt;input&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Replicated for IE 11 browsers only -><a href="http://jsfiddle.net/1ytmj119/36/" rel="nofollow">JsFiddle example </a></p>