<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22247</bug_id>
          
          <creation_ts>2008-11-13 16:21:11 -0800</creation_ts>
          <short_desc>Find in a page does not normalize</short_desc>
          <delta_ts>2009-06-11 13:23:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jungshik Shin">jshin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98675</commentid>
    <comment_count>0</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2008-11-13 16:21:11 -0800</bug_when>
    <thetext>1. Go to http://fr.wikipedia.org
2. In &apos;Find in a page box&apos;, type U+0065 U+0301 ( é ) [1]

Expected : A lot of matches are found
Actual: No match is found

All the e with acute accent in the page are in composed form (U+00E9) and does not match the decomposed representation.

A short-term fix : Convert the input (&apos;needle&apos;) to NFC. This will take care of the majority of cases because most web pages tend to use composed forms when available. 

In the long run : NFC might not be the best choice. &apos;Hay&apos; may have be normalized as well.

At least on Windows, some African-language  keyboards produce decomposed forms even for letters with accent which have a composed form representation. 

This may also be an issue for Japanese voicing marks. I barely remember some hard-coded normalization for them in Webkit, but I haven&apos;t checked whether that is used in &apos;Find in a page&apos;. If they&apos;re not taken care of, it&apos;s a rather serious issue. 

Reported against chrome: http://crbug.com/1100

[1] Go to http://rishida.net/scripts/uniview/conversion.php and type &apos;U+0065U+0301&apos; in the second box on the left and copy&apos;n&apos;paste the result in the top-left box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125365</commentid>
    <comment_count>1</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2009-06-11 13:23:25 -0700</bug_when>
    <thetext>This was fixed a while ago using the usearch apis of ICU (in TextIterator.cpp). It&apos;s still not locale-specific, but that&apos;s a separate issue. 
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>