Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix consecutive <dd> elements in Web/API #8475

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ <h2 id="Properties">Properties</h2>

<dl>
<dt><code>authData</code></dt>
<dd>The same as {{domxref("AuthenticatorAssertionResponse.authenticatorData")}}. Note
<dd><p>The same as {{domxref("AuthenticatorAssertionResponse.authenticatorData")}}. Note
that in {{domxref("AuthenticatorAssertionResponse")}}, the
<code>authenticatorData</code> is exposed as a property in a JavaScript object while
in {{domxref("AuthenticatorAttestationResponse")}}, the <code>authenticatorData</code>
is a property in a <a href="https://datatracker.ietf.org/doc/html/rfc7049">CBOR</a> map.</dd>
<dd>The same {{domxref("AuthenticatorAssertionResponse.authenticatorData")}} field is
is a property in a <a href="https://datatracker.ietf.org/doc/html/rfc7049">CBOR</a> map.</p>
<p>The same {{domxref("AuthenticatorAssertionResponse.authenticatorData")}} field is
used by both <code>AuthenticatorAttestationResponse</code> and by
<code>AuthenticatorAssertionResponse</code>. When used in attestation, it contains an
optional field, <code>attestedCredentialData</code>. This field is not included when
used in the <code>AuthenticatorAssertionResponse</code>. The attestedCredentialData
field contains the <code>credentialId</code> and <code>credentialPublicKey</code>.
field contains the <code>credentialId</code> and <code>credentialPublicKey</code>.</p>
</dd>
<dt><code>fmt</code></dt>
<dd>A text string that indicates the format of the attStmt. The <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ <h3 id="Parameters">Parameters</h3>

<dl>
<dt><code>bufferSize</code></dt>
<dd>The buffer size in units of sample-frames. If specified, the bufferSize must be one
<dd><p>The buffer size in units of sample-frames. If specified, the bufferSize must be one
of the following values: 256, 512, 1024, 2048, 4096, 8192, 16384. If it's not passed
in, or if the value is 0, then the implementation will choose the best buffer size for
the given environment, which will be a constant power of 2 throughout the lifetime of
the node.</dd>
<dd>This value controls how frequently the <code>audioprocess</code> event is dispatched
the node.</p>
<p>This value controls how frequently the <code>audioprocess</code> event is dispatched
and how many sample-frames need to be processed each call. Lower values for
<code>bufferSize</code> will result in a lower (better) latency. Higher values will be
necessary to avoid audio breakup and glitches. It is recommended for authors to not
specify this buffer size and allow the implementation to pick a good buffer size to
balance between latency and audio quality.</dd>
balance between latency and audio quality.</p></dd>
<dt><code>numberOfInputChannels</code></dt>
<dd>Integer specifying the number of channels for this node's input, defaults to 2.
Values of up to 32 are supported.</dd>
Expand Down
214 changes: 96 additions & 118 deletions files/en-us/web/api/biquadfilternode/biquadfilternode/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,127 +31,105 @@ <h3 id="Parameters">Parameters</h3>
<dt><em>context</em></dt>
<dd>A reference to an {{domxref("AudioContext")}}.</dd>
<dt><em>options</em> {{optional_inline}}</dt>
<dd>Options are as follows:
<ul>
<li><code>type</code>: One of "<code>lowpass</code>", "<code>highpass</code>",
"<code>bandpass</code>", "<code>lowshelf</code>", "<code>highshelf</code>",
"<code>peaking</code>", "<code>notch</code>", "<code>allpass</code>". The meaning
of the other options depends on the value of this one. The defaults for all are as
follows:
<ul>
<li><code>Q</code>: <code>1</code></li>
<li><code>detune</code>: <code>0</code></li>
<li><code>frequency</code>: <code>350</code></li>
<li><code>gain</code>: <code>0</code></li>
</ul>
</li>
</ul>

<p><code>lowpass</code>: (Default) Allows frequencies below a cutoff frequency to pass
through, and attenuates frequencies above the cutoff. This is a standard
second-order resonant lowpass filter with 12dB/octave rolloff.</p>

<ul>
<li><code>Q</code>: Controls how peaked the response will be at the cutoff
frequency. A large value makes the response more peaked. Please note that for this
filter type, this value is not a traditional Q, but is a resonance value in
decibels.</li>
<li><code>frequency</code>: The cutoff frequency.</li>
<li><code>gain</code>: Not used.</li>
</ul>
</dd>
<dd>
<p><code>highpass</code>: A highpass filter is the opposite of a lowpass filter.
Frequencies above the cutoff frequency are passed through, but frequencies below the
cutoff are attenuated. It implements a standard second-order resonant highpass
filter with 12dB/octave rolloff.</p>

<ul>
<li><code>Q</code>: Controls how peaked the response will be at the cutoff
frequency. A large value makes the response more peaked. Please note that for this
filter type, this value is not a traditional Q, but is a resonance value in
decibels.</li>
<li><code>frequency</code>: The cutoff frequency.</li>
<li><code>gain</code>: Not used.</li>
</ul>
</dd>
<dd>
<p><code>bandpass</code>: A bandpass filter allows a range of frequencies to pass
through and attenuates the frequencies below and above this frequency range. It
implements a second-order bandpass filter.</p>

<ul>
<li><code>Q</code>: Controls the width of the band. The width becomes narrower as
the Q value increases.</li>
<li><code>frequency</code>: The center of the frequency band.</li>
<li><code>gain</code>: Not used.</li>
</ul>
</dd>
<dd>
<p><code>lowshelf</code>: The lowshelf filter allows all frequencies through, but adds
a boost (or attenuation) to the lower frequencies. It implements a second-order
lowshelf filter.</p>

<ul>
<li><code>Q</code>: Not used.</li>
<li><code>frequency</code>: The upper limit of the frequencies where the boost, or
attenuation, is applied.</li>
<li><code>gain</code>: The boost, in dB, to be applied. If the value is negative,
the frequencies are attenuated.</li>
</ul>
</dd>
<dd>
<p><code>highshelf</code>: The highshelf filter is the opposite of the lowshelf filter
and allows all frequencies through, but adds a boost to the higher frequencies. It
implements a second-order highshelf filter.</p>

<ul>
<li><code>Q</code>: Not used.</li>
<li><code>frequency</code>: The lower limit of the frequencies where the boost, or
attenuation, is applied.</li>
<li><code>gain</code>: The boost, in dB, to be applied. If the value is negative,
the frequencies are attenuated.</li>
</ul>
</dd>
<dd>
<p><code>peaking</code>: The peaking filter allows all frequencies through, adding a
boost, or attenuation, to a range of frequencies.</p>

<ul>
<li><code>Q</code>: The width of the band of frequencies that are boosted. A large
value implies a narrow width.</li>
<li><code>frequency</code>: The center frequency of the boost range.</li>
<li><code>gain</code>: The boost, in dB, to be applied. If the value is negative,
the frequencies are attenuated.</li>
</ul>
</dd>
<dd>
<p><code>notch</code>: The notch filter (also known as a band-stop, or band-rejection
filter) is the opposite of a bandpass filter. It allows all frequencies through,
except for a set of frequencies.</p>

<ul>
<li><code>Q</code>: The width of the band of frequencies that are attenuated. A
large value implies a narrow width.</li>
<li><code>frequency</code>: The center frequency of the attenuation range.</li>
<li><code>gain</code>: Not used.</li>
</ul>
</dd>
<dd>
<p><code>allpass</code>: An allpass filter allows all frequencies through, but changes
the phase relationship between the various frequencies. It implements a second-order
allpass filter.</p>

<ul>
<li><code>Q</code>: The sharpness of the phase transition at the center frequency. A
larger value implies a sharper transition and a larger group delay.</li>
<li><code>frequency</code>: The frequency where the center of the phase transition
occurs. Viewed another way, this is the frequency with maximal group delay.</li>
<li><code>gain</code>: Not used.</li>
</ul>
<dd><p>An object with the following properties:</p>
<dl>
<dt><code>type</code></dt>
<dd><p>One of the following strings. The meaning
of the other options depends on the value of <code>type</code>.</p>
<dl>
<dt><code>lowpass</code></dt>
<dd>
<p>The default. Allows frequencies below a cutoff frequency to pass through, and attenuates frequencies above the cutoff. This is a standard second-order resonant lowpass filter with 12dB/octave rolloff. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked. Please note that for this filter type, this value is not a traditional Q, but is a resonance value in decibels.</li>
<li><code>frequency</code>: the cutoff frequency.</li>
<li><code>gain</code>: not used.</li>
</ul>
</dd>
<dt><code>highpass</code></dt>
<dd>
<p>A highpass filter is the opposite of a lowpass filter.
Frequencies above the cutoff frequency are passed through, but frequencies below the cutoff are attenuated. It implements a standard second-order resonant highpass filter with 12dB/octave rolloff. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked. Please note that for this filter type, this value is not a traditional Q, but is a resonance value in decibels.</li>
<li><code>frequency</code>: the cutoff frequency.</li>
<li><code>gain</code>: not used.</li>
</ul>
</dd>
<dt><code>bandpass</code></dt>
<dd>
<p>A bandpass filter allows a range of frequencies to pass
through and attenuates the frequencies below and above this frequency range. It implements a second-order bandpass filter. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: controls the width of the band. The width becomes narrower as the Q value increases.</li>
<li><code>frequency</code>: the center of the frequency band.</li>
<li><code>gain</code>: not used.</li>
</ul>
</dd>
<dt><code>lowshelf</code></dt>
<dd>
<p>The lowshelf filter allows all frequencies through, but adds
a boost (or attenuation) to the lower frequencies. It implements a second-order lowshelf filter. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: not used.</li>
<li><code>frequency</code>: the upper limit of the frequencies where the boost, or attenuation, is applied.</li>
<li><code>gain</code>: the boost, in dB, to be applied. If the value is negative, the frequencies are attenuated.</li>
</ul>
</dd>
<dt><code>highshelf</code></dt>
<dd>
<p>The highshelf filter is the opposite of the lowshelf filter
and allows all frequencies through, but adds a boost to the higher frequencies. It implements a second-order highshelf filter. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: not used.</li>
<li><code>frequency</code>: the lower limit of the frequencies where the boost, or attenuation, is applied.</li>
<li><code>gain</code>: the boost, in dB, to be applied. If the value is negative, the frequencies are attenuated.</li>
</ul>
</dd>
<dt><code>peaking</code></dt>
<dd>
<p>The peaking filter allows all frequencies through, adding a
boost, or attenuation, to a range of frequencies. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: the width of the band of frequencies that are boosted. A large value implies a narrow width.</li>
<li><code>frequency</code>: the center frequency of the boost range.</li>
<li><code>gain</code>: the boost, in dB, to be applied. If the value is negative, the frequencies are attenuated.</li>
</ul>
</dd>
<dt><code>notch</code></dt>
<dd>
<p>The notch filter (also known as a band-stop, or band-rejection filter) is the opposite of a bandpass filter. It allows all frequencies through, except for a set of frequencies. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: the width of the band of frequencies that are attenuated. A large value implies a narrow width.</li>
<li><code>frequency</code>: the center frequency of the attenuation range.</li>
<li><code>gain</code>: not used.</li>
</ul>
</dd>
<dt><code>allpass</code></dt>
<dd>
<p>An allpass filter allows all frequencies through, but changes
the phase relationship between the various frequencies. It implements a second-order allpass filter. With this type of filter, the meaning of the other options are as follows:</p>
<ul>
<li><code>Q</code>: the sharpness of the phase transition at the center frequency. A larger value implies a sharper transition and a larger group delay.</li>
<li><code>frequency</code>: the frequency where the center of the phase transition occurs. Viewed another way, this is the frequency with maximal group delay.</li>
<li><code>gain</code>: not used.</li>
</ul>
</dd>
</dl>
</dd>
<dt><code>Q</code></dt>
<dd>Defaults to 1. The meaning of this option depends on the value of <code>type</code>.</dd>
<dt><code>detune</code></dt>
<dd>Defaults to 0.</dd>
<dt><code>frequency</code></dt>
<dd>Defaults to 350.</dd>
<dt><code>gain</code></dt>
<dd>Defaults to 0. The meaning of this option depends on the value of <code>type</code>.</dd>
</dl>
</dd>
</dl>


<h3 id="Return_value">Return value</h3>

<p>A new {{domxref("BiquadFilterNode")}} object instance.</p>
Expand Down
15 changes: 9 additions & 6 deletions files/en-us/web/api/contentindex/add/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ <h3 id="Exceptions">Exceptions</h3>

<dl>
<dt><code>TypeError</code></dt>
<dd>If the service worker's registration is not present or the service worker does not
contain a {{domxref('FetchEvent')}}.</dd>
<dd>If the <code>id</code>, <code>title</code>, <code>description</code> or
<code>url</code> are missing, not of type {{jsxref('String')}}, or an empty
{{jsxref('String')}}.</dd>
<dd>If <code>icons</code> images are not of image type.</dd>
<dd><p>This exception is thrown in the following conditions:</p>
<ul>
<li>The service worker's registration is not present or the service worker does not
contain a {{domxref('FetchEvent')}}.</li>
<li>The <code>id</code>, <code>title</code>, <code>description</code> or
<code>url</code> are missing, not of type {{jsxref('String')}}, or an empty {{jsxref('String')}}.</li>
<li>The items referenced by <code>icons</code> are not of image type.</li>
</ul>
</dd>
</dl>

<h2 id="Examples">Examples</h2>
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/css/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ <h3 id="Static_methods">Static methods</h3>
<dt>{{DOMxRef("CSS.escape()")}}</dt>
<dd>Can be used to escape a string mostly for use as part of a CSS selector.</dd>
<dt>{{DOMxRef("CSS.factory_functions", 'CSS factory functions')}}</dt>
<dd>Can be used to return a new <code><a href="/en-US/docs/Web/API/CSSUnitValue">CSSUnitValue</a></code> with a value of the parameter number of the units of the name of the factory function method used.</dd>
<dd>
<dd><p>Can be used to return a new <code><a href="/en-US/docs/Web/API/CSSUnitValue">CSSUnitValue</a></code> with a value of the parameter number of the units of the name of the factory function method used.</p>
<pre class="brush: js">CSS.em(3) // CSSUnitValue {value: 3, unit: "em"}</pre>
</dd>
</dl>
Expand Down
1 change: 0 additions & 1 deletion files/en-us/web/api/cssstyledeclaration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ <h2 id="Methods">Methods</h2>
<dd>Returns the property value given a property name.</dd>
<dt>{{DOMxRef("CSSStyleDeclaration.item()")}}</dt>
<dd>Returns a CSS property name by its index, or the empty string if the index is out-of-bounds.</dd>
<dd>An alternative to accessing <code>nodeList[<var>i</var>]</code> (which instead returns <code>undefined</code> when <code><var>i</var></code> is out-of-bounds). This is mostly useful for non-JavaScript DOM implementations.</dd>
<dt>{{DOMxRef("CSSStyleDeclaration.removeProperty()")}}</dt>
<dd>Removes a property from the CSS declaration block.</dd>
<dt>{{DOMxRef("CSSStyleDeclaration.setProperty()")}}</dt>
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/datatransfer/setdragimage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ <h3 id="Arguments">Arguments</h3>

<dl>
<dt><em>img |</em> element</dt>
<dd>An image {{domxref("Element")}} element to use for the drag feedback image.</dd>
<dd>If {{domxref("Element")}} is an img element, then set the drag data store bitmap to
<dd><p>An image {{domxref("Element")}} element to use for the drag feedback image.</p>
<p>If {{domxref("Element")}} is an img element, then set the drag data store bitmap to
the element's image (at its intrinsic size); otherwise, set the drag data store bitmap
to an image generated from the given element (the exact mechanism for doing so is not
currently specified).</dd>
currently specified).</p></dd>
<dt><em>xOffset</em></dt>
<dd>A <code>long</code> indicating the horizontal offset within the image.</dd>
<dt><em>yOffset</em></dt>
Expand Down Expand Up @@ -133,4 +133,4 @@ <h2 id="See_also">See also</h2>
<li><a href="/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types">Recommended Drag Types</a></li>
<li><a href="/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Multiple_items">Dragging and Dropping Multiple Items</a></li>
<li><a href="https://codepen.io/tech_query/pen/MqGgap">DataTransfer test - Paste or Drag</a></li>
</ul>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ <h3 id="Parameters">Parameters</h3>
<dt><em>aMessage</em></dt>
<dd>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 <a href="/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm">structured clone</a> algorithm, which includes cyclical references.</dd>
<dt><em>transferList</em> {{optional_inline}}</dt>
<dd>An optional <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">array</a> of {{domxref("Transferable")}} objects to transfer ownership of. If the ownership of an object is transferred, it becomes unusable in the context it was sent from and it becomes available only to the main thread it was sent to.</dd>
<dd>Only {{domxref("MessagePort")}} and {{jsxref("ArrayBuffer")}} objects can be transferred.</dd>
<dd><p>An optional <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">array</a> of {{domxref("Transferable")}} objects to transfer ownership of. If the ownership of an object is transferred, it becomes unusable in the context it was sent from and it becomes available only to the main thread it was sent to.</p>
<p>Only {{domxref("MessagePort")}} and {{jsxref("ArrayBuffer")}} objects can be transferred.</p></dd>
</dl>

<h3 id="Returns">Returns</h3>
Expand Down
Loading