Backing out change to write the override charset in a meta tag.

The charset menu should be changing the meta tag in the document,
which the output sink will pick up automatically without needing
any special code.  See bugs 12085 (on seeing two meta charset tags)
and 7849 (that the charset menu should change the actual meta tag
in the document).
This commit is contained in:
akkana%netscape.com 1999-09-10 22:32:32 +00:00
Родитель 5124a51e86
Коммит 136a236ded
2 изменённых файлов: 0 добавлений и 18 удалений

Просмотреть файл

@ -935,15 +935,6 @@ void nsHTMLContentSinkStream::AddStartTag(const nsIParserNode& aNode)
if (tag == eHTMLTag_head)
{
if (mCharsetOverride.Length() > 0)
{
Write(NS_LINEBREAK);
Write("<meta http-equiv=\"Content-Type\" content=\"text/html\"; charset=\"");
Write(mCharsetOverride);
Write("\">");
Write(NS_LINEBREAK);
}
if(mDoHeader)
{
Write(gHeaderComment);

Просмотреть файл

@ -935,15 +935,6 @@ void nsHTMLContentSinkStream::AddStartTag(const nsIParserNode& aNode)
if (tag == eHTMLTag_head)
{
if (mCharsetOverride.Length() > 0)
{
Write(NS_LINEBREAK);
Write("<meta http-equiv=\"Content-Type\" content=\"text/html\"; charset=\"");
Write(mCharsetOverride);
Write("\">");
Write(NS_LINEBREAK);
}
if(mDoHeader)
{
Write(gHeaderComment);