mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
31994: don't output text nodes inside select elements. r=slamm
This commit is contained in:
parent
42a831c815
commit
927dd89b53
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user