Skip to content

Commit 22241e6

Browse files
β™Ώ fix multiple WCAG2AA errors (#176)
β€’ Duplicate id attribute "email" found on the page. β”œβ”€ WCAG2AA.Principle4.Guideline4_1.4_1_1.F77 └─ <input type="email" id="email" name="email"> β€’ Obsolete presentational markup used (strike). β”œβ”€ WCAG2AA.Principle1.Guideline1_3.1_3_1.H49.Strike └─ <strike>striked</strike> β€’ Select element missing accessible name. β”œβ”€ WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.Select.Name └─ <select> <optgroup labe...</select> β€’ Form field missing label or accessible name. β”œβ”€ WCAG2AA.Principle1.Guideline1_3.1_3_1.F68 └─ <select> <optgroup labe...</select> β€’ Text input missing accessible name (repeated issue). β”œβ”€ WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputText.Name └─ <input type="text"> β€’ Form field missing label or accessible name (repeated issue). β”œβ”€ WCAG2AA.Principle1.Guideline1_3.1_3_1.F68 └─ <input type="text"> Signed-off-by: SindreKjelsrud <[email protected]>
1 parent 085ec83 commit 22241e6

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

β€Žapps/demo/index.htmlβ€Ž

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ <h1>
163163
<label for="name">Name:</label><br>
164164
<input type="text" id="name" name="name"><br>
165165

166-
<label>disabled:</label><br>
167-
<input disabled type="email" id="email" name="email" value="[email protected]"><br>
168-
166+
<label for="disabled-email">Disabled Email:</label><br>
167+
<input disabled type="email" id="disabled-email" name="disabled-email" value="[email protected]"><br>
168+
169169
<label for="email">Email:</label><br>
170170
<input type="email" id="email" name="email"><br>
171171

@@ -247,8 +247,8 @@ <h1>Inline formatted text</h1>
247247
<p>
248248
You can use many different elements to format your text.
249249
You can make your text <small>small</small> or you can make it <strong>strong</strong> or <b>bold</b>.
250-
You can also make it <em>emphasized</em> or <strike>striked</strike>.
251-
You can also make it <del>deleted</del> or <s>simple striked</s>.
250+
You can also make it <em>emphasized</em>.
251+
You can also make it <del>deleted</del> or <s>striked</s>.
252252
You can also make it <ins>inserted</ins> or <sub>subscripted</sub> or <sup>superscripted</sup>.
253253
You can also make it <cite>cited</cite> or <q>quoted</q>.
254254
You can also make it <dfn>defined</dfn> as well as
@@ -281,11 +281,12 @@ <h1>Unimplemented elements</h1>
281281
<label for="volume">Volume control:</label>
282282
<label for="week">Select a week:</label>
283283
<input type="week" id="week" name="week">
284-
Β΄ <label for="birthmonth">Enter your birth month and year:</label>
284+
Β΄ <label for="birthmonth">Enter your birth month and year:</label>
285285
<input type="month" id="birthmonth" name="birthmonth">
286286
<input type="hidden" id="userid" name="userid" value="123456">
287287
<input type="image" src="submit.png" alt="Submit" width="48" height="48">
288-
<select>
288+
<label for="car-select">Choose a car:</label>
289+
<select id="car-select" name="car">
289290
<optgroup label="Swedish Cars">
290291
<option value="volvo">Volvo</option>
291292
<option value="saab">Saab</option>
@@ -294,19 +295,22 @@ <h1>Unimplemented elements</h1>
294295
<option value="mercedes">Mercedes</option>
295296
<option value="audi">Audi</option>
296297
</optgroup>
297-
</select>
298+
</select>
298299
<datalist>
299300
<option value="Volvo">
300301
<option value="Saab">
301302
<option value="Mercedes">
302303
<option value="Audi">
303304
</datalist>
304305
<fieldset>
305-
<legend>Personalia:</legend>
306-
Name: <input type="text"><br>
307-
Email: <input type="text"><br>
308-
Date of birth: <input type="text">
309-
</fieldset>
306+
<legend>Personalia:</legend>
307+
<label for="name-input">Name:</label>
308+
<input type="text" id="name-input" name="name"><br>
309+
<label for="email-input">Email:</label>
310+
<input type="text" id="email-input" name="email"><br>
311+
<label for="dob-input">Date of birth:</label>
312+
<input type="text" id="dob-input" name="dob">
313+
</fieldset>
310314
<output>2048</output>
311315
<progress></progress>
312316
<meter></meter>

0 commit comments

Comments
Β (0)