W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2015

Re: [whatwg] Unicode -> ASCII copy/paste fallback

From: Glenn Maynard <glenn@zewt.org>
Date: Fri, 13 Feb 2015 17:11:18 -0600
Message-ID: <CABirCh-Gqhr2hiZ9QGZz9xtm=_tKmeBLfjR4aXfffW0+Yjo2Qw@mail.gmail.com>
To: David Sheets <kosmo.zb@gmail.com>
Cc: whatwg <whatwg@whatwg.org>
On Fri, Feb 13, 2015 at 9:02 AM, Glenn Maynard <glenn@zewt.org> wrote:

> Copying ASCII isn't desirable.  It should copy the Unicode string "a →
> b".  After all, that's what gets copied if you had done "<span>a →
> b</span>" in the first place.

(Oh, I missed the obvious--the "->" from Firefox is coming from the HTML,
of course.)

I guess what you're after is being able to have separate text for display
vs. copy.  I'm sure you don't actually want to use a hacky custom
font.  What's the actual use case?  In general I think browsers should
always copy just what the user selected, and not let pages cause something
other than that to be copied, since things like that are generally abused
(eg. inserting linkback ads to copied text).

Glenn Maynard
Received on Friday, 13 February 2015 23:11:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:27 UTC