rv = NS_NewHTMLText(&text, tmp.GetUnicode(), tmp.Length());
rv = NS_NewHTMLText(&text, tmp.get(), tmp.Length());
nsresult BasicTest::AppendSimpleSpan(nsIContent* aContainer, const char* aTag, const char* aText){  nsIHTMLContent* span;  nsIHTMLContent* text;  nsIAtom* atom = NS_NewAtom(aTag);  nsresult rv = NS_NewHTMLContainer(&span, atom);  if (NS_OK == rv) {    nsStringBuf tmp;    tmp.Append(aText);    rv = NS_NewHTMLText(&text, tmp.GetUnicode(), tmp.Length());    if (NS_OK == rv) {      span->AppendChildTo(text);      NS_RELEASE(text);    }    aContainer->AppendChildTo(span);    NS_RELEASE(span);  }  NS_RELEASE(atom);  return rv;}