12560: don't output children of SELECT in plaintext output. r=mcafee

git-svn-id: svn://10.0.0.236/trunk@58701 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
2000-01-26 02:19:53 +00:00
parent 492dfa88ca
commit 9998186f58
2 changed files with 14 additions and 2 deletions

View File

@@ -762,7 +762,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);
}