Actions
Patch #40499
openReplace deprecated `document.execCommand` with Clipboard API in copyTextToClipboard function
Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Description
The document.execCommand
method in JavaScript is deprecated but the copyTextToClipboard
uses the deprecated function. The attached patch replaces the document.execCommand
with Clipboard API.
The reason the code added in r20816 uses execCommand is probably to support Internet Explorer, but we no longer need to consider compatibility with Internet Explorer.
Files
Actions