Skip to content

Commit

Permalink
Remove developer.mozilla prefix on URLs (#8214)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored Aug 23, 2021
1 parent e8c8b5e commit fddea0b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 25 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/domexception/domexception/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3 id="Parameters">Parameters</h3>
<dd>A description of the exception. If not present, the empty string <code>''</code> is
used.</dd>
<dt><code>name</code> {{optional_inline}}</dt>
<dd>A {{domxref("DOMString")}}. If the specified name is a <a href="/en-US/docs/Web/API/DOMException#error_names">standard error name</a>, then getting the <a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code"><code>code</code></a> property of the <code>DOMException</code> object will return the code number corresponding to the specified name.</dd>
<dd>A {{domxref("DOMString")}}. If the specified name is a <a href="/en-US/docs/Web/API/DOMException#error_names">standard error name</a>, then getting the <a href="/en-US/docs/Web/API/DOMException/code"><code>code</code></a> property of the <code>DOMException</code> object will return the code number corresponding to the specified name.</dd>
</dl>

<h3 id="Return_value">Return value</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ <h3 id="navigator.onLine"><code>navigator.onLine</code></h3>

<blockquote cite="https://www.whatwg.org/specs/web-apps/current-work/#offline">The <code>navigator.onLine</code> attribute must return false if the user agent will not contact the network when the user follows links or when a script requests a remote page (or knows that such an attempt would fail)...</blockquote>

<p>Firefox 2 updates this property when switching to/from the browser's Offline mode.  <a href="https://developer.mozilla.org/en-US/Firefox/Releases/41#Miscellaneous">Firefox 41</a> updates this property also when the OS reports a change in network connectivity on Windows, Linux, and OS X.</p>
<p>Firefox 2 updates this property when switching to/from the browser's Offline mode.  <a href="/en-US/Firefox/Releases/41#Miscellaneous">Firefox 41</a> updates this property also when the OS reports a change in network connectivity on Windows, Linux, and OS X.</p>

<p>This property existed in older versions of Firefox and Internet Explorer (the specification based itself off of these prior implementations), so you can begin using it immediately. Network status autodetection was implemented in Firefox 2.</p>

<h3 id=".22online.22_and_.22offline.22_events">"<code>online</code>" and "<code>offline</code>" events</h3>

<p><a href="/en-US/docs/Firefox_3_for_developers">Firefox 3</a> introduces two new events: "<a href="/en-US/docs/Web/API/document.ononline"><code>online</code></a>" and "<a href="/en-US/docs/Web/API/document.onoffline"><code>offline</code></a>". These two events are fired on the <code>&lt;body&gt;</code> of each page when the browser switches between online and offline mode. Additionally, the events bubble up from <code>document.body</code>, to <code>document</code>, ending at <code>window</code>. Both events are non-cancellable (you can't prevent the user from coming online, or going offline).</p>

<p><a href="https://developer.mozilla.org/en-US/Firefox/Releases/41#Miscellaneous">Firefox 41</a> fires these events when the OS reports a change in network connectivity on Windows, Linux, and OS X.</p>
<p><a href="/en-US/Firefox/Releases/41#Miscellaneous">Firefox 41</a> fires these events when the OS reports a change in network connectivity on Windows, Linux, and OS X.</p>

<p>You can register listeners for these events in a few familiar ways:</p>

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/ndefmessage/ndefmessage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>lang</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://www.rfc-editor.org/info/bcp47">BCP47</a> language tag.</dd>
<dt><code>mediaType</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>recordType</code></dt>
<dd>A string indicating the type of data stored in <code>data</code>. It must be one of the following values:
<dl>
Expand All @@ -41,7 +41,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>"empty"</code></dt>
<dd>An empty {{domxref("NDEFRecord")}}.</dd>
<dt><code>"mime"</code></dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>"smart-poster"</code></dt>
<dd>A smart poster as defined by the <a href="https://w3c.github.io/web-nfc/#bib-ndef-smartposter">NDEF-SMARTPOSTER</a> specification.</dd>
<dt><code>"text"</code></dt>
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/ndefreader/write/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>lang</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://www.rfc-editor.org/info/bcp47">BCP47</a> language tag.</dd>
<dt><code>mediaType</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>recordType</code></dt>
<dd>A string indicating the type of data stored in <code>data</code>. It must be one of the following values:
<dl>
Expand All @@ -43,7 +43,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>"empty"</code></dt>
<dd>An empty {{domxref("NDEFRecord")}}.</dd>
<dt><code>"mime"</code></dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>"smart-poster"</code></dt>
<dd>A smart poster as defined by the <a href="https://w3c.github.io/web-nfc/#bib-ndef-smartposter">NDEF-SMARTPOSTER</a> specification.</dd>
<dt><code>"text"</code></dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>lang</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://www.rfc-editor.org/info/bcp47">BCP47</a> language tag.</dd>
<dt><code>mediaType</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>recordType</code></dt>
<dd>A string indicating the type of data stored in <code>data</code>. It must be one of the following values:
<dl>
Expand All @@ -47,7 +47,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>"empty"</code></dt>
<dd>An empty {{domxref("NDEFRecord")}}.</dd>
<dt><code>"mime"</code></dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>"smart-poster"</code></dt>
<dd>A smart poster as defined by the <a href="https://w3c.github.io/web-nfc/#bib-ndef-smartposter">NDEF-SMARTPOSTER</a> specification.</dd>
<dt><code>"text"</code></dt>
Expand Down
13 changes: 5 additions & 8 deletions files/en-us/web/api/ndefrecord/lang/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: NDEFRecord.lang
slug: Web/API/NDEFRecord/lang
tags:
- NDEF
- Reference
- Web NFC
- NDEF
- Reference
- Web NFC
browser-compat: api.NDEFRecord.lang
---
<p>{{securecontext_header}}{{SeeCompatTable}}{{APIRef()}}</p>
Expand Down Expand Up @@ -35,9 +35,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang">HTML
<code>lang</code> attribute</a>, that declares content langauge of the document or
its elements</li>
<li>HTTP headers that declare content language: {{HTTPHeader("Content-Language")}} and
{{HTTPHEader("Accept-Language")}}</li>
<li><a href="/en-US/docs/Web/HTML/Global_attributes/lang">HTML <code>lang</code> attribute</a>, that declares content langauge of the document or its elements</li>
<li>HTTP headers that declare content language: {{HTTPHeader("Content-Language")}} and {{HTTPHEader("Accept-Language")}}</li>
</ul>
4 changes: 2 additions & 2 deletions files/en-us/web/api/ndefrecord/ndefrecord/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>lang</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://www.rfc-editor.org/info/bcp47">BCP47</a> language tag.</dd>
<dt><code>mediaType</code> {{optional_inline}}</dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>recordType</code></dt>
<dd>A string indicating the type of data stored in <code>data</code>. It must be one of the following values:
<dl>
Expand All @@ -44,7 +44,7 @@ <h3 id="Parameters">Parameters</h3>
<dt><code>"empty"</code></dt>
<dd>An empty {{domxref("NDEFRecord")}}.</dd>
<dt><code>"mime"</code></dt>
<dd>A valid <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dd>A valid <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME type</a>.</dd>
<dt><code>"smart-poster"</code></dt>
<dd>A smart poster as defined by the <a href="https://w3c.github.io/web-nfc/#bib-ndef-smartposter">NDEF-SMARTPOSTER</a> specification.</dd>
<dt><code>"text"</code></dt>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/color_value/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ Please note that LCH hue is not the same as HSL hue and LCH chroma is not the sa

CSS Color 4 introduced this notation.
Colors specified via the [`color()`](<https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color()>) function can specify a color in any of the predefined color spaces,
as well as custom color spaces, defined via the [`@color-profile`](https://developer.mozilla.org/en-US/docs/Web/CSS/@color-profile) rule.
as well as custom color spaces, defined via the [`@color-profile`](/en-US/docs/Web/CSS/@color-profile) rule.

## Interpolation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ function f(a, b, ...theArgs) {

## Description

A function definition's last parameter can be prefixed with "`...`" (three
U+002E FULL STOP characters), which will cause all remaining (user supplied) parameters
to be placed within a ["standard"
JavaScript array.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). Only the last parameter in a function definition can be a rest
parameter.
A function definition's last parameter can be prefixed with "`...`" (three U+002E FULL STOP characters), which will cause all remaining (user supplied) parameters to be placed within a ["standard" JavaScript array](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
Only the last parameter in a function definition can be a rest parameter.

```js
function myFun(a, b, ...manyMoreArgs) {
Expand Down

0 comments on commit fddea0b

Please sign in to comment.