mdn / mdn/browser-compat-data

api.Clipboard.write - Example does not work in Safari

Open
#25,640 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:safari data:api
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

The compatibility table says writing the clipboard would work in Safari. But the sample that copies the blue rectangle to the clipboard fails in Safari. Nothing happens when I click the rectangle. It works in Chrome and Firefox.

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

A text showing "Copied", and the blue rectangle appearing in the box below when pasted.

Did you test this? If so, how?

Yes, in Chrome, Firefox and Safari (under maxOS Sequoia 15.2)

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/de/docs/Web/API/Clipboard/write

MDN metadata
MDN page report details
  • Query: api.Clipboard.write
  • Report started: 2025-01-13T17:21:45.781Z

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the api.Clipboard.write compatibility entry linked from the MDN URL and reproduce the reported sample in Safari, comparing it with Chrome and Firefox. Determine whether the compatibility data or the example behavior is incorrect, then update the relevant data so the table matches the tested result and verify the reported copy and paste behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.