[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 11:41:29 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=77294
Charles Pritchard <chuck at jumis.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WONTFIX |INVALID
--- Comment #20 from Charles Pritchard <chuck at jumis.com> 2012-05-02 11:41:28 PST ---
(In reply to comment #19)
> The problem is that the encoding isn't utf-8. Given that our implementation of btoa and decoding behavior matches that of Gecko, changing this behavior will likely to have some compatibility implications. Please make necessary comments on public-html or whatwg.
Apologies for the bad base64 encoders. I am aware that btoa does not operate with utf8.
Here's a script that confirms that proper base64 encoding works and this was INVALID as AP suggested:
document.body.appendChild(document.createElement('script')).src = 'https://javascriptbase64.googlecode.com/svn/trunk/base64.js';
document.onpaste = function(a) {
var clipboard = a ? (a.dataTransfer || a.clipboardData) : a;
var html = clipboard.getData('text/html');
html = Base64.encode(html);
window.open('data:text/html;charset=utf-8;base64,' + html);
}
--
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