Skip to content

Commit 90e5b79

Browse files
Josh-Cenadipikabh
andauthored
Fix content issues (#40536)
* Fix content issues * Update files/en-us/web/api/convolvernode/index.md Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> --------- Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
1 parent b21a850 commit 90e5b79

File tree

10 files changed

+45
-21
lines changed

10 files changed

+45
-21
lines changed

files/en-us/web/api/caretposition/getclientrect/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ page-type: web-api-instance-method
66
browser-compat: api.CaretPosition.getClientRect
77
---
88

9+
{{APIRef("CSSOM")}}
10+
911
The `getClientRect()` method of the {{domxref("CaretPosition")}} interface returns the client rectangle for the caret range.
1012

1113
## Syntax
@@ -27,10 +29,16 @@ A {{domxref("DOMRect")}} object.
2729
### Get the caret's screen position
2830

2931
```html
30-
<input
31-
aria-label="text field"
32-
value="Click inside this input field"
33-
style="width: 100%; padding: 10px; font-size: 16px; box-sizing: border-box" />
32+
<input aria-label="text field" value="Click inside this input field" />
33+
```
34+
35+
```css
36+
input {
37+
width: 100%;
38+
padding: 10px;
39+
font-size: 16px;
40+
box-sizing: border-box;
41+
}
3442
```
3543

3644
```js

files/en-us/web/api/caretposition/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page-type: web-api-interface
55
browser-compat: api.CaretPosition
66
---
77

8-
{{ APIRef("CSSOM") }}
8+
{{APIRef("CSSOM")}}
99

1010
The `CaretPosition` interface represents the caret position, an indicator for the text insertion point.
1111
You can get a `CaretPosition` using the {{domxref("Document.caretPositionFromPoint()")}} method.

files/en-us/web/api/caretposition/offset/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ page-type: web-api-instance-property
66
browser-compat: api.CaretPosition.offset
77
---
88

9+
{{APIRef("CSSOM")}}
10+
911
The **`offset`** property of the {{domxref("CaretPosition")}} interface returns an integer representing the offset of the selection in the caret position node.
1012

1113
This will be the character offset in a text node or the selected child node's index in an element node.
@@ -19,10 +21,16 @@ An integer.
1921
This example logs the `offsetNode` and `offset` of the caret position when clicking inside the input field
2022

2123
```html
22-
<input
23-
aria-label="text field"
24-
value="Click inside this input field"
25-
style="width: 100%; padding: 10px; font-size: 16px; box-sizing: border-box" />
24+
<input aria-label="text field" value="Click inside this input field" />
25+
```
26+
27+
```css
28+
input {
29+
width: 100%;
30+
padding: 10px;
31+
font-size: 16px;
32+
box-sizing: border-box;
33+
}
2634
```
2735

2836
```js

files/en-us/web/api/caretposition/offsetnode/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ page-type: web-api-instance-property
66
browser-compat: api.CaretPosition.offsetNode
77
---
88

9+
{{APIRef("CSSOM")}}
10+
911
The **`offsetNode`** property of the {{domxref("CaretPosition")}} interface returns a {{domxref("Node")}} containing the found node at the caret's position.
1012

1113
## Value
@@ -17,10 +19,16 @@ A {{domxref("Node")}}.
1719
This example logs the `offsetNode` and `offset` of the caret position when clicking inside the input field
1820

1921
```html
20-
<input
21-
aria-label="text field"
22-
value="Click inside this input field"
23-
style="width: 100%; padding: 10px; font-size: 16px; box-sizing: border-box" />
22+
<input aria-label="text field" value="Click inside this input field" />
23+
```
24+
25+
```css
26+
input {
27+
width: 100%;
28+
padding: 10px;
29+
font-size: 16px;
30+
box-sizing: border-box;
31+
}
2432
```
2533

2634
```js

files/en-us/web/api/convolvernode/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ _Inherits properties from its parent, {{domxref("AudioNode")}}_.
5757

5858
_No specific method; inherits methods from its parent, {{domxref("AudioNode")}}_.
5959

60-
## ConvolverNode Example
60+
## Examples
6161

62-
The following example shows basic usage of an AudioContext to create a convolver node. You will need to find an impulse response to complete the example below. See our [HolySpaceCow](https://mdn.github.io/webaudio-examples/holy-space-cow) example for a complete, applied example.
62+
The following example shows basic usage of an AudioContext to create a convolver node. You will need to find an impulse response to complete the example below. See our [HolySpaceCow](https://mdn.github.io/webaudio-examples/holy-space-cow/) example for a complete, applied example.
6363

6464
```js
6565
let audioCtx = new window.AudioContext();

files/en-us/web/api/fedcm_api/rp_sign-in/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function signIn() {
3636
loginHint: "user1@example.com",
3737
},
3838
{
39-
//...
39+
// ...
4040
},
4141
],
4242
},
@@ -189,7 +189,7 @@ IdentityCredential.disconnect({
189189
});
190190
```
191191

192-
For a `disconnect()` call to work, the IdP must include a [`disconnect_endpoint`](/docs/Web/API/FedCM_API/IDP_integration#disconnect_endpoint) in its config file. See [The disconnect endpoint](/en-US/docs/Web/API/FedCM_API/IDP_integration#the_disconnect_endpoint) for more details of the underlying HTTP communication.
192+
For a `disconnect()` call to work, the IdP must include a [`disconnect_endpoint`](/en-US/docs/Web/API/FedCM_API/IDP_integration#disconnect_endpoint) in its config file. See [The disconnect endpoint](/en-US/docs/Web/API/FedCM_API/IDP_integration#the_disconnect_endpoint) for more details of the underlying HTTP communication.
193193

194194
## See also
195195

files/en-us/web/api/identitycredential/disconnect_static/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ IdentityCredential.disconnect({
6565
});
6666
```
6767

68-
For a `disconnect()` call to work, the IdP must include a [`disconnect_endpoint`](/docs/Web/API/FedCM_API/IDP_integration#disconnect_endpoint) in its config file. See [The disconnect endpoint](/en-US/docs/Web/API/FedCM_API/IDP_integration#the_disconnect_endpoint) for more details of the underlying HTTP communication.
68+
For a `disconnect()` call to work, the IdP must include a [`disconnect_endpoint`](/en-US//docs/Web/API/FedCM_API/IDP_integration#disconnect_endpoint) in its config file. See [The disconnect endpoint](/en-US/docs/Web/API/FedCM_API/IDP_integration#the_disconnect_endpoint) for more details of the underlying HTTP communication.
6969

7070
## Specifications
7171

files/en-us/web/api/identityprovider/getuserinfo_static/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ When `getUserInfo()` is called, the browser will make a request to the specified
7070

7171
### Basic `IdentityProvider.getUserInfo()` usage
7272

73-
The following example shows how the {{domxref("IdentityProvider.getUserInfo_static", "getUserInfo()")}} method can be used to return information on a previously-signed in user from a specific IdP.
73+
The following example shows how the `IdentityProvider.getUserInfo()` method can be used to return information on a previously-signed in user from a specific IdP.
7474

7575
```js
7676
// Iframe displaying a page from the https://idp.example origin

files/en-us/web/css/_colon_active-view-transition/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The **`:active-view-transition`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-
2020

2121
### Styling an active view transition
2222

23-
This example extends on the [same-document view transition](/en-US/docs/Web/API/Document/startViewTransition#same-document_view_transition) example on the `startViewTransition` page.
23+
This example extends on the [same-document view transition](/en-US/docs/Web/API/Document/startViewTransition#using_a_same-document_view_transition) example on the `startViewTransition` page.
2424

2525
```html
2626
<main>

files/en-us/web/media/guides/audio_and_video_manipulation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ source.connect(convolver);
249249
convolver.connect(context.destination);
250250
```
251251

252-
See our [HolySpaceCow](https://mdn.github.io/webaudio-examples/holy-space-cow) example for an applied (but very, very silly) example.
252+
See our [HolySpaceCow](https://mdn.github.io/webaudio-examples/holy-space-cow/) example for an applied (but very, very silly) example.
253253

254254
### Spatial audio
255255

0 commit comments

Comments
 (0)