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

UNCONFIRMED
Unassigned

Status

()

defect
UNCONFIRMED
7 years ago
2 years ago

People

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

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Reporter

Description

7 years ago
Posted 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.
Reporter

Updated

7 years ago
Component: Untriaged → Serializers
OS: Mac OS X → All
Product: Firefox → Core
Hardware: x86 → All
Version: 20 Branch → Trunk
Reporter

Updated

7 years ago
See Also: → 39098
Reporter

Updated

7 years ago
Attachment #693116 - Attachment mime type: text/plain → text/html
Reporter

Comment 1

7 years ago
Attachment #693116 - Attachment is obsolete: true
Reporter

Updated

7 years ago
Attachment #693138 - Attachment mime type: text/plain → text/html

Comment 2

7 years ago
Seems ti be duplication of Bug 305381
It certainly is a duplicate.

Comment 4

4 years ago
Related to "Bug 305381 - Find doesn't ignore elements styled as display:none (finds hidden/invisible elements) "
See Also: → 305381

Updated

2 years ago
See Also: → 1301632
You need to log in before you can comment on or make changes to this bug.