From 7ac1abf6919938564fdec87d721e72bc60d97167 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 --- content/base/src/mozSanitizingSerializer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/base/src/mozSanitizingSerializer.cpp b/content/base/src/mozSanitizingSerializer.cpp index de8e87634edb..d4aa83683391 100644 --- a/content/base/src/mozSanitizingSerializer.cpp +++ b/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; }