From 57e169cfd0ae0b1d8f78d6ba0a0d3e8c59068ac9 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Tue, 19 Nov 2002 21:47:13 +0000 Subject: [PATCH] Temp. patch to fix DOM TO TEXT CONVERSION. r=jst --- content/base/src/nsPlainTextSerializer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/base/src/nsPlainTextSerializer.cpp b/content/base/src/nsPlainTextSerializer.cpp index d8284852b523..c895a500fa07 100644 --- a/content/base/src/nsPlainTextSerializer.cpp +++ b/content/base/src/nsPlainTextSerializer.cpp @@ -420,8 +420,8 @@ nsPlainTextSerializer::OpenContainer(const nsIParserNode& aNode) NS_IMETHODIMP nsPlainTextSerializer::CloseContainer(const nsHTMLTag aTag) { - // XXX What do we need this? - // mParserNode = NS_CONST_CAST(nsIParserNode*, &aNode); + // XXXXXXXXXX - Do this to fix the regression test. + mParserNode = 0; return DoCloseContainer(aTag); } @@ -899,7 +899,7 @@ nsPlainTextSerializer::DoCloseContainer(PRInt32 aTag) nsAutoString value; nsresult rv = GetAttributeValue(nsHTMLAtoms::type, value); - if (NS_SUCCEEDED(rv) && value.EqualsIgnoreCase("cite")) { + if (mCiteQuoteLevel) { mCiteQuoteLevel--; } else {