-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge <17 doesn't write out proper CF_HTML #73
Comments
Thanks! I should add that to the caveats and the experiment table. This seems to specific only to Windows; is that correct? |
Yep, specific to Windows. I use http://www.peterbuettner.de/develop/tools/clipview/ to inspect the clipboard. |
Actually, let's reopen this. Since it is a goal of this library to provide as much compatibility as is possible to polyfill, we may want to write |
FYI on a compatibility issue... Calling
clipboardData.setData("text/html", data)
writes thedata
argument verbatim in Edge 16.16299 and earlier. That means your "DOM node" test results in the clipboard containing this (according to a low-level clipboard inspector):which isn't valid CF_HTML.
Chrome does it correctly:
as does FF:
FWIW, I think these are the relevant bits of FF's and Chrome's source that writes the CF_HTML format: https://dxr.mozilla.org/mozilla-central/source/widget/windows/nsDataObj.cpp#1927, https://cs.chromium.org/chromium/src/ui/base/clipboard/clipboard_util_win.cc?q=StartFragment&sq=package:chromium&dr=C&l=380.
It looks like this will be fixed in Edge 17, https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14372529/, so maybe a wontfix here.
(Cool library btw!)
The text was updated successfully, but these errors were encountered: