Descriptionfilter out invisible elements
1) un-nest DomToSaxVisitor from DomToSaxParser and remove DomToSaxParser
2) impl FilteringDomVisitor
- ContentExtractor calls FilteringDomVisitor which calls DomToSaxVisitor
- filters out invisible nodes, including computed style: display:none,
visibility:hidden, hidden attribute
- passes other nodes on to DomToSaxVisitor for processing by ContentHandler
- added tests
BUG=367243
R=cjhopman@chromium.org
Committed: 0a31800
Patch Set 1 #Patch Set 2 : fixed comments #Patch Set 3 : rm unused import #
Total comments: 4
Patch Set 4 : addressed comment #Patch Set 5 : reorder import #
Total comments: 2
Patch Set 6 : don't use ContentExtractor.parse in tests, so that it can be private #Patch Set 7 : addressed comments #
Total comments: 4
Patch Set 8 : addressed comments #Messages
Total messages: 11 (0 generated)
|