title: HierarchyRequestError: DOM Exception 3 when trying to insertbefore
body: <p>While trying to insert option with insertbefore, I am getting this error.
  Uncaught Error: HierarchyRequestError: DOM Exception 3 </p>
  
  <pre><code>var target = $('#divA option:selected').prev().first();
      var options = $('#divA option:selected');
      if (options.prev().text() == target.text()) {
          return;
      }
      options.insertBefore(target);
  </code></pre>
  
  <p>if <code>options.length &gt; 2</code>  this error occurs, if it is 1 or 2 there is no problem. 
  when multiple selection goes to top, all selected items will be disappeared.
  what is the problem? could you help me?</p>
  
  <p>sample :<a href="http://jsfiddle.net/tHVsw/" rel="nofollow">http://jsfiddle.net/tHVsw/</a></p>