Closed Bug 375030 Opened 17 years ago Closed 14 years ago

Find command can find invisible text, and when it does, the Find command seems to do nothing

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 407817

People

(Reporter: jasonspiro4, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy)

 

Reproducible: Always

Steps to Reproduce:
1. Visit http://groups.google.ca/group/linux.debian.user/browse_thread/thread/1526fd9de960b8b9/c1603dd3e610e9c4?lnk=st&q=recommends+%22suggests+*+doc&rnum=6&hl=fr#c1603dd3e610e9c4
2. Press: Ctrl+f
3. Type: doc
4. Press Ctrl+g (which is the Find Again key) a few times
Actual Results:  
After the second, third, and fourth time you press Ctrl+g, Firefox scrolls to a certain point but no text gets highlighted.  (This is because Firefox has found the search string inside hidden text.  After the fifth time Firefox starts finding normal visible text again.)

Expected Results:  
Option A: I would prefer if Firefox should force the hidden text to show itself when found.

If Option A is practical, Firefox should not search among undisplayed text when doing Find commands.

There's one other bug in Bugzilla about Find and hidden text (Bug 354066 – Search results can become hidden behind a fixed position div) but I have no clue if it's related to this bug or not.
Above, instead of "If Option A is practical" I meant "If Option A is IMpractical".  Oops.
I forgot to mention:  To see the hidden text, click the "Tout développer" (Expand all) link at the top of the Google Groups page.
I *thought* this was finding things in divs that had display:none, but that doesn't appear to be the case. I'm sending this over to core for triage since I don't have time to reduce Google Groups to something understandable...
Component: Find Toolbar / FastFind → General
Product: Firefox → Core
QA Contact: fast.find → general
OS: Linux → All
Hardware: PC → All
> I *thought* this was finding things in divs that had display:none, but that
> doesn't appear to be the case.

Firefox 3.0 does "find" text inside display:none divs.
Example: 
- open http://forum.ubuntuusers.de/topic/103462/630/print/ 
- search for "Wohnort"
all search results are in divs with class="userinfo" which are hidden by CSS (http://static.ubuntuusers.de/templates/print/forum.css, line 10).
(In reply to comment #4)
> Firefox 3.0 does "find" text inside display:none divs.

That is Toolkit bug 305381.
So the original Google Groups example talks about finding text in collapsed posts, which are currently just text in a <div style="height: 15px; overflow:hidden;">.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.