Skip to content

FF148 Document.execCommand with paste supported in content#28953

Open
hamishwillee wants to merge 5 commits intomdn:mainfrom
hamishwillee:doc_execcommand_paste
Open

FF148 Document.execCommand with paste supported in content#28953
hamishwillee wants to merge 5 commits intomdn:mainfrom
hamishwillee:doc_execcommand_paste

Conversation

@hamishwillee
Copy link
Contributor

@hamishwillee hamishwillee commented Feb 2, 2026

FF148 Supports using Document.execCommand with option "paste" in web content in https://bugzilla.mozilla.org/show_bug.cgi?id=1998195#c18

Previously this would only work on extensions. The change is a reimplementation of the feature using the Clipboard API, so shares the same behaviour as added in #28587.

The feature is non-standard but in its "kind of" standard, paste is only supported in extensions. So what we're doing is adding non-standard behaviour to some browsers. What I have done is added an entry for paste that matches copy and similar in versions, then added version notes for this additional "non-standard" implementation.

Related docs work can be tracked in mdn/content#42747

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Feb 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

],
"support": {
"chrome": {
"version_added": "42"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base values here are copied from the copy operation, which is same versions set as we're seeing for most of these kinds of operations (i.e. it is a reasonable assumption that support for paste in extensions (only) was added in this version.

@hamishwillee hamishwillee force-pushed the doc_execcommand_paste branch from 66fee14 to ea78fd6 Compare February 3, 2026 00:56
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@hamishwillee hamishwillee requested a review from caugner February 8, 2026 22:02
@hamishwillee
Copy link
Contributor Author

Thanks @caugner - I accepted your changes

@mdn mdn deleted a comment from Destop-Trang1801 Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants