Bug 16675

Summary: soft hyphen breaks search function
Product: WebKit Reporter: Mathias Nater <mnater>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: adele, ap, darin, mitz, paulirish, progame+wk
Priority: P3 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
URL: http://www.mnn.ch/hyph/hyphenation1.html
Attachments:
Description Flags
simple html file with soft-hyphenated words none

Mathias Nater
Reported 2007-12-30 03:08:56 PST
Words containing one or more soft hyphen (&shy;) are't found by Safari's Search-function (cmd-F). HTML 4.01 says: "For operations such as searching and sorting, the soft hyphen should always be ignored." (http://www.w3.org/TR/html401/struct/text.html#h-9.3.3)
Attachments
simple html file with soft-hyphenated words (379 bytes, text/html)
2007-12-30 03:16 PST, Mathias Nater
no flags
Mathias Nater
Comment 1 2007-12-30 03:16:28 PST
Created attachment 18188 [details] simple html file with soft-hyphenated words
mitz
Comment 2 2007-12-30 14:15:13 PST
Stanislav Yaglo
Comment 3 2008-11-11 07:22:32 PST
Is there any activity regarding this problem?
Yair Yogev
Comment 4 2009-09-28 14:11:18 PDT
this also applies to Windows the matching Chromium bug- http://crbug.com/12690
Darin Adler
Comment 5 2009-10-01 12:26:10 PDT
A fix to this should be relatively straightforward. The searching code is in TextIterator.cpp and uses ICU's usearch functions when available. I"m a bit surprised this is not working, because I would have expected the ICU search functions to handle soft hyphens already.
Darin Adler
Comment 6 2009-10-01 12:26:50 PDT
Someone might want to file an ICU bug complaining that usearch doesn't automatically ignore soft hyphens.
Paul Irish
Comment 7 2010-02-14 14:51:21 PST
The bug is filed with ICU. I just noted a few possible duplicates on their end. http://bugs.icu-project.org/trac/ticket/7233#comment:4
mitz
Comment 8 2010-09-28 12:41:29 PDT
Fixed along with Bug 11154.
Note You need to log in before you can comment on or make changes to this bug.