real fix for the landing of bug 195262, npob, don't copy attr value, r/sr=peterv
git-svn-id: svn://10.0.0.236/trunk@140386 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user