[whatwg] Unicode -> ASCII copy/paste fallback

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