Closed Bug 294615 Opened 19 years ago Closed 17 years ago

Search/find fails on words containing soft hyphen (­)

Categories

(Core Graveyard :: Embedding: APIs, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: virkkila, Assigned: asaf)

References

()

Details

(Keywords: html4, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050306 Firefox/1.0.1 (Debian package 1.0.1-2)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050306 Firefox/1.0.1 (Debian package 1.0.1-2)

Soft hyphens (­) are never rendered in Firefox (Bug 9101). Many sites (esp
news outlets) use ­ since every other browser has support for them. This
causes problems for find, since "dis­cre­tion­a­ry" will be
rendered as "discretionary" but will not mach when you search for it.

Reproducible: Always

Steps to Reproduce:
1. Go to: https://bugzilla.mozilla.org/attachment.cgi?id=906
2. Press ctrl+f
3. Type "discretionary"
Actual Results:  
The word is not found

Expected Results:  
The ­ should be ignored, and the word should be found.
Bug 9101 is fixed, but this bug is still present.

We should ignore ­ when searching, if possible.
http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.3 says "For operations such as searching and sorting, the soft hyphen should always be ignored."
Keywords: html4, testcase
Attached patch patchSplinter Review
Attachment #273268 - Flags: superreview?(jst)
Attachment #273268 - Flags: review?(jst)
Assignee: nobody → mano
Component: Find Toolbar / FastFind → Embedding: APIs
Priority: -- → P3
Product: Firefox → Core
Target Milestone: --- → mozilla1.9beta1
Version: unspecified → Trunk
Status: NEW → ASSIGNED
Attachment #273268 - Flags: superreview?(jst)
Attachment #273268 - Flags: superreview+
Attachment #273268 - Flags: review?(jst)
Attachment #273268 - Flags: review+
mozilla/embedding/components/find/src/nsFind.cpp 1.47
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
We _may_ also want to ignore ​ (zero width space), which can be used as a line-breaking character without visible hyphen (for example in URLs).
Hi Jonathan, that seems a good idea to me, I filed bug 389651 for it.
Flags: in-testsuite?
Depends on: 404773
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: