while (nsnull != attr) { PRInt32 index; for (index = aIndent; --index >= 0; ) fputs("  ", out); attr->ToString(buffer);
nsHTMLValue value; GetAttribute(mAttrNames[index], value); nsAutoString  buffer; mAttrNames[index]->ToString(buffer); if (eHTMLUnit_Null != value.GetUnit()) { buffer.AppendWithConversion(" = "); value.AppendToString(buffer); }
nsHTMLMappedAttributes::List(FILE* out, PRInt32 aIndent) const{  const HTMLAttribute*  attr = &mFirst;  nsAutoString buffer;  while (nsnull != attr) {    PRInt32 index;    for (index = aIndent; --index >= 0; ) fputs("  ", out);    attr->ToString(buffer);    fputs(buffer, out);    fputs("\n", out);    attr = attr->mNext;  }  return NS_OK;}