Open Bug 822458 Opened 8 years ago Updated 19 days ago

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


(Core :: DOM: Serializers, defect)






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




(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:

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

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 → --
You need to log in before you can comment on or make changes to this bug.