Bug 141163

Summary: Dictation fails in iOS8 when a text-transform is applied to an input
Product: WebKit Reporter: Steve <steve>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cfleizach, enrica, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 525.x (Safari 3.2)   
Hardware: iPhone / iPad   
OS: iOS 8.1   
Attachments:
Description Flags
Reproduction none

Description Steve 2015-02-02 10:38:34 PST
Created attachment 245885 [details]
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 'UITextRangeImpl(7082DB80) - start:<UITextPosition: 0x174608a80, 0, {""}, {"WH"}>, end:<UITextPosition: 0x17460a920, 2, {"WH"}, {""}>' we could not find the last hypothesis "Wh". The likely cause is that something modified the text store or the hypothesis during dictation.

It claims that something "modified the text store" 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 "Why doesn't this work"
4. Notice only the first couple characters make it in
5. Notice it fails for all three types of entry (input/textarea/contenteditable)
Comment 1 Radar WebKit Bug Importer 2015-02-02 14:57:09 PST
<rdar://problem/19691253>