k.Truncate(); k.Append(key);
k.Assign(key);
HTMLContentSink::AddAttributes(const nsIParserNode& aNode,                               nsIHTMLContent* aContent, PRBool aNotify){  // Add tag attributes to the content attributes  nsAutoString k, v;  PRInt32 ac = aNode.GetAttributeCount();  for (PRInt32 i = 0; i < ac; i++) {    // Get upper-cased key    const nsAReadableString& key = aNode.GetKeyAt(i);    k.Truncate();    k.Append(key);    k.ToLowerCase();    nsIAtom*  keyAtom = NS_NewAtom(k);    nsHTMLValue value;    if (NS_CONTENT_ATTR_NOT_THERE ==         aContent->GetHTMLAttribute(keyAtom, value)) {      // Get value and remove mandatory quotes      GetAttributeValueAt(aNode, i, v);      // Add attribute to content      aContent->SetAttr(kNameSpaceID_HTML, keyAtom, v,aNotify);    }    NS_RELEASE(keyAtom);  }  return NS_OK;}