31994: don't output text nodes inside select elements. r=slamm

This commit is contained in:
akkana%netscape.com 2000-03-17 22:15:14 +00:00
Родитель 2df1db7c13
Коммит cadcfdc0e0
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -765,7 +765,9 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
}
else if (type == eHTMLTag_text)
{
Write(text);
// Bug 31994 says we shouldn't output the contents of SELECT elements.
if (mTagStackIndex <= 0 || (mTagStack[mTagStackIndex-1] != eHTMLTag_select))
Write(text);
}
else if (type == eHTMLTag_entity)
{

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

@ -765,7 +765,9 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
}
else if (type == eHTMLTag_text)
{
Write(text);
// Bug 31994 says we shouldn't output the contents of SELECT elements.
if (mTagStackIndex <= 0 || (mTagStack[mTagStackIndex-1] != eHTMLTag_select))
Write(text);
}
else if (type == eHTMLTag_entity)
{