diff --git a/files/en-us/learn/css/css_layout/grids/index.html b/files/en-us/learn/css/css_layout/grids/index.html index 33597edd18e9e66..089fe52eaedd830 100644 --- a/files/en-us/learn/css/css_layout/grids/index.html +++ b/files/en-us/learn/css/css_layout/grids/index.html @@ -296,7 +296,7 @@

The minmax() function

Our 100-pixel tall tracks won’t be very useful if we add content into those tracks that is taller than 100 pixels, in which case it would cause an overflow. It might be better to have tracks that are at least 100 pixels tall and can still expand if more content gets into them. A fairly basic fact about the web is that you never really know how tall something is going to be; additional content or larger font sizes can cause problems with designs that attempt to be pixel perfect in every dimension.

-

The {{cssxref("minmax")}} function lets us set a minimum and maximum size for a track, for example minmax(100px, auto). The minimum size is 100 pixels, but the maximum is auto, which will expand to fit the content. Try changing grid-auto-rows to use a minmax value:

+

The {{cssxref("minmax()")}} function lets us set a minimum and maximum size for a track, for example minmax(100px, auto). The minimum size is 100 pixels, but the maximum is auto, which will expand to fit the content. Try changing grid-auto-rows to use a minmax value:

.container {
     display: grid;
@@ -309,7 +309,7 @@ 

The minmax() function

As many columns as will fit

-

We can combine some of the things we have learned about track listing, repeat notation and {{cssxref("minmax")}} to create a useful pattern. Sometimes it is helpful to be able to ask grid to create as many columns as will fit into the container. We do this by setting the value of grid-template-columns using {{cssxref("repeat")}} notation, but instead of passing in a number, pass in the keyword auto-fill. For the second parameter of the function we use minmax(), with a minimum value equal to the minimum track size that we would like to have, and a maximum of 1fr.

+

We can combine some of the things we have learned about track listing, repeat notation and {{cssxref("minmax()")}} to create a useful pattern. Sometimes it is helpful to be able to ask grid to create as many columns as will fit into the container. We do this by setting the value of grid-template-columns using {{cssxref("repeat()")}} notation, but instead of passing in a number, pass in the keyword auto-fill. For the second parameter of the function we use minmax(), with a minimum value equal to the minimum track size that we would like to have, and a maximum of 1fr.

Try this in your file now, using the below CSS:

diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/index.html b/files/en-us/web/api/dedicatedworkerglobalscope/index.html index 013e974782b318e..509d4b2631bf61c 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/index.html +++ b/files/en-us/web/api/dedicatedworkerglobalscope/index.html @@ -11,7 +11,7 @@ ---

{{APIRef("Web Workers API")}}

-

The DedicatedWorkerGlobalScope object (the {{domxref("Worker")}} global scope) is accessible through the {{domxref("window.self","self")}} keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.

+

The DedicatedWorkerGlobalScope object (the {{domxref("Worker")}} global scope) is accessible through the {{domxref("window.self","self")}} keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.

Properties

@@ -71,17 +71,17 @@

Inherited from WorkerGlobalScope

Implemented from other places

-
{{domxref("WindowBase64.atob()")}}
+
{{domxref("WindowOrWorkerGlobalScope.atob")}}
Decodes a string of data which has been encoded using base-64 encoding.
-
{{domxref("WindowBase64.btoa()")}}
+
{{domxref("WindowOrWorkerGlobalScope.btoa")}}
Creates a base-64 encoded ASCII string from a string of binary data.
-
{{domxref("WindowTimers.clearInterval()")}}
-
Cancels the repeated execution set using {{domxref("WindowTimers.setInterval()")}}.
-
{{domxref("WindowTimers.clearTimeout()")}}
-
Cancels the repeated execution set using {{domxref("WindowTimers.setTimeout()")}}.
-
{{domxref("WindowTimers.setInterval()")}}
+
{{domxref("WindowOrWorkerGlobalScope.clearInterval")}}
+
Cancels the repeated execution set using {{domxref("WindowOrWorkerGlobalScope.setInterval")}}.
+
{{domxref("WindowOrWorkerGlobalScope.clearTimeout")}}
+
Cancels the repeated execution set using {{domxref("WindowOrWorkerGlobalScope.setTimeout")}}.
+
{{domxref("WindowOrWorkerGlobalScope.setInterval")}}
Schedules the execution of a function every X milliseconds.
-
{{domxref("WindowTimers.setTimeout()")}}
+
{{domxref("WindowOrWorkerGlobalScope.setTimeout")}}
Sets a delay for executing a function.
@@ -122,6 +122,6 @@

See also

diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/message_event/index.html b/files/en-us/web/api/dedicatedworkerglobalscope/message_event/index.html index dc977bd11513f4c..4694e6ccaba0589 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/message_event/index.html +++ b/files/en-us/web/api/dedicatedworkerglobalscope/message_event/index.html @@ -77,6 +77,6 @@

Browser compatibility

See also

diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/messageerror_event/index.html b/files/en-us/web/api/dedicatedworkerglobalscope/messageerror_event/index.html index c4c975484dd28fd..d6165e4eddb7c58 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/messageerror_event/index.html +++ b/files/en-us/web/api/dedicatedworkerglobalscope/messageerror_event/index.html @@ -72,5 +72,5 @@

See also

diff --git a/files/en-us/web/api/dedicatedworkerglobalscope/postmessage/index.html b/files/en-us/web/api/dedicatedworkerglobalscope/postmessage/index.html index b0c592573a36bf8..d6a8711aa752048 100644 --- a/files/en-us/web/api/dedicatedworkerglobalscope/postmessage/index.html +++ b/files/en-us/web/api/dedicatedworkerglobalscope/postmessage/index.html @@ -12,7 +12,7 @@ ---

{{APIRef("Web Workers API")}}

-

The postMessage() method of the {{domxref("DedicatedWorkerGlobalScope")}} interface sends a message to the main thread that spawned it. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.

+

The postMessage() method of the {{domxref("DedicatedWorkerGlobalScope")}} interface sends a message to the main thread that spawned it. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.

The main scope that spawned the worker can send back information to the thread that spawned it using the {{domxref("Worker.postMessage")}} method.

@@ -24,7 +24,7 @@

Parameters

aMessage
-
The object to deliver to the main thread; this will be in the data field in the event delivered to the {{domxref("Worker.onmessage")}} handler. This may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.
+
The object to deliver to the main thread; this will be in the data field in the event delivered to the {{domxref("Worker.onmessage")}} handler. This may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.
transferList {{optional_inline}}
An optional array of {{domxref("Transferable")}} objects to transfer ownership of. If the ownership of an object is transferred, it becomes unusable (neutered) in the context it was sent from and it becomes available only to the main thread it was sent to.
Only {{domxref("MessagePort")}} and {{domxref("ArrayBuffer")}} objects can be transferred.
diff --git a/files/en-us/web/api/delaynode/delaytime/index.html b/files/en-us/web/api/delaynode/delaytime/index.html index 55b43e26dfd2c67..3c87b1d5fab8c9f 100644 --- a/files/en-us/web/api/delaynode/delaytime/index.html +++ b/files/en-us/web/api/delaynode/delaytime/index.html @@ -14,7 +14,7 @@

The delayTime property of the {{ domxref("DelayNode") }} interface is an a-rate {{domxref("AudioParam")}} representing the amount of delay to apply.

-

delayTime is expressed in seconds, its minimal value is 0, and its maximum value is defined by the maxDelayTime argument of the {{domxref("AudioContext.createDelay()")}} method that created it.

+

delayTime is expressed in seconds, its minimal value is 0, and its maximum value is defined by the maxDelayTime argument of the {{domxref("BaseAudioContext.createDelay")}} method that created it.

Syntax

@@ -60,5 +60,5 @@

Browser compatibility

See also

diff --git a/files/en-us/web/api/detecting_device_orientation/index.html b/files/en-us/web/api/detecting_device_orientation/index.html index c2c4518ac3f55cc..a5b07c2d96d007f 100644 --- a/files/en-us/web/api/detecting_device_orientation/index.html +++ b/files/en-us/web/api/detecting_device_orientation/index.html @@ -54,7 +54,7 @@

Processing orientation events

Orientation values explained

-

The value reported for each axis indicates the amount of rotation around a given axis in reference to a standard coordinate frame. These are described in greater detail in the Orientation and motion data explained article which is summarized below.

+

The value reported for each axis indicates the amount of rotation around a given axis in reference to a standard coordinate frame. These are described in greater detail in the Orientation and motion data explained article which is summarized below.

diff --git a/files/en-us/web/api/devicelightevent/index.html b/files/en-us/web/api/devicelightevent/index.html index 8e5be93b8cd9d35..72d1061baad65a0 100644 --- a/files/en-us/web/api/devicelightevent/index.html +++ b/files/en-us/web/api/devicelightevent/index.html @@ -38,5 +38,5 @@

See also

diff --git a/files/en-us/web/api/devicelightevent/using_light_sensors/index.html b/files/en-us/web/api/devicelightevent/using_light_sensors/index.html index b7ccaeb87298e47..e05b4d56f0b31d5 100644 --- a/files/en-us/web/api/devicelightevent/using_light_sensors/index.html +++ b/files/en-us/web/api/devicelightevent/using_light_sensors/index.html @@ -26,7 +26,7 @@

How Does it Work?> 10000 lux : Bright

-

It uses the {{DOMxRef("Window.addEventListener", "addEventListener")}} method of the {{DOMxRef("window")}} object.

+

It uses the {{DOMxRef("EventTarget/addEventListener", "addEventListener")}} method of the {{DOMxRef("window")}} object.

window.addEventListener("devicelight", function (event) {
 
@@ -88,5 +88,5 @@ 

References:

diff --git a/files/en-us/web/api/devicelightevent/value/index.html b/files/en-us/web/api/devicelightevent/value/index.html index 3bbc5986fe99f6c..7138216497b1129 100644 --- a/files/en-us/web/api/devicelightevent/value/index.html +++ b/files/en-us/web/api/devicelightevent/value/index.html @@ -2,12 +2,12 @@ title: DeviceLightEvent.value slug: Web/API/DeviceLightEvent/value tags: -- API -- Ambient Light Events -- Experimental -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property + - API + - Ambient Light Events + - Experimental + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property ---
{{APIRef("Ambient Light Events")}}
@@ -50,5 +50,5 @@

See also

diff --git a/files/en-us/web/api/devicemotionevent/acceleration/index.html b/files/en-us/web/api/devicemotionevent/acceleration/index.html index 81f75f45e1feda1..0edd3860744f56d 100644 --- a/files/en-us/web/api/devicemotionevent/acceleration/index.html +++ b/files/en-us/web/api/devicemotionevent/acceleration/index.html @@ -2,15 +2,15 @@ title: DeviceMotionEvent.acceleration slug: Web/API/DeviceMotionEvent/acceleration tags: -- API -- Device Orientation -- Experimental -- Mobile -- Motion -- NeedsExample -- Orientation -- Property -- Reference + - API + - Device Orientation + - Experimental + - Mobile + - Motion + - NeedsExample + - Orientation + - Property + - Reference ---

{{APIRef("Device Orientation Events")}}

@@ -75,9 +75,9 @@

See also

  • {{DOMxRef("window.ondevicemotion")}}
  • {{Event("deviceorientation")}}
  • {{DOMxRef("DeviceOrientationEvent")}}
  • -
  • Detecting device +
  • Detecting device orientation
  • -
  • Orientation and motion data explained
  • diff --git a/files/en-us/web/api/devicemotionevent/accelerationincludinggravity/index.html b/files/en-us/web/api/devicemotionevent/accelerationincludinggravity/index.html index 54ae591a5e4550d..eda23b71e9e70c7 100644 --- a/files/en-us/web/api/devicemotionevent/accelerationincludinggravity/index.html +++ b/files/en-us/web/api/devicemotionevent/accelerationincludinggravity/index.html @@ -2,15 +2,15 @@ title: DeviceMotionEvent.accelerationIncludingGravity slug: Web/API/DeviceMotionEvent/accelerationIncludingGravity tags: -- API -- Device Orientation -- Experimental -- Mobile -- Motion -- NeedsExample -- Orientation -- Property -- Reference + - API + - Device Orientation + - Experimental + - Mobile + - Motion + - NeedsExample + - Orientation + - Property + - Reference ---

    {{APIRef("Device Orientation Events")}}

    @@ -81,9 +81,9 @@

    See also

  • {{DOMxRef("window.ondevicemotion")}}
  • {{Event("deviceorientation")}}
  • {{DOMxRef("DeviceOrientationEvent")}}
  • -
  • Detecting device +
  • Detecting device orientation
  • -
  • Orientation and motion data explained
  • diff --git a/files/en-us/web/api/devicemotionevent/index.html b/files/en-us/web/api/devicemotionevent/index.html index 0f55283f8ce6beb..fddce04b6b1c253 100644 --- a/files/en-us/web/api/devicemotionevent/index.html +++ b/files/en-us/web/api/devicemotionevent/index.html @@ -75,6 +75,6 @@

    See also

  • {{Event("deviceorientation")}}
  • {{DOMxRef("DeviceOrientationEvent")}}
  • {{Event("devicemotion")}}
  • -
  • Detecting device orientation
  • -
  • Orientation and motion data explained
  • +
  • Detecting device orientation
  • +
  • Orientation and motion data explained
  • diff --git a/files/en-us/web/api/devicemotionevent/interval/index.html b/files/en-us/web/api/devicemotionevent/interval/index.html index 2a5d2bf8ec0375f..644a79b03647182 100644 --- a/files/en-us/web/api/devicemotionevent/interval/index.html +++ b/files/en-us/web/api/devicemotionevent/interval/index.html @@ -2,15 +2,15 @@ title: DeviceMotionEvent.interval slug: Web/API/DeviceMotionEvent/interval tags: -- API -- Device Orientation -- Experimental -- Mobile -- Motion -- NeedsExample -- Orientation -- Property -- Reference + - API + - Device Orientation + - Experimental + - Mobile + - Motion + - NeedsExample + - Orientation + - Property + - Reference ---

    {{APIRef("Device Orientation Events")}}

    @@ -53,9 +53,9 @@

    See also

  • {{DOMxRef("window.ondevicemotion")}}
  • {{Event("deviceorientation")}}
  • {{DOMxRef("DeviceOrientationEvent")}}
  • -
  • Detecting device +
  • Detecting device orientation
  • -
  • Orientation and motion data explained
  • diff --git a/files/en-us/web/api/devicemotionevent/rotationrate/index.html b/files/en-us/web/api/devicemotionevent/rotationrate/index.html index 3c73f13967a1732..0b2542aba35fb14 100644 --- a/files/en-us/web/api/devicemotionevent/rotationrate/index.html +++ b/files/en-us/web/api/devicemotionevent/rotationrate/index.html @@ -2,17 +2,17 @@ title: DeviceMotionEvent.rotationRate slug: Web/API/DeviceMotionEvent/rotationRate tags: -- API -- DOM -- DOM Reference -- Device Orientation -- Experimental -- Mobile -- Motion -- NeedsExample -- Orientation -- Property -- Reference + - API + - DOM + - DOM Reference + - Device Orientation + - Experimental + - Mobile + - Motion + - NeedsExample + - Orientation + - Property + - Reference ---

    {{APIRef("Device Orientation Events")}}

    @@ -75,9 +75,9 @@

    See also

  • {{DOMxRef("window.ondevicemotion") }}
  • {{Event("deviceorientation") }}
  • {{DOMxRef("DeviceOrientationEvent") }}
  • -
  • Detecting device +
  • Detecting device orientation
  • -
  • Orientation and motion data explained
  • diff --git a/files/en-us/web/api/devicemotioneventacceleration/x/index.html b/files/en-us/web/api/devicemotioneventacceleration/x/index.html index a16bd9d1f9ddddb..f9735aafa37e2fa 100644 --- a/files/en-us/web/api/devicemotioneventacceleration/x/index.html +++ b/files/en-us/web/api/devicemotioneventacceleration/x/index.html @@ -2,11 +2,11 @@ title: 'DeviceMotionEventAcceleration: x' slug: Web/API/DeviceMotionEventAcceleration/x tags: -- API -- DeviceAcceleration -- NeedsExample -- Property -- Reference + - API + - DeviceAcceleration + - NeedsExample + - Property + - Reference ---
    {{ APIRef("Device Orientation Events") }}
    @@ -27,7 +27,7 @@

    Return value

    x
    A double indicating the amount of acceleration along the X axis. See Accelerometer values + href="/en-US/docs/Web/API/Detecting_device_orientation">Accelerometer values explained for details.
    diff --git a/files/en-us/web/api/devicemotioneventacceleration/y/index.html b/files/en-us/web/api/devicemotioneventacceleration/y/index.html index 14d962059f30715..b468f138e21ae92 100644 --- a/files/en-us/web/api/devicemotioneventacceleration/y/index.html +++ b/files/en-us/web/api/devicemotioneventacceleration/y/index.html @@ -2,11 +2,11 @@ title: 'DeviceMotionEventAcceleration: y' slug: Web/API/DeviceMotionEventAcceleration/y tags: -- API -- DeviceAcceleration -- NeedsExample -- Property -- Reference + - API + - DeviceAcceleration + - NeedsExample + - Property + - Reference ---
    {{ APIRef("Device Orientation Events") }}
    @@ -27,7 +27,7 @@

    Return value

    y
    A double indicating the amount of acceleration along the Y axis. See Accelerometer values + href="/en-US/docs/Web/API/Detecting_device_orientation">Accelerometer values explained for details.
    diff --git a/files/en-us/web/api/devicemotioneventacceleration/z/index.html b/files/en-us/web/api/devicemotioneventacceleration/z/index.html index 4a3824f6672aae8..a804b9a1413c3e9 100644 --- a/files/en-us/web/api/devicemotioneventacceleration/z/index.html +++ b/files/en-us/web/api/devicemotioneventacceleration/z/index.html @@ -2,11 +2,11 @@ title: 'DeviceMotionEventAcceleration: z' slug: Web/API/DeviceMotionEventAcceleration/z tags: -- API -- DeviceAcceleration -- NeedsExample -- Property -- Reference + - API + - DeviceAcceleration + - NeedsExample + - Property + - Reference ---
    {{ APIRef("Device Orientation Events") }}
    @@ -27,7 +27,7 @@

    Return value

    z
    A double indicating the amount of acceleration along the Z axis. See Accelerometer values + href="/en-US/docs/Web/API/Detecting_device_orientation">Accelerometer values explained for details.
    diff --git a/files/en-us/web/api/devicemotioneventrotationrate/alpha/index.html b/files/en-us/web/api/devicemotioneventrotationrate/alpha/index.html index fe3e7fb657d75c9..fbe056eda1605bf 100644 --- a/files/en-us/web/api/devicemotioneventrotationrate/alpha/index.html +++ b/files/en-us/web/api/devicemotioneventrotationrate/alpha/index.html @@ -2,13 +2,13 @@ title: 'DeviceMotionEventRotationRate: alpha' slug: Web/API/DeviceMotionEventRotationRate/alpha tags: -- API -- Device Orientation -- Intermediate -- Mobile -- Motion -- Orientation -- Reference + - API + - Device Orientation + - Intermediate + - Mobile + - Motion + - Orientation + - Reference ---

    {{ ApiRef("Device Orientation Events") }}

    @@ -28,7 +28,7 @@

    Return value

    alpha
    A double indicating the rate of rotation around the Z axis, in degrees per second. See Accelerometer + href="/en-US/docs/Web/API/Detecting_device_orientation#accelerometer_values_explained">Accelerometer values explained for details.

    diff --git a/files/en-us/web/api/devicemotioneventrotationrate/beta/index.html b/files/en-us/web/api/devicemotioneventrotationrate/beta/index.html index bc43af12a21bbf8..cec739b16174ed2 100644 --- a/files/en-us/web/api/devicemotioneventrotationrate/beta/index.html +++ b/files/en-us/web/api/devicemotioneventrotationrate/beta/index.html @@ -2,13 +2,13 @@ title: 'DeviceMotionEventRotationRate: beta' slug: Web/API/DeviceMotionEventRotationRate/beta tags: -- API -- Device Orientation -- Intermediate -- Mobile -- Motion -- Orientation -- Reference + - API + - Device Orientation + - Intermediate + - Mobile + - Motion + - Orientation + - Reference ---

    {{ ApiRef("Device Orientation Events") }}

    @@ -28,7 +28,7 @@

    Return value

    beta
    A double indicating the rate of rotation around the X axis, in degrees per second. See Accelerometer + href="/en-US/docs/Web/API/Detecting_device_orientation#accelerometer_values_explained">Accelerometer values explained for details.
    diff --git a/files/en-us/web/api/devicemotioneventrotationrate/gamma/index.html b/files/en-us/web/api/devicemotioneventrotationrate/gamma/index.html index b573af0c2545a65..01e28f59db8657b 100644 --- a/files/en-us/web/api/devicemotioneventrotationrate/gamma/index.html +++ b/files/en-us/web/api/devicemotioneventrotationrate/gamma/index.html @@ -2,13 +2,13 @@ title: 'DeviceMotionEventRotationRate: gamma' slug: Web/API/DeviceMotionEventRotationRate/gamma tags: -- API -- Device Orientation -- Intermediate -- Mobile -- Motion -- Orientation -- Reference + - API + - Device Orientation + - Intermediate + - Mobile + - Motion + - Orientation + - Reference ---

    {{ ApiRef("Device Orientation Events") }}

    @@ -28,7 +28,7 @@

    Return value

    gamma
    A double indicating the rate of rotation around the Y axis, in degrees per second. See Accelerometer + href="/en-US/docs/Web/API/Detecting_device_orientation#accelerometer_values_explained">Accelerometer values explained for details.
    diff --git a/files/en-us/web/api/deviceorientationevent/absolute/index.html b/files/en-us/web/api/deviceorientationevent/absolute/index.html index 7f4405002a85f72..2a727561505fc1b 100644 --- a/files/en-us/web/api/deviceorientationevent/absolute/index.html +++ b/files/en-us/web/api/deviceorientationevent/absolute/index.html @@ -2,19 +2,19 @@ title: DeviceOrientationEvent.absolute slug: Web/API/DeviceOrientationEvent/absolute tags: -- API -- Device Orientation API -- DeviceOrientationEvent -- NeedsExample -- NeedsMarkupWork -- Property -- Reference + - API + - Device Orientation API + - DeviceOrientationEvent + - NeedsExample + - NeedsMarkupWork + - Property + - Reference ---

    {{ apiref("Device Orientation Events") }}

    Indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined - by the device. See Orientation and motion data explained for details.

    @@ -56,9 +56,9 @@

    See also

    Returns
    -
    DirectoryReaderSync
    +
    DirectoryReaderSync
    Represents a directory in a file system.
    @@ -80,7 +80,7 @@
    Parameter
    Exceptions
    -

    This method can raise a FileException with the following codes:

    +

    This method can raise a FileException with the following codes:

    @@ -107,7 +107,7 @@

    getFile()

    void getFile (
       in DOMString path, in optional Flags options
    -) raises (FileException);
    +) raises (FileException);
    Parameter
    @@ -163,13 +163,13 @@
    Parameter
    Returns
    -
    FileEntrySync
    +
    FileEntrySync
    Represents a file in a file system.
    Exceptions
    -

    This method can raise a FileException with the following codes:

    +

    This method can raise a FileException with the following codes:

    @@ -216,7 +216,7 @@

    getDirectory()

    void getDirectory (
       in DOMString path, in optional Flags options
    -) raises (FileException);
    +) raises (FileException);
    Parameter
    @@ -272,13 +272,13 @@
    Parameter
    Returns
    -
    DirectoryEntrySync
    +
    DirectoryEntrySync
    Represents a directory in a file system.
    Exceptions
    -

    This method can raise a FileException with the following codes:

    +

    This method can raise a FileException with the following codes:

    @@ -326,7 +326,7 @@

    removeRecursively()

    If you delete a directory that contains a file that cannot be removed or if an error occurs while the deletion is in progress, some of the contents might not be deleted. Catch these cases with error callbacks and retry the deletion.

    void removeRecursively (
    -)  raises (FileException);
    +) raises (FileException);
    Parameter
    @@ -338,7 +338,7 @@
    Returns
    Exceptions
    -

    This method can raise a FileException with the following codes:

    +

    This method can raise a FileException with the following codes:

    @@ -377,6 +377,6 @@

    See also

    Specification: {{ spec("http://dev.w3.org/2009/dap/file-system/pub/FileSystem/", "File API: Directories and System Specification", "WD") }}

    -

    Reference: File System API

    +

    Reference: File System API

    -

    Introduction: Basic Concepts About the File System API

    +

    Introduction: Basic Concepts About the File System API

    diff --git a/files/en-us/web/api/directoryreadersync/index.html b/files/en-us/web/api/directoryreadersync/index.html index 58f052d5de4856f..d897a013287e737 100644 --- a/files/en-us/web/api/directoryreadersync/index.html +++ b/files/en-us/web/api/directoryreadersync/index.html @@ -8,7 +8,7 @@ ---

    {{APIRef("File System API")}}{{Non-standard_header}}

    -

    The DirectoryReaderSync interface of the File System API lets you read the entries in a directory.

    +

    The DirectoryReaderSync interface of the File System API lets you read the entries in a directory.

    This interface has been abandoned: it was on a standard track and it proves not a good idea. Do not use it anymore.

    @@ -22,7 +22,7 @@

    About this document

    Basic concepts

    -

    Before you call the only method in this interface, readEntries(), create the DirectoryEntrySync object. But DirectoryEntrySync (as well as FileEntrySync) is not a data type that you can pass between a calling app and Web Worker thread. It's not a big deal, because you don't really need to have the main app and the worker thread see the same JavaScript object; you just need them to access the same files. You can do that by passing a list of  filesystem: URLs—which are just strings—instead of a list of entries. You can also use the filesystem: URL to look up the entry with resolveLocalFileSystemURL(). That gets you back to a DirectoryEntrySync (as well as FileEntrySync) object.

    +

    Before you call the only method in this interface, readEntries(), create the DirectoryEntrySync object. But DirectoryEntrySync (as well as FileEntrySync) is not a data type that you can pass between a calling app and Web Worker thread. It's not a big deal, because you don't really need to have the main app and the worker thread see the same JavaScript object; you just need them to access the same files. You can do that by passing a list of  filesystem: URLs—which are just strings—instead of a list of entries. You can also use the filesystem: URL to look up the entry with resolveLocalFileSystemURL(). That gets you back to a DirectoryEntrySync (as well as FileEntrySync) object.

    Example

    @@ -100,7 +100,7 @@

    Method overview

    - +
    EntrySync readEntries () raises (FileException);EntrySync readEntries () raises (FileException);
    @@ -112,7 +112,7 @@

    readEntries()

    Returns a lost of entries from a specific directory. Call this method until an empty array is returned.

    EntrySync readEntries (
    -) raises (FileException);
    +) raises (FileException);
    Returns
    @@ -122,7 +122,7 @@
    Parameter
    Exceptions
    -

    This method can raise a FileException with the following codes:

    +

    This method can raise a FileException with the following codes:

    @@ -155,6 +155,6 @@

    See also

    Specification: {{ spec("http://dev.w3.org/2009/dap/file-system/pub/FileSystem/", "File API: Directories and System Specification", "WD") }}

    -

    Reference: File System API

    +

    Reference: File System API

    -

    Introduction: Basic Concepts About the File System API

    +

    Introduction: Basic Concepts About the File System API

    diff --git a/files/en-us/web/api/document/animationcancel_event/index.html b/files/en-us/web/api/document/animationcancel_event/index.html index 297acc2286a63ce..318ea37c720bde6 100644 --- a/files/en-us/web/api/document/animationcancel_event/index.html +++ b/files/en-us/web/api/document/animationcancel_event/index.html @@ -52,7 +52,7 @@

    Examples

    console.log('Animation canceled'); }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/animationend_event/index.html b/files/en-us/web/api/document/animationend_event/index.html index 740c09dea6c09ca..66efe68e0a5f452 100644 --- a/files/en-us/web/api/document/animationend_event/index.html +++ b/files/en-us/web/api/document/animationend_event/index.html @@ -52,7 +52,7 @@

    Examples

    console.log('Animation ended'); }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/animationiteration_event/index.html b/files/en-us/web/api/document/animationiteration_event/index.html index e646a37e10f7d56..6c5f93e8d324f81 100644 --- a/files/en-us/web/api/document/animationiteration_event/index.html +++ b/files/en-us/web/api/document/animationiteration_event/index.html @@ -58,7 +58,7 @@

    Examples

    console.log(`Animation iteration count: ${iterationCount}`); }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/animationstart_event/index.html b/files/en-us/web/api/document/animationstart_event/index.html index 52dd173d66fdbb1..98575d17e515270 100644 --- a/files/en-us/web/api/document/animationstart_event/index.html +++ b/files/en-us/web/api/document/animationstart_event/index.html @@ -54,7 +54,7 @@

    Examples

    }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/cookie/index.html b/files/en-us/web/api/document/cookie/index.html index f80e31c2d46eb04..4cc4c57dd5d88f0 100644 --- a/files/en-us/web/api/document/cookie/index.html +++ b/files/en-us/web/api/document/cookie/index.html @@ -2,14 +2,14 @@ title: Document.cookie slug: Web/API/Document/cookie tags: -- API -- Document -- HTML DOM -- JS -- NeedsMarkupWork -- Reference -- Storage -- cookie + - API + - Document + - HTML DOM + - JS + - NeedsMarkupWork + - Reference + - Storage + - cookie ---
    {{APIRef("DOM")}}
    @@ -90,7 +90,7 @@ over secure protocol as https. Before Chrome 52, this flag could appear with cookies from http domains.
    diff --git a/files/en-us/web/api/document/lastmodified/index.html b/files/en-us/web/api/document/lastmodified/index.html index 09a4f1b2a5ea17b..bf211b7fee3f3a8 100644 --- a/files/en-us/web/api/document/lastmodified/index.html +++ b/files/en-us/web/api/document/lastmodified/index.html @@ -2,12 +2,12 @@ title: Document.lastModified slug: Web/API/Document/lastModified tags: -- API -- Document -- HTML DOM -- NeedsSpecTable -- Property -- Reference + - API + - Document + - HTML DOM + - NeedsSpecTable + - Property + - Reference ---
    {{APIRef("DOM")}}
    @@ -52,7 +52,7 @@

    Notes

    Note that as a string, lastModified cannot easily be used for comparing the modification dates of documents. Here is a possible example of how to show an alert message when the page changes (see also: JavaScript cookies API):

    + href="/en-US/docs/Web/API/Document/cookie">JavaScript cookies API):

    if (Date.parse(document.lastModified) > parseFloat(document.cookie.replace(/(?:(?:^|.*;)\s*last_modif\s*\=\s*([^;]*).*$)|^.*$/, "$1") || "0")) {
       document.cookie = "last_modif=" + Date.now() + "; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=" + location.pathname;
    @@ -80,7 +80,7 @@ 

    Notes

    If you want to know whether an external page has changed, please read this + href="/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#get_last_modified_date">this paragraph about the XMLHttpRequest() API.

    Specifications

    diff --git a/files/en-us/web/api/document/laststylesheetset/index.html b/files/en-us/web/api/document/laststylesheetset/index.html index dfa5198369accca..e01a884fc8b5c0a 100644 --- a/files/en-us/web/api/document/laststylesheetset/index.html +++ b/files/en-us/web/api/document/laststylesheetset/index.html @@ -2,16 +2,16 @@ title: Document.lastStyleSheetSet slug: Web/API/Document/lastStyleSheetSet tags: -- API -- CSSOM -- DOM -- Document -- Property -- Reference -- Stylesheets -- lastStyleSheetSet + - API + - CSSOM + - DOM + - Document + - Property + - Reference + - Stylesheets + - lastStyleSheetSet --- -
    {{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
    +
    {{APIRef("DOM")}}{{deprecated_header}}

    The Document.lastStyleSheetSet property returns the last enabled style sheet set. This property's diff --git a/files/en-us/web/api/document/lostpointercapture_event/index.html b/files/en-us/web/api/document/lostpointercapture_event/index.html index c59267fbbc6405b..c3524c97550a3eb 100644 --- a/files/en-us/web/api/document/lostpointercapture_event/index.html +++ b/files/en-us/web/api/document/lostpointercapture_event/index.html @@ -11,7 +11,7 @@ ---

    {{APIRef}}
    -

    The lostpointercapture event is fired when a captured pointer is released.

    +

    The lostpointercapture event is fired when a captured pointer is released.

    diff --git a/files/en-us/web/api/document/mozsetimageelement/index.html b/files/en-us/web/api/document/mozsetimageelement/index.html index 0a74a5f262de5b3..f506691b5f8d7c6 100644 --- a/files/en-us/web/api/document/mozsetimageelement/index.html +++ b/files/en-us/web/api/document/mozsetimageelement/index.html @@ -2,14 +2,14 @@ title: Document.mozSetImageElement() slug: Web/API/Document/mozSetImageElement tags: -- API -- DOM -- DOM Reference -- Method -- Non-standard -- Reference + - API + - DOM + - DOM Reference + - Method + - Non-standard + - Reference --- -

    {{ ApiRef("DOM") }}{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

    +

    {{ ApiRef("DOM") }}{{ non-standard_header() }}

    The Document.mozSetImageElement() method changes the element being used as the CSS background for a background with a given background @@ -36,7 +36,7 @@

    Example

    This example changes the background of a {{ HTMLElement("div") }} block each time the block is clicked by the user.

    -

    View this example live.

    +

    View this example live.

    <style type="text/css">
       #mybox {
    diff --git a/files/en-us/web/api/document/onafterscriptexecute/index.html b/files/en-us/web/api/document/onafterscriptexecute/index.html
    index b2c4202dc69a378..7f3669855a0426a 100644
    --- a/files/en-us/web/api/document/onafterscriptexecute/index.html
    +++ b/files/en-us/web/api/document/onafterscriptexecute/index.html
    @@ -2,11 +2,11 @@
     title: Document.onafterscriptexecute
     slug: Web/API/Document/onafterscriptexecute
     tags:
    -- API
    -- DOM
    -- Non-standard
    -- Property
    -- Reference
    +  - API
    +  - DOM
    +  - Non-standard
    +  - Property
    +  - Reference
     ---
     
    {{ApiRef("DOM")}}{{non-standard_header}}
    @@ -33,7 +33,7 @@

    Example

    document.addEventListener('afterscriptexecute', finished, true);
    -

    View Live Example

    +

    View Live Example

    Specifications

    diff --git a/files/en-us/web/api/document/onbeforescriptexecute/index.html b/files/en-us/web/api/document/onbeforescriptexecute/index.html index 16d3f5a8b17a44e..6700bc819b4c724 100644 --- a/files/en-us/web/api/document/onbeforescriptexecute/index.html +++ b/files/en-us/web/api/document/onbeforescriptexecute/index.html @@ -2,12 +2,12 @@ title: Document.onbeforescriptexecute slug: Web/API/Document/onbeforescriptexecute tags: -- API -- DOM -- Non-standard -- Property -- Reference -- element.onbeforescriptexecute + - API + - DOM + - Non-standard + - Property + - Reference + - element.onbeforescriptexecute ---
    {{ApiRef("DOM")}} {{non-standard_header }}
    @@ -33,7 +33,7 @@

    Example

    document.addEventListener("beforescriptexecute", starting, true); -

    View Live Examples

    +

    View Live Examples

    Specifications

    diff --git a/files/en-us/web/api/document/onoffline/index.html b/files/en-us/web/api/document/onoffline/index.html index 0c39819c498dfd6..e77e91a10cdfae8 100644 --- a/files/en-us/web/api/document/onoffline/index.html +++ b/files/en-us/web/api/document/onoffline/index.html @@ -10,4 +10,4 @@ ---

    {{APIRef("DOM")}}

    -

    The Document.onoffline event handler is called when an {{event("offline")}} is fired on the {{HtmlElement("body")}} element and bubbles up, when {{domxref("navigator.onLine")}} property changes and becomes false.

    +

    The Document.onoffline event handler is called when an {{event("offline")}} is fired on the {{HtmlElement("body")}} element and bubbles up, when {{domxref("NavigatorOnLine.onLine")}} property changes and becomes false.

    diff --git a/files/en-us/web/api/document/ononline/index.html b/files/en-us/web/api/document/ononline/index.html index 63b95e1e11b233b..b9ccee2c22dbc5f 100644 --- a/files/en-us/web/api/document/ononline/index.html +++ b/files/en-us/web/api/document/ononline/index.html @@ -33,6 +33,6 @@

    Example

    References

    diff --git a/files/en-us/web/api/document/pointerlockchange_event/index.html b/files/en-us/web/api/document/pointerlockchange_event/index.html index 5cd9f189bdbb005..a764e344e1cc232 100644 --- a/files/en-us/web/api/document/pointerlockchange_event/index.html +++ b/files/en-us/web/api/document/pointerlockchange_event/index.html @@ -71,5 +71,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/document/pointerlockerror_event/index.html b/files/en-us/web/api/document/pointerlockerror_event/index.html index 87da3a2f24b4dae..0214a8e9774ff0f 100644 --- a/files/en-us/web/api/document/pointerlockerror_event/index.html +++ b/files/en-us/web/api/document/pointerlockerror_event/index.html @@ -73,5 +73,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/document/pointermove_event/index.html b/files/en-us/web/api/document/pointermove_event/index.html index 66890beaabcfeef..7f5b2303598c03b 100644 --- a/files/en-us/web/api/document/pointermove_event/index.html +++ b/files/en-us/web/api/document/pointermove_event/index.html @@ -12,7 +12,7 @@ ---
    {{APIRef}}
    -

    The pointermove event is fired when a pointer changes coordinates, and the pointer has not been canceled by a browser touch-action.

    +

    The pointermove event is fired when a pointer changes coordinates, and the pointer has not been canceled by a browser touch-action.

    diff --git a/files/en-us/web/api/document/preferredstylesheetset/index.html b/files/en-us/web/api/document/preferredstylesheetset/index.html index 0c56f01666eb786..f7d35f3b4dd4f19 100644 --- a/files/en-us/web/api/document/preferredstylesheetset/index.html +++ b/files/en-us/web/api/document/preferredstylesheetset/index.html @@ -2,15 +2,15 @@ title: Document.preferredStyleSheetSet slug: Web/API/Document/preferredStyleSheetSet tags: -- API -- CSSOM -- DOM -- Document -- Property -- Reference -- Stylesheets + - API + - CSSOM + - DOM + - Document + - Property + - Reference + - Stylesheets --- -
    {{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
    +
    {{APIRef("DOM")}}{{deprecated_header}}

    The preferredStyleSheetSet property returns the preferred style sheet set as set by the page diff --git a/files/en-us/web/api/document/querycommandstate/index.html b/files/en-us/web/api/document/querycommandstate/index.html index ae4ec0f7c51511e..fb5b33430d9e874 100644 --- a/files/en-us/web/api/document/querycommandstate/index.html +++ b/files/en-us/web/api/document/querycommandstate/index.html @@ -81,6 +81,6 @@

    See also

    diff --git a/files/en-us/web/api/document/queryselectorall/index.html b/files/en-us/web/api/document/queryselectorall/index.html index 56cb4b2138cfc76..65ddd4fb65d37d0 100644 --- a/files/en-us/web/api/document/queryselectorall/index.html +++ b/files/en-us/web/api/document/queryselectorall/index.html @@ -2,18 +2,18 @@ title: Document.querySelectorAll() slug: Web/API/Document/querySelectorAll tags: -- API -- CSS Selectors -- DOM -- Document -- Finding Elements -- Locating Elements -- Method -- Reference -- Searching Elements -- Selecting Elements -- Selectors -- querySelectorAll + - API + - CSS Selectors + - DOM + - Document + - Finding Elements + - Locating Elements + - Method + - Reference + - Searching Elements + - Selecting Elements + - Selectors + - querySelectorAll ---
    {{APIRef("DOM")}}
    @@ -49,7 +49,7 @@

    Parameters

    Note: Characters which are not part of standard CSS syntax must be escaped using a backslash character. Since JavaScript also uses backslash escaping, special care must be taken when writing string literals using these characters. See Escaping + href="/en-US/docs/Web/API/Document/querySelector#escaping_special_characters">Escaping special characters for more information.

    @@ -211,7 +211,7 @@

    See also

    DOM elements using selectors
  • Attribute selectors in the CSS Guide
  • -
  • Attribute +
  • Attribute selectors in the MDN Learning Area
  • {{domxref("Element.querySelector()")}} and {{domxref("Element.querySelectorAll()")}}
  • diff --git a/files/en-us/web/api/document/readystate/index.html b/files/en-us/web/api/document/readystate/index.html index 54f87a7ce05010b..bea8130eb510625 100644 --- a/files/en-us/web/api/document/readystate/index.html +++ b/files/en-us/web/api/document/readystate/index.html @@ -2,12 +2,12 @@ title: Document.readyState slug: Web/API/Document/readyState tags: -- API -- HTML DOM -- Property -- Reference + - API + - HTML DOM + - Property + - Reference --- -
    {{APIRef("DOM")}}{{gecko_minversion_header("1.9.2")}}
    +
    {{APIRef("DOM")}}

    The Document.readyState property describes the loading state of the {{domxref("document")}}.

    diff --git a/files/en-us/web/api/document/referrer/index.html b/files/en-us/web/api/document/referrer/index.html index 62d790ad5f5f8ae..94eae6c6ab0b864 100644 --- a/files/en-us/web/api/document/referrer/index.html +++ b/files/en-us/web/api/document/referrer/index.html @@ -2,12 +2,12 @@ title: Document.referrer slug: Web/API/Document/referrer tags: -- API -- Document -- HTML DOM -- NeedsSpecTable -- Property -- Reference + - API + - Document + - HTML DOM + - NeedsSpecTable + - Property + - Reference ---
    {{APIRef("DOM")}}
    @@ -28,7 +28,7 @@

    Value

    Inside an {{HTMLElement("iframe")}}, the Document.referrer will initially - be set to the same value as the {{domxref("HTMLHyperlinkElementUtils/href", "href")}} of + be set to the same value as the {{domxref("HTMLAnchorElement/href", "href")}} of the parent window's {{domxref("Window/location", "Window.location")}}.

    Specifications

    diff --git a/files/en-us/web/api/document/registerelement/index.html b/files/en-us/web/api/document/registerelement/index.html index 087082e4152cb8d..5afc8a65cd24e55 100644 --- a/files/en-us/web/api/document/registerelement/index.html +++ b/files/en-us/web/api/document/registerelement/index.html @@ -2,12 +2,12 @@ title: Document.registerElement() slug: Web/API/Document/registerElement tags: -- API -- DOM -- Deprecated -- Method -- Reference -- Web Components + - API + - DOM + - Deprecated + - Method + - Reference + - Web Components ---
    {{APIRef("DOM")}}{{Deprecated_header}}
    @@ -20,13 +20,13 @@

    {{draft}}

    The document.registerElement() method registers a new custom element in the + href="/en-US/docs/Web/Web_Components/Using_custom_elements">custom element in the browser and returns a constructor for the new element.

    Note: This is an experimental technology. The browser you use it in must support Web Components. See Enabling + href="/en-US/docs/Web/Web_Components#enabling_web_components_in_firefox">Enabling Web Components in Firefox.

    @@ -78,5 +78,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/document/releasecapture/index.html b/files/en-us/web/api/document/releasecapture/index.html index 0fe5e9d3590dd13..5fca41741141560 100644 --- a/files/en-us/web/api/document/releasecapture/index.html +++ b/files/en-us/web/api/document/releasecapture/index.html @@ -2,12 +2,12 @@ title: Document.releaseCapture() slug: Web/API/Document/releaseCapture tags: -- API -- DOM -- Method -- Reference + - API + - DOM + - Method + - Reference --- -
    {{ApiRef("DOM")}}{{gecko_minversion_header("2.0")}}
    +
    {{ApiRef("DOM")}}

    The releaseCapture() method releases mouse capture if it's currently enabled on an element within this document. Enabling mouse capture on an @@ -23,7 +23,7 @@

    Syntax

    Example

    -

    See the example for +

    See the example for {{domxref("element.setCapture()")}}.

    Specifications

    diff --git a/files/en-us/web/api/document/requeststorageaccess/index.html b/files/en-us/web/api/document/requeststorageaccess/index.html index 675afdc6e3135e5..2662039bcd7f4cb 100644 --- a/files/en-us/web/api/document/requeststorageaccess/index.html +++ b/files/en-us/web/api/document/requeststorageaccess/index.html @@ -2,13 +2,13 @@ title: Document.requestStorageAccess() slug: Web/API/Document/requestStorageAccess tags: -- API -- DOM -- Document -- Method -- Reference -- Storage Access API -- requestStorageAccess + - API + - DOM + - Document + - Method + - Reference + - Storage Access API + - requestStorageAccess ---
    {{APIRef}}
    @@ -67,7 +67,7 @@

    Conditions for granting storage @@ -104,7 +104,7 @@

    Conditions for granting storage

    Note: If the requesting origin is not classified + href="/en-US/docs/Mozilla/Firefox/Privacy/Storage_access_policy#tracking_protection_explained">classified as a tracking origin, the access request is automatically given an ephemeral storage access grant, which will go away when the page is reloaded. The user is never shown a prompt in this case, and calling requestStorageAccess() won’t diff --git a/files/en-us/web/api/document/scroll_event/index.html b/files/en-us/web/api/document/scroll_event/index.html index 7949e01c72d06ec..45c841cf45a5faf 100644 --- a/files/en-us/web/api/document/scroll_event/index.html +++ b/files/en-us/web/api/document/scroll_event/index.html @@ -69,7 +69,7 @@

    Scroll event throttling

    } }); -

    See more, similar examples on the resize event page.

    +

    See more, similar examples on the resize event page.

    Specifications

    diff --git a/files/en-us/web/api/document/selectedstylesheetset/index.html b/files/en-us/web/api/document/selectedstylesheetset/index.html index dea8d3f5ee52f38..753662d642f806b 100644 --- a/files/en-us/web/api/document/selectedstylesheetset/index.html +++ b/files/en-us/web/api/document/selectedstylesheetset/index.html @@ -2,14 +2,14 @@ title: Document.selectedStyleSheetSet slug: Web/API/Document/selectedStyleSheetSet tags: -- API -- CSSOM -- DOM -- Property -- Reference -- Stylesheets + - API + - CSSOM + - DOM + - Property + - Reference + - Stylesheets --- -
    {{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
    +
    {{APIRef("DOM")}}{{deprecated_header}}

    The selectedStyleSheetSet property indicates the name of the style sheet set that's currently in diff --git a/files/en-us/web/api/document/selectionchange_event/index.html b/files/en-us/web/api/document/selectionchange_event/index.html index afb9056d97d5d5d..4b4ce8107d3aa75 100644 --- a/files/en-us/web/api/document/selectionchange_event/index.html +++ b/files/en-us/web/api/document/selectionchange_event/index.html @@ -11,7 +11,7 @@ ---

    {{APIRef}}

    -

    The selectionchange event of the Selection API is fired when the current text selection on a document is changed.

    +

    The selectionchange event of the Selection API is fired when the current text selection on a document is changed.

    @@ -74,6 +74,6 @@

    See also

    diff --git a/files/en-us/web/api/document/stylesheetsets/index.html b/files/en-us/web/api/document/stylesheetsets/index.html index 4b1de4456131b8d..2a7cde6a533b1fd 100644 --- a/files/en-us/web/api/document/stylesheetsets/index.html +++ b/files/en-us/web/api/document/stylesheetsets/index.html @@ -2,14 +2,14 @@ title: Document.styleSheetSets slug: Web/API/Document/styleSheetSets tags: -- API -- CSSOM -- DOM -- Property -- Reference -- Stylesheets + - API + - CSSOM + - DOM + - Property + - Reference + - Stylesheets --- -
    {{APIRef("DOM")}}{{gecko_minversion_header("1.9")}}{{deprecated_header}}
    +
    {{APIRef("DOM")}}{{deprecated_header}}

    The styleSheetSets read-only property returns a live list of all of the currently-available style sheet @@ -43,7 +43,7 @@

    Notes

    The list of available style sheet sets is constructed by enumerating all the style sheets available for the document, in the order in which they're listed in the - {{domxref("document.styleSheets")}} attribute, adding the title of each + {{domxref("Document.styleSheets")}} attribute, adding the title of each style sheet that has a title to the list. Duplicates are dropped from the list (using a case-sensitive comparison).

    @@ -55,7 +55,7 @@

    See also

    @@ -52,7 +52,7 @@

    Examples

    console.log('Transition ended'); }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/transitionrun_event/index.html b/files/en-us/web/api/document/transitionrun_event/index.html index 77aa3542fc4690d..ec56b1e833d4b30 100644 --- a/files/en-us/web/api/document/transitionrun_event/index.html +++ b/files/en-us/web/api/document/transitionrun_event/index.html @@ -11,7 +11,7 @@ ---
    {{APIRef}}{{SeeCompatTable}}
    -

    The transitionrun event is fired when a CSS transition is first created, i.e. before any {{cssxref("transition-delay")}} has begun.

    +

    The transitionrun event is fired when a CSS transition is first created, i.e. before any {{cssxref("transition-delay")}} has begun.

    @@ -50,7 +50,7 @@

    Examples

    console.log('Transition started running'); }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/transitionstart_event/index.html b/files/en-us/web/api/document/transitionstart_event/index.html index e7cce9a816d4988..faa9a6822dae47b 100644 --- a/files/en-us/web/api/document/transitionstart_event/index.html +++ b/files/en-us/web/api/document/transitionstart_event/index.html @@ -11,7 +11,7 @@ ---
    {{APIRef}}{{SeeCompatTable}}
    -

    The transitionstart event is fired when a CSS transition has actually started, i.e., after any {{cssxref("transition-delay")}} has ended.

    +

    The transitionstart event is fired when a CSS transition has actually started, i.e., after any {{cssxref("transition-delay")}} has ended.

    The difference is transitionstart and transitionrun is that transitionrun fires when the transition is created (i.e. at the start of any delay) and transitionstart fires when the actual animation has begun (i.e. at the end of any delay).

    @@ -52,7 +52,7 @@

    Examples

    console.log('Started transitioning'); }; -

    See a live example of this event.

    +

    See a live example of this event.

    Specifications

    diff --git a/files/en-us/web/api/document/visibilitychange_event/index.html b/files/en-us/web/api/document/visibilitychange_event/index.html index a6fdbf6cd90dd7f..e0575bb83262e51 100644 --- a/files/en-us/web/api/document/visibilitychange_event/index.html +++ b/files/en-us/web/api/document/visibilitychange_event/index.html @@ -39,7 +39,7 @@

    Usage notes

    The event doesn't include the document's updated visibility status, but you can get that information from the document's {{domxref("Document.visibilityState", "visibilityState")}} property.

    -

    This event fires with a visibilityState of hidden when a user navigates to a new page, switches tabs, closes the tab, minimizes or closes the browser, or, on mobile, switches from the browser to a different app. Transitioning to hidden is the last event that's reliably observable by the page, so developers should treat it as the likely end of the user's session (for example, for sending analytics data).

    +

    This event fires with a visibilityState of hidden when a user navigates to a new page, switches tabs, closes the tab, minimizes or closes the browser, or, on mobile, switches from the browser to a different app. Transitioning to hidden is the last event that's reliably observable by the page, so developers should treat it as the likely end of the user's session (for example, for sending analytics data).

    The transition to hidden is also a good point at which pages can stop making UI updates and stop any tasks that the user doesn't want to have running in the background.

    diff --git a/files/en-us/web/api/document/write/index.html b/files/en-us/web/api/document/write/index.html index 04c02b22789354f..d8b18ee0f698b91 100644 --- a/files/en-us/web/api/document/write/index.html +++ b/files/en-us/web/api/document/write/index.html @@ -13,7 +13,7 @@

    The Document.write() method writes a string of text to a document stream opened by {{domxref("document.open()")}}.

    -
    Note: Because document.write() writes to the document stream, calling document.write() on a closed (loaded) document automatically calls document.open(), which will clear the document.
    +
    Note: Because document.write() writes to the document stream, calling document.write() on a closed (loaded) document automatically calls document.open(), which will clear the document.

    Syntax

    diff --git a/files/en-us/web/api/document_object_model/events/index.html b/files/en-us/web/api/document_object_model/events/index.html index d4a5cce8a592fa4..7666b5337723ff9 100644 --- a/files/en-us/web/api/document_object_model/events/index.html +++ b/files/en-us/web/api/document_object_model/events/index.html @@ -13,7 +13,7 @@

    Introduction

    There is an excellent diagram that clearly explains the three phases of event flow through the DOM in the DOM Level 3 Events draft.

    -

    Also see Example 5: Event Propagation in the Examples chapter for a more detailed example of how events move through the DOM.

    +

    Also see Example 5: Event Propagation in the Examples chapter for a more detailed example of how events move through the DOM.

    Registering event listeners

    @@ -34,12 +34,12 @@

    {{domxref("EventTarget.addEventListener")}

    This is the method you should use in modern web pages.

    -

    Note: Internet Explorer 6–8 didn't support this method, offering a similar {{domxref("EventTarget.attachEvent")}} API instead. For cross-browser compatibility, use one of the many JavaScript libraries available.

    +

    Note: Internet Explorer 6–8 didn't support this method, offering a similar {{domxref("EventTarget.addEventListener")}} API instead. For cross-browser compatibility, use one of the many JavaScript libraries available.

    More details can be found on the {{domxref("EventTarget.addEventListener")}} reference page.

    -

    HTML attribute

    +

    HTML attribute

    <button onclick="alert('Hello world!')">
     
    diff --git a/files/en-us/web/api/document_object_model/examples/index.html b/files/en-us/web/api/document_object_model/examples/index.html index 735165d41dafc4e..a8df13a6459b43a 100644 --- a/files/en-us/web/api/document_object_model/examples/index.html +++ b/files/en-us/web/api/document_object_model/examples/index.html @@ -261,7 +261,7 @@

    Example 6: getComputedStyle

    Example 7: Displaying Event Object Properties

    -

    This example uses DOM methods to display all the properties of the {{domxref("window.onload")}} {{domxref("event")}} object and their values in a table. It also shows a useful technique of using a for..in loop to iterate over the properties of an object to get their values.

    +

    This example uses DOM methods to display all the properties of the {{domxref("GlobalEventHandlers.onload")}} {{domxref("event")}} object and their values in a table. It also shows a useful technique of using a for..in loop to iterate over the properties of an object to get their values.

    The properties of event objects differs greatly between browsers, the WHATWG DOM Standard lists the standard properties, however many browsers have extended these greatly.

    @@ -362,7 +362,7 @@

    Notes

    diff --git a/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html b/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html index 76bbe55f5002856..158bdb0fdc16696 100644 --- a/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html +++ b/files/en-us/web/api/document_object_model/how_to_create_a_dom_tree/index.html @@ -134,17 +134,17 @@

    Dynamically creating a DOM tree

    So what?

    -

    DOM trees can be queried using XPath expressions, converted to strings or written to a local or remote files using XMLSerializer (without having to first convert to a string), POSTed to a web server (via XMLHttpRequest), transformed using XSLT, XLink, converted to a JavaScript object through a JXON algorithm, etc.

    +

    DOM trees can be queried using XPath expressions, converted to strings or written to a local or remote files using XMLSerializer (without having to first convert to a string), POSTed to a web server (via XMLHttpRequest), transformed using XSLT, XLink, converted to a JavaScript object through a JXON algorithm, etc.

    You can use DOM trees to model data which isn't well-suited for RDF (or perhaps you just don't like RDF). Another application is that, since XUL is XML, the UI of your application can be dynamically manipulated, downloaded, uploaded, saved, loaded, converted, or transformed quite easily.

    See also

    diff --git a/files/en-us/web/api/document_object_model/index.html b/files/en-us/web/api/document_object_model/index.html index 703e30ad18a2519..c6a137e29f6c217 100644 --- a/files/en-us/web/api/document_object_model/index.html +++ b/files/en-us/web/api/document_object_model/index.html @@ -100,7 +100,7 @@

    HTML DOM

    A document containing HTML is described using the {{DOMxRef("Document")}} interface, which is extended by the HTML specification to include various HTML-specific features. In particular, the {{domxref("Element")}} interface is enhanced to become {{domxref("HTMLElement")}} and various subclasses, each representing one of (or a family of closely related) elements.

    -

    The HTML DOM API provides access to various browser features such as tabs and windows, CSS styles and stylesheets, browser history, and so forth. These interfaces are discussed further in the HTML DOM API documentation.

    +

    The HTML DOM API provides access to various browser features such as tabs and windows, CSS styles and stylesheets, browser history, and so forth. These interfaces are discussed further in the HTML DOM API documentation.

    SVG interfaces

    diff --git a/files/en-us/web/api/documentfragment/documentfragment/index.html b/files/en-us/web/api/documentfragment/documentfragment/index.html index 1bff11608a86565..7b68db2ab54c9d8 100644 --- a/files/en-us/web/api/documentfragment/documentfragment/index.html +++ b/files/en-us/web/api/documentfragment/documentfragment/index.html @@ -2,11 +2,11 @@ title: DocumentFragment() slug: Web/API/DocumentFragment/DocumentFragment tags: -- API -- Constructor -- DOM -- DocumentFragment -- Experimental + - API + - Constructor + - DOM + - DocumentFragment + - Experimental ---
    {{ApiRef("DOM")}}{{SeeCompatTable}}
    @@ -21,7 +21,7 @@

    Syntax

    Example

    let fragment = new DocumentFragment();
    + class="brush: js language-js">let fragment = new DocumentFragment();

    Specifications

    @@ -48,5 +48,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html b/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html index f3addb6d14f4ee9..bb4f2258063564a 100644 --- a/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html +++ b/files/en-us/web/api/documentorshadowroot/elementfrompoint/index.html @@ -2,19 +2,19 @@ title: DocumentOrShadowRoot.elementFromPoint() slug: Web/API/DocumentOrShadowRoot/elementFromPoint tags: -- API -- Coordinates -- Document -- DocumentOrShadowRoot -- Find Element -- Method -- Point -- Reference -- ShadowRoot -- elementFromPoint -- elementFromPoint() -- find -- shadow dom + - API + - Coordinates + - Document + - DocumentOrShadowRoot + - Find Element + - Method + - Point + - Reference + - ShadowRoot + - elementFromPoint + - elementFromPoint() + - find + - shadow dom ---
    {{APIRef("DOM")}}
    @@ -40,7 +40,7 @@ coordinate is negative, the result is null.

    If you need to find the specific position inside the element, use - {{domxref("Document.caretPositionFromPoint()")}}.

    + {{domxref("DocumentOrShadowRoot.caretPositionFromPoint")}}.

    Syntax

    diff --git a/files/en-us/web/api/documentorshadowroot/index.html b/files/en-us/web/api/documentorshadowroot/index.html index a0bf9ce980a4c40..3dc19ecd365076d 100644 --- a/files/en-us/web/api/documentorshadowroot/index.html +++ b/files/en-us/web/api/documentorshadowroot/index.html @@ -17,15 +17,15 @@

    Properties

    -
    {{DOMxRef("DocumentOrShadowRoot.activeElement")}}{{ReadOnlyInline}}
    +
    {{DOMxRef("Document.activeElement")}}{{ReadOnlyInline}}
    Returns the {{DOMxRef('Element')}} within the shadow tree that has focus.
    -
    {{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}}{{ReadOnlyInline}}
    +
    {{DOMxRef("Document.fullscreenElement")}}{{ReadOnlyInline}}
    Returns the {{DOMxRef('Element')}} that's currently in full screen mode for this document.
    -
    {{DOMxRef("DocumentOrShadowRoot.pictureInPictureElement")}}{{ReadOnlyInline}}
    +
    {{DOMxRef("Document.pictureInPictureElement")}}{{ReadOnlyInline}}
    Returns the {{DOMxRef('HTMLVideoElement')}} that's currently in picture-in-picture mode for this document.
    -
    {{DOMxRef("DocumentOrShadowRoot.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}
    +
    {{DOMxRef("Document.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}
    Returns the element set as the target for mouse events while the pointer is locked. It returns null if lock is pending, the pointer is unlocked, or if the target is in another document.
    -
    {{DOMxRef("DocumentOrShadowRoot.styleSheets")}}{{ReadOnlyInline}}
    +
    {{DOMxRef("Document.styleSheets")}}{{ReadOnlyInline}}
    Returns a {{DOMxRef('StyleSheetList')}} of {{DOMxRef('CSSStyleSheet')}} objects for stylesheets explicitly linked into, or embedded in a document.
    diff --git a/files/en-us/web/api/documenttouch/index.html b/files/en-us/web/api/documenttouch/index.html index ffc50667488df4d..c577de89b16aad3 100644 --- a/files/en-us/web/api/documenttouch/index.html +++ b/files/en-us/web/api/documenttouch/index.html @@ -17,16 +17,16 @@

    Methods

    -
    {{DOMxRef("DocumentTouch.createTouch()")}}
    +
    {{DOMxRef("Document.createTouch")}}
    Creates a new {{DOMxRef("Touch")}} object.
    -
    {{DOMxRef("DocumentTouch.createTouchList()")}}
    +
    {{DOMxRef("Document.createTouchList")}}
    Creates a new {{DOMxRef("TouchList")}} object.

    See also

    diff --git a/files/en-us/web/api/dompointinit/x/index.html b/files/en-us/web/api/dompointinit/x/index.html index f485b7010970697..bbb32299ed528cd 100644 --- a/files/en-us/web/api/dompointinit/x/index.html +++ b/files/en-us/web/api/dompointinit/x/index.html @@ -2,16 +2,16 @@ title: DOMPointInit.x slug: Web/API/DOMPointInit/x tags: -- API -- Coordinates -- DOM -- DOMPointInit -- Geometry -- Geometry Interfaces -- Point -- Property -- Reference -- x + - API + - Coordinates + - DOM + - DOMPointInit + - Geometry + - Geometry Interfaces + - Point + - Property + - Reference + - x ---
    {{APIRef("DOM")}}
    @@ -47,7 +47,7 @@

    Value

    DOMPointInit is used as an input when calling either {{domxref("DOMPointReadOnly.fromPoint()")}} or {{domxref("DOMPoint.fromPoint()")}}, and is returned by the {{domxref("DOMPointReadOnly.toJSON()")}} and - {{domxref("DOMPoint.toJSON()")}} methods.

    + {{domxref("DOMPointReadOnly.toJSON")}} methods.

    Specifications

    diff --git a/files/en-us/web/api/dompointinit/y/index.html b/files/en-us/web/api/dompointinit/y/index.html index 28f498d405d8c18..2d4a772bfa38cf0 100644 --- a/files/en-us/web/api/dompointinit/y/index.html +++ b/files/en-us/web/api/dompointinit/y/index.html @@ -2,16 +2,16 @@ title: DOMPointInit.y slug: Web/API/DOMPointInit/y tags: -- API -- Coordinates -- DOM -- DOMPointInit -- Geometry -- Geometry Interfaces -- Point -- Property -- Reference -- 'y' + - API + - Coordinates + - DOM + - DOMPointInit + - Geometry + - Geometry Interfaces + - Point + - Property + - Reference + - 'y' ---
    {{APIRef("DOM")}}
    @@ -53,7 +53,7 @@

    Value

    inheritance, also available as {{domxref("DOMPoint.fromPoint()")}}.
  • The {{domxref("DOMPointReadOnly.toJSON()")}} method returns a DOMPointInit object that describes the same point as the original point. - By inheritance, this method is also available as {{domxref("DOMPoint.toJSON()")}}. + By inheritance, this method is also available as {{domxref("DOMPointReadOnly.toJSON")}}.
  • diff --git a/files/en-us/web/api/dompointinit/z/index.html b/files/en-us/web/api/dompointinit/z/index.html index bb5e9ff29e44c6b..b67d5e898eadd7f 100644 --- a/files/en-us/web/api/dompointinit/z/index.html +++ b/files/en-us/web/api/dompointinit/z/index.html @@ -2,16 +2,16 @@ title: DOMPointInit.z slug: Web/API/DOMPointInit/z tags: -- API -- Coordinates -- DOM -- DOMPointInit -- Geometry -- Geometry Interfaces -- Point -- Property -- Reference -- z + - API + - Coordinates + - DOM + - DOMPointInit + - Geometry + - Geometry Interfaces + - Point + - Property + - Reference + - z ---
    {{APIRef("DOM")}}
    @@ -54,7 +54,7 @@

    Value

    inheritance, also available as {{domxref("DOMPoint.fromPoint()")}}.
  • The {{domxref("DOMPointReadOnly.toJSON()")}} method returns a DOMPointInit object that describes the same point as the original point. - By inheritance, this method is also available as {{domxref("DOMPoint.toJSON()")}}. + By inheritance, this method is also available as {{domxref("DOMPointReadOnly.toJSON")}}.
  • diff --git a/files/en-us/web/api/domstring/binary/index.html b/files/en-us/web/api/domstring/binary/index.html index 395f251ce411c41..0e963cd343ee446 100644 --- a/files/en-us/web/api/domstring/binary/index.html +++ b/files/en-us/web/api/domstring/binary/index.html @@ -10,11 +10,11 @@ ---

    {{jsxref("String", "JavaScript strings")}} are UTF-16 encoded strings. This means that each code unit requires two bytes of memory and is able to represent 65535 different code points. A subset of these strings is represented by UTF-16 strings containing only ASCII characters (i.e., characters whose code point does not exceed 127). For instance, the string "Hello world!" belongs to the ASCII subset, while the string "ÀÈÌÒÙ" does not. A binary string is a concept similar to the ASCII subset, but instead of limiting the range to 127, it allows code points until 255. Its purpose however is not to represent characters, but binary data. The size of the data so represented is twice as big as it would be in normal binary format, however this will not be visible to the final user, since the length of JavaScript strings is calculated using two bytes as the unit.

    -

    Binary strings are not part of the JavaScript language design. However at least one native function requires binary strings as its input, {{domxref("WindowBase64.btoa","btoa()")}}: invoking it on a string that contains codepoints greater than 255 will cause a Character Out Of Range error.

    +

    Binary strings are not part of the JavaScript language design. However at least one native function requires binary strings as its input, {{domxref("WindowOrWorkerGlobalScope/btoa","btoa()")}}: invoking it on a string that contains codepoints greater than 255 will cause a Character Out Of Range error.

    The reason that brought to use UTF-16 code units as placeholders for uint8 numbers is that as web applications become more and more powerful (adding features such as audio and video manipulation, access to raw data using WebSockets, and so forth) it has become clear that there are times when it would be helpful for JavaScript code to be able to quickly and easily manipulate raw binary data.

    -

    In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt() method to read the bytes from the data buffer (i.e., using binary strings). However, this is slow and error-prone, due to the need for multiple conversions (especially if the binary data is not actually byte-format data, but, for example, 32-bit integers or floats).

    +

    In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt() method to read the bytes from the data buffer (i.e., using binary strings). However, this is slow and error-prone, due to the need for multiple conversions (especially if the binary data is not actually byte-format data, but, for example, 32-bit integers or floats).

    JavaScript typed arrays provide a mechanism for accessing raw binary data much more efficiently.

    diff --git a/files/en-us/web/api/domstringlist/index.html b/files/en-us/web/api/domstringlist/index.html index bd56ff1c60e383e..bbe104ebd49d140 100644 --- a/files/en-us/web/api/domstringlist/index.html +++ b/files/en-us/web/api/domstringlist/index.html @@ -9,7 +9,7 @@ ---

    {{ APIRef("DOM") }}

    -

    A type returned by some APIs which contains a list of DOMString (strings).

    +

    A type returned by some APIs which contains a list of DOMString (strings).

    Properties

    diff --git a/files/en-us/web/api/domstringmap/index.html b/files/en-us/web/api/domstringmap/index.html index 654d6aa4b21ffbb..cd5a7ec267b19e3 100644 --- a/files/en-us/web/api/domstringmap/index.html +++ b/files/en-us/web/api/domstringmap/index.html @@ -12,7 +12,7 @@ ---
    {{ APIRef("HTML DOM") }}
    -

    The DOMStringMap interface is used for the {{ domxref("HTMLElement.dataset") }} attribute, to represent data for custom attributes added to elements.

    +

    The DOMStringMap interface is used for the {{ domxref("HTMLOrForeignElement.dataset") }} attribute, to represent data for custom attributes added to elements.

    Specifications

    @@ -40,6 +40,6 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/domtokenlist/supports/index.html b/files/en-us/web/api/domtokenlist/supports/index.html index 3f5c9dc856cca5a..993a98834904622 100644 --- a/files/en-us/web/api/domtokenlist/supports/index.html +++ b/files/en-us/web/api/domtokenlist/supports/index.html @@ -2,10 +2,10 @@ title: DOMTokenList.supports() slug: Web/API/DOMTokenList/supports tags: -- API -- DOM -- Method -- Reference + - API + - DOM + - Method + - Reference ---

    {{APIRef("DOM")}}{{SeeCompatTable}}

    @@ -32,7 +32,7 @@

    Returns

    Example

    -
    let iframe = document.getElementById('display');
    +
    let iframe = document.getElementById('display');
     
     if (iframe.sandbox.supports('an-upcoming-feature')) {
       // support code for mystery future feature
    @@ -45,7 +45,7 @@ 

    Example

    // // (NOTE: This feature is well-supported; this is just an example!) // -}
    +}

    Specifications

    diff --git a/files/en-us/web/api/domuserdata/index.html b/files/en-us/web/api/domuserdata/index.html index ae76fd898306bdd..42f5c8e84187509 100644 --- a/files/en-us/web/api/domuserdata/index.html +++ b/files/en-us/web/api/domuserdata/index.html @@ -11,9 +11,9 @@ ---

    {{ ApiRef("DOM") }}{{deprecated_header}}

    -

    DOMUserData refers to application data. In JavaScript, it maps directly to Object. It is returned or used as an argument by Node.setUserData(), Node.getUserData(), used as the third argument to handle() on UserDataHandler, and is used or returned by various DOMConfiguration methods.

    +

    DOMUserData refers to application data. In JavaScript, it maps directly to Object. It is returned or used as an argument by Node.setUserData(), Node.getUserData(), used as the third argument to handle() on UserDataHandler, and is used or returned by various DOMConfiguration methods.

    -

    Note that although it can be an object, in Mozilla, it may be returned as a string or other type, if it was set as such a type (e.g., Node.setUserData() and Node.getUserData()).

    +

    Note that although it can be an object, in Mozilla, it may be returned as a string or other type, if it was set as such a type (e.g., Node.setUserData() and Node.getUserData()).

    DOMUserData is not persisted nor serialized and will not be present after the application has restarted or after a crash. If you are interested in persisting data you might rather need to use {{ interface("nsISessionStore") }}.

    @@ -39,7 +39,7 @@

    Specifications

    See also

    diff --git a/files/en-us/web/api/dragevent/dragevent/index.html b/files/en-us/web/api/dragevent/dragevent/index.html index 4be47e5b880fc41..10028a5bced4356 100644 --- a/files/en-us/web/api/dragevent/dragevent/index.html +++ b/files/en-us/web/api/dragevent/dragevent/index.html @@ -2,11 +2,11 @@ title: DragEvent() slug: Web/API/DragEvent/DragEvent tags: -- API -- Constructor -- DOM -- Reference -- drag and drop + - API + - Constructor + - DOM + - Reference + - drag and drop ---
    {{APIRef("HTML Drag and Drop API")}}
    @@ -30,7 +30,7 @@

    Arguments

    type
    Is a {{domxref("DOMString")}} representing the name of the event (see - DragEvent event types).
    + DragEvent event types).
    DragEventInit{{optional_inline}}
    Is a DragEventInit dictionary, having the following fields: diff --git a/files/en-us/web/api/dynamicscompressornode/attack/index.html b/files/en-us/web/api/dynamicscompressornode/attack/index.html index 389bdec48e42066..c52a01ad763510d 100644 --- a/files/en-us/web/api/dynamicscompressornode/attack/index.html +++ b/files/en-us/web/api/dynamicscompressornode/attack/index.html @@ -12,7 +12,7 @@

    {{ APIRef("Web Audio API") }}

    -

    The attack property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB. It defines how quickly the signal is adapted when its volume is increased.

    +

    The attack property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB. It defines how quickly the signal is adapted when its volume is increased.

    The attack property's default value is 0.003 and it can be set between 0 and 1.

    @@ -60,5 +60,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/dynamicscompressornode/index.html b/files/en-us/web/api/dynamicscompressornode/index.html index b71c80b114d14bf..a5f96f734d3e93f 100644 --- a/files/en-us/web/api/dynamicscompressornode/index.html +++ b/files/en-us/web/api/dynamicscompressornode/index.html @@ -13,7 +13,7 @@

    {{ APIRef("Web Audio API") }}

    -

    The DynamicsCompressorNode interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. This is often used in musical production and game audio. DynamicsCompressorNode is an {{domxref("AudioNode")}} that has exactly one input and one output; it is created using the {{domxref("AudioContext.createDynamicsCompressor()")}} method.

    +

    The DynamicsCompressorNode interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. This is often used in musical production and game audio. DynamicsCompressorNode is an {{domxref("AudioNode")}} that has exactly one input and one output; it is created using the {{domxref("BaseAudioContext.createDynamicsCompressor")}} method.

    @@ -54,17 +54,17 @@

    Properties

    {{domxref("DynamicsCompressorNode.threshold")}} {{readonlyInline}}
    -
    Is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.
    +
    Is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.
    {{domxref("DynamicsCompressorNode.knee")}} {{readonlyInline}}
    -
    Is a k-rate {{domxref("AudioParam")}} containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
    +
    Is a k-rate {{domxref("AudioParam")}} containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
    {{domxref("DynamicsCompressorNode.ratio")}} {{readonlyInline}}
    -
    Is a k-rate {{domxref("AudioParam")}} representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
    +
    Is a k-rate {{domxref("AudioParam")}} representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
    {{domxref("DynamicsCompressorNode.reduction")}} {{readonlyInline}}
    Is a float representing the amount of gain reduction currently applied by the compressor to the signal.
    {{domxref("DynamicsCompressorNode.attack")}} {{readonlyInline}}
    -
    Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB.
    +
    Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to reduce the gain by 10 dB.
    {{domxref("DynamicsCompressorNode.release")}} {{readonlyInline}}
    -
    Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB.
    +
    Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB.

    Methods

    @@ -99,5 +99,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/dynamicscompressornode/reduction/index.html b/files/en-us/web/api/dynamicscompressornode/reduction/index.html index 625091b3303dd43..9fcfdb435619fa3 100644 --- a/files/en-us/web/api/dynamicscompressornode/reduction/index.html +++ b/files/en-us/web/api/dynamicscompressornode/reduction/index.html @@ -55,5 +55,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/dynamicscompressornode/release/index.html b/files/en-us/web/api/dynamicscompressornode/release/index.html index e23cce514f6251e..6422523eb7497b1 100644 --- a/files/en-us/web/api/dynamicscompressornode/release/index.html +++ b/files/en-us/web/api/dynamicscompressornode/release/index.html @@ -12,7 +12,7 @@

    {{ APIRef("Web Audio API") }}

    -

    The release property of the {{ domxref("DynamicsCompressorNode") }} interface Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB. It defines how quick the signal is adapted when its volume is reduced.

    +

    The release property of the {{ domxref("DynamicsCompressorNode") }} interface Is a k-rate {{domxref("AudioParam")}} representing the amount of time, in seconds, required to increase the gain by 10 dB. It defines how quick the signal is adapted when its volume is reduced.

    The release property's default value is 0.25 and it can be set between 0 and 1.

    @@ -60,5 +60,5 @@

    Browser compatibility

    See also

    diff --git a/files/en-us/web/api/dynamicscompressornode/threshold/index.html b/files/en-us/web/api/dynamicscompressornode/threshold/index.html index 5098229f6ccbef4..35c27baca8031ad 100644 --- a/files/en-us/web/api/dynamicscompressornode/threshold/index.html +++ b/files/en-us/web/api/dynamicscompressornode/threshold/index.html @@ -12,11 +12,11 @@

    {{ APIRef("Web Audio API") }}

    -

    The threshold property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.

    +

    The threshold property of the {{ domxref("DynamicsCompressorNode") }} interface is a k-rate {{domxref("AudioParam")}} representing the decibel value above which the compression will start taking effect.

    The threshold property's default value is -24 and it can be set between -100 and 0.

    -

    The threshold attribute has no effect on signals lowers than its value, but induce volume reduction on signal stronger than its value.

    +

    The threshold attribute has no effect on signals lowers than its value, but induce volume reduction on signal stronger than its value.

    Syntax

    @@ -62,5 +62,5 @@

    Browser compatibility

    See also