[Webkit-unassigned] [Bug 77294] [Chromium] Copy and paste of HTML content with non-breaking space misbehaves

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 2 08:58:33 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=77294





--- Comment #8 from Charles Pritchard <chuck at jumis.com>  2012-05-02 08:58:33 PST ---
(In reply to comment #7)
> I don't really understand the reduction. What exactly are you pasting? And what is unexpected? Please give us a step-by-step instruction on how to reproduce the bug.

Select text from a UTF8 encoded webpage, such as this one. It'll now be in the clipboard. Then go ahead and use the onpaste handler with dataTransfer to get the text/html content. That content will still be in UTF8. Now, base64 encode that content and put it in a data uri marked as utf8.
data:text/html;charset=utf-8;base64,...

And now for the bug: all of the utf8 characters show up appropriately. But, there's one big issue. The content will have many occurances of span tags with the class "Apple-converted-space". Inside of those span tags is an unrecognized UTF8 character, instead of typical spaces. So the user sees a bunch of missing character glyphs.

The example data URI I posted shows this (at least in OS X) as a diamond with a question mark in it, and it's between most tags. I did a copy and paste from this page.

Does that clear it up? It seems that the clipboard processing should replace the apple converted space spans with a typical space character.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list