Checking in for kaie@netscape.com: Hacky fix to guarantee that HTML messages don't get eaten because of missing </title>. 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
This commit is contained in:
@@ -369,9 +369,13 @@ mozSanitizingHTMLSerializer::SetTitle(const nsString& aValue)
|
||||
{
|
||||
if (IsAllowedTag(eHTMLTag_title))
|
||||
{
|
||||
//Write(NS_LITERAL_STRING("<title>")); -- 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 </title> tag won't result in everything
|
||||
// being eaten up as the title.
|
||||
Write(NS_LITERAL_STRING("<title>"));
|
||||
Write(aValue);
|
||||
//Write(NS_LITERAL_STRING("</title>"));
|
||||
Write(NS_LITERAL_STRING("</title>"));
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user