revert changes

git-svn-id: svn://10.0.0.236/trunk@60491 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-02-11 15:25:00 +00:00
parent c5a8533d38
commit c38cb85f64
2 changed files with 14 additions and 2 deletions

View File

@@ -759,7 +759,13 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
printf(" '%s' ", text.ToNewCString());
#endif
if (type == eHTMLTag_text)
if (mTagStackIndex > 1 && mTagStack[mTagStackIndex-2] == eHTMLTag_select)
{
// Don't output the contents of SELECT elements;
// Might be nice, eventually, to output just the selected element.
return NS_OK;
}
else if (type == eHTMLTag_text)
{
Write(text);
}