Safari: Doesn’t strip extraneous return char before line of text when pasting in single-line text entry field

Posted by Pierre Igot in: Macintosh
May 17th, 2005 • 12:26 am

On Saturday, I noted that, in its most recent incarnation, Safari was smart enough to strip the extraneous return character at the end of a line when pasting such a line in a single-line text entry field in a Web form.

Unfortunately, Safari is not that smart when the Clipboard contains a line of text preceded by an extraneous return character. On the contrary, it actually behaves quite strangely. If you copy a line of text preceded by a return character to the Clipboard, and then attempt to paste such a thing in a single-line text entry field in a Web form, Safari actually completely ignores the current contents of the Clipboard and instead puts nothing in the field and pops up its “AutoFill” menu for the field, with the focus by default on the last entry you entered in this text field on your previous visit to this particular Web form. (That is, if you have the “AutoFill” feature on. If it’s off, nothing at all happens.)

Strange.

Granted, an extraneous return character at the beginning of a line doesn’t happen nearly as often as an extraneous return character at the end of the line, but in my experience it does still happen. And Safari could definitely be smarter about what to do in such a situation.


Comments are closed.

Leave a Reply

Comments are closed.