title: Webview delegate's shouldChangeSelectedDOMRange: called with document-fragment instead of full document
body: <p>My web view has several  elements, which can be edited by the user to update model objects in the OS X host application.</p>
  
  <p>For some of these  elements, when editing delegate methods like <code>webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:</code> are called, the range arguments are inside a #document-fragment container -without any attribute information at all. </p>
  
  <p>Thus, it is nearly impossible to figure out, what node is being edited - as all id attributes have been stripped.</p>
  
  <pre><code>po proposedRange.commonAncestorContainer.path 
  /#document-fragment/DIV/DIV/DIV/#text
  </code></pre>
  
  <p>For other input elements, I get the whole DOM path, with all attribute information intact:</p>
  
  <pre><code>po proposedRange.commonAncestorContainer.path
  /#document/HTML/BODY/DIV/DIV/DIV/TABLE/TBODY/TR/TD/DIV/DIV/DIV/DIV/TABLE/TBODY/TR/TD/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/DIV/H1/SPAN/#text
  </code></pre>
  
  <p>Any ideas what could cause this difference in behavior?</p>