B>Throws:</B><DD><CODE>org.w3c.dom.ranges.RangeException</CODE> - INVALID_NODE_TYPE_ERR: Raised if an ancestor of <code>refNode</code> 
   is an Entity, Notation or DocumentType node or if 
   <code>refNode</code> is a Document, DocumentFragment, Attr, Entity, 
   or Notation node.<DD><CODE>org.w3c.dom.DOMException</CODE> - INVALID_STATE_ERR: Raised if <code>detach()</code> has already been 
   invoked on this object.
   <br>WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created 
   from a different