Skip to content

Commit 361c702

Browse files
authored
Merge pull request #2316 from vsemozhetbyt/patch-2
Fix typos in 4.3 (Blob)
2 parents 574dd84 + 91da65d commit 361c702

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: 4-binary/03-blob/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This behavior is similar to JavaScript strings: we can't change a character in a
5555
5656
## Blob as URL
5757
58-
A Blob can be easily used as an URL for `<a>`, `<img>` or other tags, to show its contents.
58+
A Blob can be easily used as a URL for `<a>`, `<img>` or other tags, to show its contents.
5959
6060
Thanks to `type`, we can also download/upload `Blob` objects, and the `type` naturally becomes `Content-Type` in network requests.
6161
@@ -99,7 +99,7 @@ blob:https://javascript.info/1e67e00e-860d-40a5-89ae-6ab0cbee6273
9999

100100
For each URL generated by `URL.createObjectURL` the browser stores a URL -> `Blob` mapping internally. So such URLs are short, but allow to access the `Blob`.
101101

102-
A generated URL (and hence the link with it) is only valid within the current document, while it's open. And it allows to reference the `Blob` in `<img>`, `<a>`, basically any other object that expects an url.
102+
A generated URL (and hence the link with it) is only valid within the current document, while it's open. And it allows to reference the `Blob` in `<img>`, `<a>`, basically any other object that expects a URL.
103103

104104
There's a side-effect though. While there's a mapping for a `Blob`, the `Blob` itself resides in the memory. The browser can't free it.
105105

@@ -151,7 +151,7 @@ reader.onload = function() {
151151
};
152152
```
153153

154-
Both ways of making an URL of a `Blob` are usable. But usually `URL.createObjectURL(blob)` is simpler and faster.
154+
Both ways of making a URL of a `Blob` are usable. But usually `URL.createObjectURL(blob)` is simpler and faster.
155155

156156
```compare title-plus="URL.createObjectURL(blob)" title-minus="Blob to data url"
157157
+ We need to revoke them if care about memory.

0 commit comments

Comments
 (0)