31994: don't output text nodes inside select elements. r=slamm
git-svn-id: svn://10.0.0.236/trunk@63322 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user