PRBool IsInDoc() const { return !!mDocument;
nsGenericDOMDataNode::IsInDoc() const { nsIContent *parent = GetParent(); if (parent) { return parent->IsInDoc();
  PRBool IsInDoc() const  {    return !!mDocument;  }