- From: Glenn Maynard <glenn@zewt.org>
- Date: Fri, 13 Feb 2015 09:02:55 -0600
- To: David Sheets <kosmo.zb@gmail.com>
- Cc: whatwg <whatwg@whatwg.org>
On Fri, Feb 13, 2015 at 5:45 AM, David Sheets <kosmo.zb@gmail.com> wrote: > Hello, > > I have a page with > > a <span class="rarr"><span>-></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. > 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. (Chrome's issue isn't related to Unicode. It just doesn't know how to select text that's inside CSS content, so it isn't included in the copy.) -- Glenn Maynard
Received on Friday, 13 February 2015 15:03:20 UTC