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

[whatwg] Unicode -> ASCII copy/paste fallback

From: David Sheets <kosmo.zb@gmail.com>
Date: Fri, 13 Feb 2015 11:45:44 +0000
Message-ID: <CAAWM5TwQGrEQX-LTR8vvBcaYu-i5rtWkPrqcVTQu07vhU1QYvA@mail.gmail.com>
To: whatwg <whatwg@whatwg.org>
Hello,

I have a page with

a <span class="rarr"><span>-&gt;</span></span> b

and style

.rarr span { overflow: hidden; height: 0; width: 0; display: inline-block; }
.rarr::after { content: "→"; }

(That's RIGHTWARDS ARROW x2192.)

In Firefox 36, this copies and pastes like "a -> b" which is the
desired behavior. In Chrome 40, this copies and pastes like "a  b".

Is my desired behavior (to show unicode but copy an ASCII
representation) generally possible? Are there specs somewhere about
copy/paste behavior? I looked in <https://html.spec.whatwg.org/> but
found nothing relevant.

Is this the right venue for this question? Should I take it somewhere else?

Thanks,

David Sheets
Received on Friday, 13 February 2015 11:46:10 UTC

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