From 2b455b6411a27aa328d180ae76a671fef9f32492 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Tue, 22 Apr 2003 17:27:29 +0000 Subject: [PATCH] Checking in for kaie@netscape.com: Hacky fix to guarantee that HTML messages don't get eaten because of missing . b=195020, r=harishd@netscape.com, sr=peterv@netscape.com git-svn-id: svn://10.0.0.236/trunk@141604 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/mozSanitizingSerializer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/content/base/src/mozSanitizingSerializer.cpp b/mozilla/content/base/src/mozSanitizingSerializer.cpp index de8e87634ed..d4aa8368339 100644 --- a/mozilla/content/base/src/mozSanitizingSerializer.cpp +++ b/mozilla/content/base/src/mozSanitizingSerializer.cpp @@ -369,9 +369,13 @@ mozSanitizingHTMLSerializer::SetTitle(const nsString& aValue) { if (IsAllowedTag(eHTMLTag_title)) { - //Write(NS_LITERAL_STRING("")); -- aValue already contains that + // See bug 195020 for a good reason to output the tags. + // It will make sure we have a closing tag, and a + // missing tag won't result in everything + // being eaten up as the title. + Write(NS_LITERAL_STRING("")); Write(aValue); - //Write(NS_LITERAL_STRING("")); + Write(NS_LITERAL_STRING("")); } return NS_OK; }