default: break;
nsHTMLFragmentContentSink::AddLeaf(const nsIParserNode& aNode){  nsresult result = NS_OK;  switch (aNode.GetTokenType()) {    case eToken_start:      {        FlushText();                // Create new leaf content object        nsCOMPtr<nsIHTMLContent> content;        nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType());        result = NS_CreateHTMLElement(getter_AddRefs(content), nodeType);                if (NS_OK == result) {          result = AddAttributes(aNode, content);          if (NS_OK == result) {            nsIContent *parent = GetCurrentContent();                        if (nsnull == parent) {              parent = mRoot;            }                        parent->AppendChildTo(content, PR_FALSE);          }        }        switch(nodeType) {          case eHTMLTag_img:    // elements with 'SRC='          case eHTMLTag_frame:          case eHTMLTag_input:            AddBaseTagInfo(content);                 break;          case eHTMLTag_base:            ProcessBaseTag(content);            break;        }      }      break;    case eToken_text:    case eToken_whitespace:    case eToken_newline:      result = AddText(aNode.GetText());      break;          case eToken_entity:      {        nsAutoString tmp;        PRInt32 unicode = aNode.TranslateToUnicodeStr(tmp);        if (unicode < 0) {          result = AddText(aNode.GetText());        }        else {          result = AddText(tmp);        }      }      break;  }    return result;}