Skip to content

Commit e540866

Browse files
Fix duplicate headings on getBylabel page (#2118)
1 parent bffb234 commit e540866

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

docs/sources/k6/next/javascript-api/k6-browser/page/getbylabel.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -114,34 +114,6 @@ export default async function () {
114114
}
115115
```
116116

117-
## Label association patterns
118-
119-
The `getByLabel()` method works with several HTML patterns for associating labels with form controls:
120-
121-
1. Explicit association with `for` attribute:
122-
123-
<!-- eslint-skip -->
124-
125-
```html
126-
<label for="username">Username</label> <input type="text" id="username" name="username" />
127-
```
128-
129-
1. ARIA labeling:
130-
131-
<!-- eslint-skip -->
132-
133-
```html
134-
<span id="username-label">Username</span> <input type="text" aria-labelledby="username-label" />
135-
```
136-
137-
1. ARIA label attribute:
138-
139-
<!-- eslint-skip -->
140-
141-
```html
142-
<input type="text" aria-label="Username" />
143-
```
144-
145117
{{< docs/shared source="k6" lookup="browser/getby-apis/getbylabel-tips.md" version="<K6_VERSION>" >}}
146118

147119
## Related

docs/sources/k6/v1.3.x/javascript-api/k6-browser/page/getbylabel.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -118,34 +118,6 @@ export default async function () {
118118
}
119119
```
120120

121-
## Label association patterns
122-
123-
The `getByLabel()` method works with several HTML patterns for associating labels with form controls:
124-
125-
1. Explicit association with `for` attribute:
126-
127-
<!-- eslint-skip -->
128-
129-
```html
130-
<label for="username">Username</label> <input type="text" id="username" name="username" />
131-
```
132-
133-
1. ARIA labeling:
134-
135-
<!-- eslint-skip -->
136-
137-
```html
138-
<span id="username-label">Username</span> <input type="text" aria-labelledby="username-label" />
139-
```
140-
141-
1. ARIA label attribute:
142-
143-
<!-- eslint-skip -->
144-
145-
```html
146-
<input type="text" aria-label="Username" />
147-
```
148-
149121
{{< docs/shared source="k6" lookup="browser/getby-apis/getbylabel-tips.md" version="<K6_VERSION>" >}}
150122

151123
## Related

0 commit comments

Comments
 (0)