real fix for the landing of bug 195262, npob, don't copy attr value, r/sr=peterv

This commit is contained in:
axel%pike.org 2005-11-02 07:40:40 +00:00
parent 8536c6897f
commit f9b7910be7

View File

@ -264,10 +264,9 @@ void txXMLOutput::closeStartTag(MBool aUseEmptyElementShorthand)
txOutAttr* att;
while ((att = (txOutAttr*)iter.next())) {
*mOut << SPACE;
nsCAutoString attrVal;
att->mName.mLocalName->ToUTF8String(attrVal);
// XXX consult the XML spec what we really wanna do here
*mOut << attrVal.get();
const char* attrVal;
att->mName.mLocalName->GetUTF8String(&attrVal);
*mOut << attrVal;
if (!att->mShorthand) {
*mOut << EQUALS << DOUBLE_QUOTE;
printWithXMLEntities(att->mValue, MB_TRUE);