Skip to content

FF148 Document.execCommand with paste supported in content#28953

Merged
caugner merged 2 commits intomdn:mainfrom
hamishwillee:doc_execcommand_paste
Feb 16, 2026
Merged

FF148 Document.execCommand with paste supported in content#28953
caugner merged 2 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).

@hamishwillee hamishwillee force-pushed the doc_execcommand_paste branch from 66fee14 to ea78fd6 Compare February 3, 2026 00:56
@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
@caugner caugner changed the title FF148 Document.execCommand with paste supported in content FF148 Document.execCommand with paste supported in content Feb 13, 2026
@caugner caugner enabled auto-merge (squash) February 13, 2026 20:46
"deprecated": false
}
},
"paste": {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's something wrong here, the subfeature is under api.Document.exitFullscreen instead of api.Document.execCommand.

Cf. the linter error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@caugner caugner merged commit 564d711 into mdn:main Feb 16, 2026
8 checks passed
@mdn-bot mdn-bot mentioned this pull request Feb 16, 2026
@hamishwillee hamishwillee deleted the doc_execcommand_paste branch February 16, 2026 22:24
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