Skip to content

Commit 9f5d7ba

Browse files
authored
Fix typos in "Blob"
Fixed minor grammatical errors in **Blob** lesson in the chapter **Binary data, files**.
1 parent 3954620 commit 9f5d7ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

4-binary/03-blob/article.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
`Blob` # Blob
1+
# Blob
22

33
`ArrayBuffer` and views are a part of ECMA standard, a part of JavaScript.
44

@@ -89,7 +89,7 @@ link.click();
8989
URL.revokeObjectURL(link.href);
9090
```
9191

92-
`URL.createObjectURL` takes a `Blob` and creates an unique URL for it, in the form `blob:<origin>/<uuid>`.
92+
`URL.createObjectURL` takes a `Blob` and creates a unique URL for it, in the form `blob:<origin>/<uuid>`.
9393

9494
That's what the value of `link.href` looks like:
9595

@@ -101,11 +101,11 @@ The browser for each URL generated by `URL.createObjectURL` stores an the URL ->
101101

102102
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.
103103

104-
There's a side-effect though. While there's an mapping for a `Blob`, the `Blob` itself resides in the memory. The browser can't free it.
104+
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

106-
The mapping is automatically cleared on document unload, so `Blob` o bjects are freed then. But if an app is long-living, then that doesn't happen soon.
106+
The mapping is automatically cleared on document unload, so `Blob` objects are freed then. But if an app is long-living, then that doesn't happen soon.
107107

108-
**So if we create an URL, that `Blob` will hang in memory, even if not needed any more.**
108+
**So if we create a URL, that `Blob` will hang in memory, even if not needed any more.**
109109

110110
`URL.revokeObjectURL(url)` removes the reference from the internal mapping, thus allowing the `Blob` to be deleted (if there are no other references), and the memory to be freed.
111111

@@ -119,7 +119,7 @@ An alternative to `URL.createObjectURL` is to convert a `Blob` into a base64-enc
119119

120120
That encoding represents binary data as a string of ultra-safe "readable" characters with ASCII-codes from 0 to 64. And what's more important -- we can use this encoding in "data-urls".
121121

122-
A [data url](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) has the form `data:[<mediatype>][;base64],<data>`. We can use such urls everywhere, on a par with "regular" urls.
122+
A [data url](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) has the form `data:[<mediatype>][;base64],<data>`. We can use such urls everywhere, on par with "regular" urls.
123123

124124
For instance, here's a smiley:
125125

0 commit comments

Comments
 (0)