aContent->GetDocument(*getter_AddRefs(doc));
aContent->GetDocument(getter_AddRefs(doc));
GetHTMLDocumentNamespace(nsIContent *aContent){  nsCOMPtr<nsIDocument> doc;  aContent->GetDocument(*getter_AddRefs(doc));  NS_ASSERTION(doc, "This method should never be called on content nodes "               "that are not in a document!");#ifdef DEBUG  {    nsCOMPtr<nsIHTMLDocument> htmldoc(do_QueryInterface(doc));    if (!htmldoc) {      NS_ERROR("Huh, how did this happen? This should only be used with "               "HTML documents!");    }  }#endif  return doc->IsCaseSensitive() ? kNameSpaceID_XHTML : kNameSpaceID_None;}