revert changes
git-svn-id: svn://10.0.0.236/trunk@60491 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user