<?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>141163</bug_id>
          
          <creation_ts>2015-02-02 10:38:34 -0800</creation_ts>
          <short_desc>Dictation fails in iOS8 when a text-transform is applied to an input</short_desc>
          <delta_ts>2015-02-02 14:57:09 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 8.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve">steve</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>enrica</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1066143</commentid>
    <comment_count>0</comment_count>
      <attachid>245885</attachid>
    <who name="Steve">steve</who>
    <bug_when>2015-02-02 10:38:34 -0800</bug_when>
    <thetext>Created attachment 245885
Reproduction

When you have a text input with text-transform:uppercase applied to it then dictating into that field using iOS8 will fail after the second letter.

This reproduces in Safari on iPad using iOS8.1.2

It also fails in a UIWebView where the XCode logs show many errors like this:

Given text range &apos;UITextRangeImpl(7082DB80) - start:&lt;UITextPosition: 0x174608a80, 0, {&quot;&quot;}, {&quot;WH&quot;}&gt;, end:&lt;UITextPosition: 0x17460a920, 2, {&quot;WH&quot;}, {&quot;&quot;}&gt;&apos; we could not find the last hypothesis &quot;Wh&quot;. The likely cause is that something modified the text store or the hypothesis during dictation.

It claims that something &quot;modified the text store&quot; which I assume is what text-transform does.


Steps to reproduce:

1. Open attached HTML file on iPad running iOS 8.1.2
2. Tap into a red region
3. Tap the dictation button on the keyboard and say &quot;Why doesn&apos;t this work&quot;
4. Notice only the first couple characters make it in
5. Notice it fails for all three types of entry (input/textarea/contenteditable)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1066252</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-02-02 14:57:09 -0800</bug_when>
    <thetext>&lt;rdar://problem/19691253&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>245885</attachid>
            <date>2015-02-02 10:38:34 -0800</date>
            <delta_ts>2015-02-02 10:38:34 -0800</delta_ts>
            <desc>Reproduction</desc>
            <filename>dictationFailInUppercaseInput.html</filename>
            <type>text/html</type>
            <size>638</size>
            <attacher name="Steve">steve</attacher>
            
              <data encoding="base64">CjxodG1sPgo8aGVhZD4KPHN0eWxlPgoJcC5lZGl0YWJsZSwgaW5wdXQsIHRleHRhcmVhIHsKCQl0
ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwoJCXdpZHRoOiAxMDAlOwoJCWhlaWdodDogMTAwcHg7
CgkJYmFja2dyb3VuZC1jb2xvcjogcmdiYSgyNTUsMCwwLDAuNSk7Cgl9Cjwvc3R5bGU+CjwvaGVh
ZD4KPGJvZHk+Cgo8aDI+U3RlcHMgdG8gUmVwcm9kdWNlOjwvaDI+Cgo8b2w+CjxsaT5Vc2luZyBh
biBpUGFkIHdpdGggaU9TIDguMS4yLi4uPC9saT4KPGxpPlRhcCBpbnRvIGEgcmVkIHJlZ2lvbjwv
bGk+CjxsaT5UYXAgdGhlIGRpY3RhdGlvbiBidXR0b24gb24gdGhlIGtleWJvYXJkIGFuZCBzYXkg
IldoeSBkb2Vzbid0IHRoaXMgd29yayI8L2xpPgo8bGk+Tm90aWNlIG9ubHkgdGhlIGZpcnN0IGNv
dXBsZSBjaGFyYWN0ZXJzIG1ha2UgaXQgaW48L2xpPgo8bGk+Tm90aWNlIGl0IGZhaWxzIGZvciBh
bGwgdGhyZWUgdHlwZXMgb2YgZW50cnk8L2xpPgo8L29sPgoKCjxwIGNsYXNzPSJlZGl0YWJsZSIg
Y29udGVudGVkaXRhYmxlPSJ0cnVlIj5Db250ZW50RWRpdGFibGU8L3A+Cgo8aW5wdXQgdHlwZT0i
dGV4dCIgdmFsdWU9ImlucHV0Ij4KCjx0ZXh0YXJlYT5UZXh0QXJlYTwvdGV4dGFyZWE+Cgo8L2Jv
ZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>