Cannot enter text anymore in a textarea inside an iframe after moving the cursor
| Originator: | ruben.alvarado | ||
| Number: | rdar://14171959 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | iOS devices/Mobile Safari | Product Version: | 6.1.3 |
| Classification: | serious bug | Reproducible: | always |
Summary: In a web document, if a touch event listener (touchstart/touchmove/touchend) is added to any HTML node enclosing a textarea/text input located inside an iframe and we move the cursor while editing the text, it becomes then impossible to enter any new text (tapping keys on the keyboard will result in having no effect). This problem occurs when we attach a touch listener to a node inside the iframe containing the input and/or to a node containing the iframe. This is true even if the listener is an empty javascript function. This problem can be seen on iPhone/iPod Touch/iPad/iOS Simulator and Mobile Safari. Steps to Reproduce: 1.Get the related test case files at: https://github.com/rubenalvarado/bug_ios_textarea_in_iframe 2.Put the files on a web server and load them in a UIWebView or Mobile Safari 2.Tap the textarea and enter some text 3.Move the cursor somewhere else inside the textarea 4.Try to enter new text in the textarea Expected Results: Text appears in the textarea as the user is typing Actual Results: No text appears (is entered) Regression: This issue is present on iOS 6.0 and iOS 6.1 (maybe also on previous versions, did not test). Notes: https://github.com/rubenalvarado/bug_ios_textarea_in_iframe
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
More information on the bug
After further investigation, I noticed that other events and HTML tags are concerned by the bug. So, here is an exhaustive list so far: