Skip to content

Commit

Permalink
Add 'starts with' to web custom format.
Browse files Browse the repository at this point in the history
  • Loading branch information
snianu committed Sep 19, 2023
1 parent dd5e69a commit 17ed805
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;
text: Blob
text: type
text: blobParts
url: https://infra.spec.whatwg.org/#string-starts-with; type: dfn;
text: starts with
</pre>

<pre class="biblio">
Expand Down Expand Up @@ -559,7 +561,7 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;

* text/uri-list
* image/svg+xml
* Custom format with "web "("web" followed by U+0020 SPACE) prefix.
* Custom format [=starts with=] "web "("web" followed by U+0020 SPACE) prefix.


<h2 id="async-clipboard-api">Asynchronous Clipboard API</h2>
Expand Down Expand Up @@ -689,7 +691,7 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;

1. Let |isCustom| be |false|.

1. If |key| has "web " ("web" followed by U+0020 SPACE) prefix, then
1. If |key| [=starts with=] "web " ("web" followed by U+0020 SPACE) prefix, then

1. Remove "web " prefix and set the remaining string to |key|.

Expand Down Expand Up @@ -737,7 +739,7 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;

1. Let |isCustom| be |false|.

1. If |type| has "web "("web" followed by U+0020 SPACE) prefix, then:
1. If |type| [=starts with=] "web "("web" followed by U+0020 SPACE) prefix, then:

1. Remove "web " prefix and set the remaining string to |type|.

Expand Down Expand Up @@ -1715,7 +1717,7 @@ urlPrefix: https://w3c.github.io/FileAPI/#dfn-; type: dfn;

1. Let |webCustomFormat| be an empty {{Blob/type}}.

1. If |webCustomFormatString| has "web "("web" followed by U+0020 SPACE) prefix, then remove the "web " prefix and store the remaining string in |webCustomFormat|'s {{Blob/type}}'s [=MIME type/essence=], else abort all steps.
1. If |webCustomFormatString| [=starts with=] "web "("web" followed by U+0020 SPACE) prefix, then remove the "web " prefix and store the remaining string in |webCustomFormat|'s {{Blob/type}}'s [=MIME type/essence=], else abort all steps.

1. Set |item|'s {{Blob/type}} to |webCustomFormat|.

Expand Down

0 comments on commit 17ed805

Please sign in to comment.