The textarea element has an unexpected behavior where it URL encodes the data it sends to the pasteboard when a certain pattern is entered. Any string followed by a colon, will result in the contents getting URL encoded when copied. Video example: https://www.dropbox.com/scl/fi/scf8jxjyj6egg3r63wnz4/textarea.mov?rlkey=6qc0fcxa41en9xxvv7df3v382&dl=0 Steps: 1. Type the following string into a textarea: Hello:< 2. Copy the contents of the textarea 3. Paste the result somewhere Expected: The string Hello:< should be pasted Actual: The string hello:%3C is pasted
I can reproduce this on iOS, but not on macOS. Quite weird indeed.
It looks like this does not just affect textarea. Any text that matches this pattern gets URL encoded when copied in iOS Safari 17.
Do you happen to know if this is new in iOS 17, and didn't affect earlier version?
Created attachment 467854 [details] iOS 16.4 vs iOS 17.0 result It appears to be new as of iOS 17. I was able to test on 16.4 as well (the most recent of the simulator versions available) and the same issue was not present. In the attachment you can see the difference between 16.4 and 17 when copying and pasting from a <p> into a <textarea>. It appears that iOS 17 is down casing the pasted string as well.
<rdar://problem/116056298>
Pull request: https://github.com/WebKit/WebKit/pull/18902
Committed 269178@main (a2225304ef16): <https://commits.webkit.org/269178@main> Reviewed commits have been landed. Closing PR #18902 and removing active labels.
*** Bug 264867 has been marked as a duplicate of this bug. ***
This should be working correctly in current iOS 17.2 beta. Please comment if it does not.