title: Getting the parent node for selected text with rangy library
body: <p>I'm using the <a href="http://code.google.com/p/rangy/" rel="noreferrer">rangy</a> library and can select text in a content editable as follows:</p>
  
  <pre><code>var sel = rangy.getSelection();
  alert(sel);
  </code></pre>
  
  <p>I can't figure out how to get the selected text parent node/element.  For example, if I'm selecting text that is </p>
  
  <pre><code>&lt;strong&gt;My Text&lt;/strong&gt; 
  or
  &lt;h1&gt;My Title&lt;/h1&gt;
  </code></pre>
  
  <p>how can I include the strong node or H1 element also?</p>