You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/glossary/base64/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Browsers also natively provide two JavaScript functions for decoding and encodin
56
56
> [!NOTE]
57
57
> Base64 is a binary encoding rather than a text encoding, but `btoa` and `atob` were added to the web platform before it supported binary data types. As a result, the two functions use strings to represent binary data, with the {{glossary("code point")}} of each character representing the value of each byte. This has led to a common misconception that `btoa` can be used to encode arbitrary text data — for example, creating a Base64 `data:` URL of a text or HTML document.
58
58
>
59
-
> However, the byte-to-code-point correspondence only reliably holds true for code points up to `0x7f`. Furthermore, code points over `0xff` will cause `btoa` to throw an error due to exceeding the maximum value for 1 byte. The next section details how to work around this limitation when encoding arbitrary Unicode text.
59
+
> However, the byte-to-code-point correspondence only reliably holds true for code points up to `0x7f`. Furthermore, code points over `0xff` will cause `btoa` to throw an error due to exceeding the maximum value for 1 byte. The {{domxref("Window.btoa()")}} "[Unicode strings](/en-US/docs/Web/API/Window/btoa#unicode_strings)" section details how to work around this limitation when encoding arbitrary Unicode text.
Copy file name to clipboardExpand all lines: files/en-us/learn_web_development/core/scripting/build_your_own_function/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ On to the next parameter. This one is going to involve slightly more work — we
233
233
1. First of all, download the icons needed for this exercise ([warning](https://github.com/mdn/learning-area/blob/main/javascript/building-blocks/functions/icons/warning.png) and [chat](https://github.com/mdn/learning-area/blob/main/javascript/building-blocks/functions/icons/chat.png)) from GitHub. Save them in a new folder called `icons` in the same location as your HTML file.
234
234
235
235
> [!NOTE]
236
-
> The warning and chat icons were originally found on [iconfinder.com](https://www.iconfinder.com/), and designed by [Nazarrudin Ansyari](https://www.iconfinder.com/nazarr) — Thanks! (The actual icon pages were since moved or removed.)
236
+
> The warning and chat icons were originally found on iconfinder.com, and designed by Nazarrudin Ansyari — Thanks! (The actual icon pages were since moved or removed.)
237
237
238
238
2. Next, find the CSS inside your HTML file. We'll make a few changes to make way for the icons. First, update the `.msgBox` width from:
Copy file name to clipboardExpand all lines: files/en-us/learn_web_development/core/scripting/debugging_javascript/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ There are a number of common JavaScript problems that you will want to be mindfu
61
61
- Making sure [asynchronous operations](/en-US/docs/Learn_web_development/Extensions/Async_JS) have completed before trying to use the values they return. This usually means understanding how to use _promises_: using [`await`](/en-US/docs/Web/JavaScript/Reference/Operators/await) appropriately or running the code to handle the result of an asynchronous call in the promise's {{jsxref("Promise.then()", "then()")}} handler. See [How to use promises](/en-US/docs/Learn_web_development/Extensions/Async_JS/Promises) for an introduction to this topic.
62
62
63
63
> [!NOTE]
64
-
> [Buggy JavaScript Code: The 10 Most Common Mistakes JavaScript Developers Make](https://www.toptal.com/javascript/10-most-common-javascript-mistakes) has some nice discussions of these common mistakes and more.
64
+
> [Buggy JavaScript Code: The 10 Most Common Mistakes JavaScript Developers Make](https://www.toptal.com/developers/javascript/10-most-common-javascript-mistakes) has some nice discussions of these common mistakes and more.
Copy file name to clipboardExpand all lines: files/en-us/mdn/writing_guidelines/writing_style_guide/index.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -695,7 +695,6 @@ If you have questions about usage and style not covered in this guide, we recomm
695
695
If you're interested in improving your writing and editing skills, you may find the following resources to be helpful.
696
696
697
697
-[Common errors in English usage](https://brians.wsu.edu/common-errors-in-english-usage/) on brians.wsu.edu
698
-
-[English grammar FAQ](https://websites.umich.edu/~jlawler/aue.html) on alt-usage-english.org
699
698
-[English language and usage](https://english.stackexchange.com/) on english.stackexchange.com: Question and answer site for English language usage
700
699
-[Merriam-Webster's Concise Dictionary of English Usage](https://books.google.com/books?id=UDIjAQAAIAAJ) on google.com/books (published 2002): Scholarly but user-friendly, evidence-based advice; very good for non-native speakers, especially for preposition usage
701
700
-[On Writing Well](https://www.harpercollins.com/products/on-writing-well-william-zinsser) by William Zinsser on harpercollins.com (published 2016)
Copy file name to clipboardExpand all lines: files/en-us/mozilla/add-ons/webextensions/add_a_button_to_the_toolbar/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Next, create the "icons" directory inside the "buttons" directory, and save the
54
54

55
55
56
56
> [!NOTE]
57
-
> These icons are from the [bitsies!](https://www.iconfinder.com/iconsets/bitsies) iconset created by Recep Kütük.
57
+
> These icons are from the "bitsies!" iconset on iconfinder.com created by Recep Kütük.
58
58
59
59
We have two icons so we can use the bigger one in high-density displays. The browser will take care of selecting the best icon for the current display.
Values of this type are strings. Possible values are:
14
14
15
-
- normal
15
+
-`normal`
16
16
- : A menu item that just displays a label.
17
-
- checkbox
17
+
-`checkbox`
18
18
- : A menu item that represents a binary state. It displays a checkmark next to the label. Clicking the item toggles the checkmark. The {{WebExtAPIRef("menus.onClicked")}} listener will be passed two extra properties: "checked", indicating whether the item is checked now, and "wasChecked", indicating whether the item was checked before the click event.
19
-
- radio
19
+
-`radio`
20
20
- : A menu item that represents one of a group of choices. Just like a checkbox, this also displays a checkmark next to the label, and its {{WebExtAPIRef("menus.onClicked")}} listener is passed "checked" and "wasChecked". However, if you create more than one radio item, then the items function as a group of radio items: only one item in the group can be checked, and clicking an item makes it the checked item.
Copy file name to clipboardExpand all lines: files/en-us/mozilla/add-ons/webextensions/match_patterns/index.md
+40-17Lines changed: 40 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ The _scheme_ component may take one of two forms:
54
54
55
55
### host
56
56
57
-
The _host_ component may take one of three forms:
57
+
The _host_ component may take one of these forms:
58
58
59
59
<tableclass="fullwidth-table standard-table">
60
60
<thead>
@@ -69,17 +69,18 @@ The _host_ component may take one of three forms:
69
69
<td>Any host.</td>
70
70
</tr>
71
71
<tr>
72
-
<td><code>*.</code> followed by part of the hostname.</td>
73
-
<td>The given host and any of its subdomains.</td>
72
+
<td><code>*.</code> followed by part of the hostname, optionally, including a port.</td>
73
+
<td>The given host (and port) and any of its subdomains.</td>
74
74
</tr>
75
75
<tr>
76
-
<td>A complete hostname, without wildcards.</td>
77
-
<td>Only the given host.</td>
76
+
<td>A complete hostname, without wildcards, optionally, including a port.</td>
77
+
<td>Only the host (and port).</td>
78
78
</tr>
79
79
</tbody>
80
80
</table>
81
81
82
-
_host_ must not include a port number.
82
+
> [!NOTE]
83
+
> Firefox doesn't support the inclusion of a port number due to ([Firefox bug 1362809](https://bugzil.la/1362809)) and ([Firefox bug 1468162](https://bugzil.la/1468162)).
83
84
84
85
_host_ is optional only if the _scheme_ is "file".
85
86
@@ -93,10 +94,7 @@ After that, it may subsequently contain any combination of the `*` wildcard and
93
94
94
95
The value for the _path_ matches against the string which is the URL path plus the [URL query string](https://en.wikipedia.org/wiki/Query_string). This includes the `?` between the two, if the query string is present in the URL. For example, if you want to match URLs on any domain where the URL path ends with `foo.bar`, then you need to use an array of Match Patterns like `["*://*/*foo.bar", "*://*/*foo.bar?*"]`. The `?*` is needed, rather than just `bar*`, in order to anchor the ending `*` as applying to the URL query string and not some portion of the URL path.
95
96
96
-
Neither the [URL fragment identifier](https://en.wikipedia.org/wiki/Fragment_identifier), nor the `#` which precedes it, are considered as part of the _path_.
97
-
98
-
> [!NOTE]
99
-
> The path pattern string should not include a port number. Adding a port, as in: `http://localhost:1234/*` causes the match pattern to be ignored. However, `http://localhost:1234` will match with `http://localhost/*`.
97
+
Neither the [URL fragment identifier](https://en.wikipedia.org/wiki/Fragment_identifier) nor the `#` that precedes it are considered as part of the _path_ and are ignored during pattern matching. A match pattern containing `#` will fail to match with any URL.
100
98
101
99
### \<all_urls>
102
100
@@ -192,6 +190,22 @@ The special value `<all_urls>` matches all URLs under any of the supported schem
192
190
</td>
193
191
</tr>
194
192
<tr>
193
+
<tr>
194
+
<td>
195
+
<p><code>https://mozilla.org:8080/</code></p>
196
+
<p>
197
+
Match all HTTPS URLs that are hosted at "mozilla.org/" on port 8080.
198
+
Note: Ports are supported in Chrome, not in Firefox.
<td>Contains a reference fragment: the URL that the pattern is matched against has any reference fragment removed before matching.</td>
365
+
</tr>
344
366
<tr>
345
367
<td><code>https://mozilla.*.org/</code></td>
368
+
<td>Invalid</td>
346
369
<td>"*" in host must be at the start.</td>
347
370
</tr>
348
371
<tr>
349
372
<td><code>https://*zilla.org/</code></td>
373
+
<td>Invalid</td>
350
374
<td>"*" in host must be the only character or be followed by ".".</td>
351
375
</tr>
352
376
<tr>
353
377
<td><code>http*://mozilla.org/</code></td>
378
+
<td>Invalid</td>
354
379
<td>"*" in scheme must be the only character.</td>
355
380
</tr>
356
-
<tr>
357
-
<td><code>https://mozilla.org:80/</code></td>
358
-
<td>Host must not include a port number.</td>
359
-
</tr>
360
381
<tr>
361
382
<td><code>*://*</code></td>
383
+
<td>Invalid</td>
362
384
<td>Empty path: this should be <code>*://*/*</code>.</td>
363
385
</tr>
364
386
<tr>
365
387
<td><code>file://*</code></td>
366
-
<td>Empty path: this should be <code>file:///*</code>.</td>
388
+
<td>Invalid</td>
389
+
<td>Empty path: this should be <code>file:///*</code>. <code>file://*</code> is accepted when declared in <code>host_permissions</code> in Chrome, which auto-corrects the entry to <code>file:///*</code>.</td>
0 commit comments