title: Rangy & ContentEditable - Set the Caret
body: <p>I'm trying out the latest version of the "rangy" jQuery plugin (1.2 beta) to set the caret in a contenteditable DIV with a specific offset.</p>
  
  <p>However, it responds with a weird error in Firefox:
  Security error" code: "1000</p>
  
  <p>Here is the offending code:</p>
  
  <pre><code>var el = $("#editablediv"), index = 11;
  var range = rangy.createRange();
  range.setStart(el, index);
  var sel = rangy.getSelection();
  sel.setSingleRange(range);
  </code></pre>
  
  <p>The code fails when calling the setStart function.</p>
  
  <p>Could anyone give an example of the proper usage of rangy please?</p>