Closed Bug 822458 Opened 12 years ago Closed 3 years ago

Elements with visibility:hidden, visibility:collapse, or display:none are not ignored by Find in page

Categories

(Core :: DOM: Serializers, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 305381

People

(Reporter: xn--mlform-iua, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached file display-none-find-in-page-bug.html (obsolete) —
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:20.0) Gecko/20121217 Firefox/20.0
Build ID: 20121217030850

Steps to reproduce:

1. Open the attached file, 'display-none-find-in-page-bug.html'.

2. Note that the body element of that file looks as follows:

    <body>
       <p>foo<span hidden>BAR</span>baz</p>
       <p>foo<span>BAR</span>baz</p>
    </body>

3. Enter the word fooBARbaz in the Find-in-page search field 
   (Ctrl-F or Cmd-F)

4. Pressed «Highlight all» once. And/or press «Next» button twice.


Actual results:

The word fooBARbaz gets highlighted/found twice.


Expected results:

The word fooBARbaz should have been highlighted/found only once.
Component: Untriaged → Serializers
OS: Mac OS X → All
Product: Firefox → Core
Hardware: x86 → All
Version: 20 Branch → Trunk
See Also: → 39098
Attachment #693116 - Attachment mime type: text/plain → text/html
Attachment #693116 - Attachment is obsolete: true
Attachment #693138 - Attachment mime type: text/plain → text/html
Seems ti be duplication of Bug 305381
It certainly is a duplicate.
Related to "Bug 305381 - Find doesn't ignore elements styled as display:none (finds hidden/invisible elements) "
See Also: → 305381
See Also: → 1301632
Severity: normal → --
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: