Skip to content
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

Remove sanitize copy requirement from the spec. #174

Merged
merged 4 commits into from May 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 2 additions & 8 deletions index.bs
Expand Up @@ -867,16 +867,12 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;

1. Resolve |p| with |v|.

1. Return |p|.

1. If |v| is a {{Blob}}, then follow the below steps:

1. Let |string| be the result of [=UTF-8 decoding=] |v|'s underlying byte sequence.

1. Resolve |p| with |string|.

1. Return |p|.

1. If |representationDataPromise| was rejected, then:

1. [=Reject=] |p| with {{"NotFoundError"}} {{DOMException}} in |realm|.
Expand Down Expand Up @@ -1636,11 +1632,11 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;
: Output
:: |wellKnownFormat|, a platform specific string type. On Mac it's NSPasteboardType, on Windows it's LPCWSTR and Linux it's a const char*.

<div class=note>
<p class=note>
For Windows see https://docs.microsoft.com/en-us/windows/win32/dataxchg/standard-clipboard-formats and
https://docs.microsoft.com/en-us/windows/win32/dataxchg/about-atom-tables?redirectedfrom=MSDN
For Mac see https://developer.apple.com/documentation/appkit/nspasteboardtype
</div>
</p>

1. Let |wellKnownFormat| be a string.

Expand Down Expand Up @@ -1720,8 +1716,6 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;
<a>setData()</a>'s type argument, sticking to the
[=mandatory data types=] is strongly recommended.

1. Return |wellKnownFormat|.

</div><!-- algorithm -->

<div class="algorithm" data-algorithm="algo-fire-a-clipboard-event">
Expand Down