-
Notifications
You must be signed in to change notification settings - Fork 24
/
test2.html
562 lines (476 loc) · 19.6 KB
/
test2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
<!DOCTYPE html>
<html lang="en">
<head>
<title>Accessibility Fails - Test Page 2</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="css/main.css"/>
<link rel="stylesheet" href="css/test2.css"/>
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/main2.js"></script>
</head>
<body>
<div class="container" id="main">
<h1>Accessibility Fails - Test Page 2</h1>
<nav>
<ul>
<li><a href="#content">Content</a></li>
<li><a href="#pagelayout">Page Layout</a></li>
<li><a href="#colourandcontrast">Colour and Contrast</a></li>
<li><a href="#typography">Typography</a></li>
<li><a href="#languageofcontent">Language of content</a></li>
<li><a href="#pagetitle">Page Title</a></li>
<li><a href="#headings">Headings</a></li>
<li><a href="#lists">Lists</a></li>
<li><a href="#tables">Tables</a></li>
<li><a href="#images">Images</a></li>
<li><a href="#links">Links</a></li>
<li><a href="#buttons">Buttons</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#navigation">Navigation</a></li>
<li><a href="#keyboardaccess">Keyboard Access</a></li>
<li><a href="#frames">Frames</a></li>
<li><a href="#html">HTML</a></li>
<li><a href="#css">CSS</a></li>
</ul>
</nav>
<h2 id="content">Content</h2>
<h2 id="pagelayout">Page Layout</h2>
<h2 id="colourandcontrast">Colour and Contrast</h2>
<h3>Focus not visible</h3>
<div class="example">
<a href="#" class="not-visible-outline-link">This links has visible focus</a> but this button
<button class="not-visible-outline">Search</button> doesn't
</div>
<h2 id="typography">Typography</h2>
<h2 id="languageofcontent">Language of content</h2>
<h3>Text language changed without required change in direction</h3>
<div class="example">
<p lang="ar">الإعفاء الإلكتروني من التأشيرة</p>
</div>
<h3>Text language is in the wrong direction</h3>
<div class="example">
<p dir="rtl" lang="en">Electronic visa waiver</p>
</div>
<h2 id="pagetitle">Page Title</h2>
<h2 id="headings">Headings</h2>
<h2 id="lists">Lists</h2>
<h2 id="tables">Tables</h2>
<h3>Table with inconsistent numbers of columns in rows</h3>
<div class="example">
<table>
<caption>Requester information</caption>
<thead>
<tr>
<th colspan="10">Requester Information</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="1" id="name" class="label">Name</th>
<td colspan="7" headers="name">Jon Smith</td>
<th colspan="1" id="date" class="label">Date</th>
<td colspan="1" headers="date">9/9/2005</td>
</tr>
<tr>
<th colspan="1" id="dept" class="label">Department</th>
<td colspan="9" headers="dept">Customer Service</td>
</tr>
<tr>
<th colspan="1" id="remail" class="label">E-mail</th>
<td colspan="4" headers="remail">[email protected]</td>
<th colspan="1" id="rphone" class="label">Phone</th>
<td colspan="4" headers="rphone">07700 900258</td>
</tr>
</tbody>
</table>
</div>
<h3>Table with some empty cells</h3>
<div class="example">
<table>
<caption>Bills before Parliament 2016-17</caption>
<thead>
<tr>
<th>
Current House
</th>
<th>
Bill title
</th>
<th>
Last updated
</th>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
<td>A</td>
<td> </td>
</tr>
<tr>
<td>
Lords
</td>
<td>
Abortion (Disability Equality) Bill [HL]
</td>
<td>26.05.2016</td>
</tr>
<tr>
<td>
Lords
</td>
<td>
Access to Palliative Care Bill [HL]
</td>
<td>10.06.2016</td>
</tr>
</tbody>
</table>
</div>
<h3>Table with column headers and double row headers</h3>
<div class="example">
<table>
<caption>Road Traffic at Junctions</caption>
<tr>
<th>Road</th>
<th>Junction</th>
<th>Car</th>
<th>Bus</th>
</tr>
<tr>
<th>Regent Street</th>
<th>Oxford Street</th>
<td>307</td>
<td>12</td>
</tr>
<tr>
<th>Regent Street</th>
<th>Bond Street</th>
<td>1731</td>
<td>58</td>
</tr>
<tr>
<th>Southwark Street</th>
<th>Union Street</th>
<td>1975</td>
<td>51</td>
</tr>
</table>
</div>
<h2 id="images">Images</h2>
<h3>Image with partial text alternative</h3>
<div class="example">
<p>The image below contains a lot of information, such as which departments the sale is on. The text alternative in the alt attribute does not include this information, only a partial "25% off sale"</p>
<img src="images/sale.jpg" alt="25% off sale" />
</div>
<h3>Embedded video file is missing text alternative</h3>
<div class="example">
<video controls>
<source src="http://introducinghtml5.com/examples/ch04/leverage-a-synergy.ogv" type='video/ogg; codecs="theora, vorbis"' />
<source src="http://introducinghtml5.com/examples/ch04/leverage-a-synergy.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
</video>
</div>
<h3>Embedded audio file is missing text alternative</h3>
<div class="example">
<audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" controls></audio>
</div>
<h3>Flashing content doesn't have warning</h3>
<div class="example">
<iframe width="560" height="315" title="Banned Pokemon scene" src="https://www.youtube.com/embed/gwoQRKCEHgY" frameborder="0" allowfullscreen></iframe>
</div>
<h2 id="links">Links</h2>
<h3>Identifying links by colour alone</h3>
<div class="example">
<p class="links-by-colour-alone">
<a href="#">A normal link</a>
<br />
Some text
<br />
<a class="colour-alone-link" href="#">Link only identifiable by colour alone</a>
</p>
</div>
<h2 id="buttons">Buttons</h2>
<h2 id="forms">Forms</h2>
<h3>Errors are not identified</h3>
<div class="example">
<form class="errors-badly-identified errors-not-identified">
<div class="validation-summary" role="alert">
You need to fix the errors on this page before continuing.
</div>
<label>
Name
<input type="text" name="name" />
</label>
<label>
Surname
<input type="text" name="surname" />
</label>
<label>
Date of birth
<input type="text" name="date-of-birth" />
</label>
</form>
</div>
<h3>Errors identified by colour only</h3>
<div class="example">
<form class="errors-badly-identified errors-colour-only">
<div class="validation-summary" role="alert">
You need to fix the errors on this page before continuing.
</div>
<label>
Passport number
<input type="text" class="has-errors" name="name" />
</label>
<label>
Name on passport
<input type="text" name="surname" />
</label>
<label>
Date of expiry
<input type="text" class="has-errors" name="date-of-birth" />
</label>
</form>
</div>
<h3>Errors identified with a poor colour contrast</h3>
<div class="example">
<form class="errors-badly-identified error-poor-contrast">
<div class="validation-summary" role="alert">
You need to fix the errors on this page before continuing.
</div>
<label>
Claimant's name
<input type="text" class="has-errors" name="name" />
</label>
<label>
Claimant's surname
<input type="text" name="surname" />
</label>
<label>
Claimant's date of birth
<input type="text" class="has-errors" name="date-of-birth" />
</label>
</form>
</div>
<h3>Error messages - no suggestion for corrections given, eg. required format</h3>
<div class="example">
<label class="required-format-not-given">
Phone number
<span class="error-message">is not valid</span>
<input class="has-errors" type="tel" required pattern="7[0-9]{9}" />
</label>
</div>
<h3>Missing labels in checkboxes</h3>
<div class="example">
<fieldset>
<legend>What is your nationality?</legend>
<label>British (including English, Scottish, Welsh and Northern Irish)</label>
<input type="checkbox" id="nationality_british" name="nationality.british" value="true">
<label>Irish</label>
<input type="checkbox" id="nationality_irish" name="nationality.irish" value="true">
<label>Citizen of a different country</label>
<input type="checkbox" id="nationality_hasOtherCountry" name="nationality.hasOtherCountry" value="true">
</fieldset>
</div>
<h3>Two unique labels, but identical for= attributes</h3>
<div class="example">
<label for="two-labels-day">Date of issue</label>
<p>
<label for="two-labels-day">Day</label>
<input type="text" id="two-labels-day" />
<label for="two-labels-month">Month</label>
<input type="text" id="two-labels-month" />
<label for="two-labels-year">Year</label>
<input type="text" id="two-labels-year" />
</p>
</div>
<h3>Label element with for= attribute but not matching id= attribute of form control</h3>
<div class="example">
<fieldset>
<legend>Non-matching for attribute</legend>
<label id="not-matching-anything">form</label>
<input type="checkbox" id="label-for-not-matching" value="yes" />
</fieldset>
</div>
<h3>Labels missing when they would look clumsy for some form controls</h3>
<div class="example">
<label for="missing-labels-day">Your child's date of birth</label>
<p>
<input type="text" id="missing-labels-day" />
<input type="text" id="missing-labels-month" />
<input type="text" id="missing-labels-year" />
</p>
</div>
<h3>Left aligned form labels with too much white space</h3>
<div class="example">
<p class="too-much-whitespace">
<label for="input-too-far-away">Country</label>
<input id="input-too-far-away" type="text" />
</p>
</div>
<h3>Form control that changes context without warning</h3>
<div class="example">
<label for="language-selector">Select your language</label>
<select id="language-selector" class="language-selector">
<option value="">Change your language</option>
<option value="en">English</option>
<option value="de">German</option>
<option value="fr">French</option>
</select>
</div>
<h2 id="navigation">Navigation</h2>
<h2 id="keyboardaccess">Keyboard Access</h2>
<h3>Lightbox – focus is not retained within the lightbox</h3>
<div class="example">
<a class="open-lightbox-not-focused" href="#">Open lightbox</a>
<div class="lightbox not-focused hidden">
<a class="close-button" alt="Close lightbox" href="#">X</a>
<p>
This lightbox doesn't retain the focus within itself.
The Ministry of Justice website has <a href="http://www.justice.gov.uk/protecting-the-vulnerable/mental-capacity-act" rel="external" target="_blank">information about mental capacity</a>.
</p>
</div>
</div>
<h3>Lightbox – close button doesn’t receive focus</h3>
<div class="example">
<a class="open-lightbox-close-button" href="#">Open lightbox</a>
<div class="lightbox close-button hidden">
<span class="close-button" alt="Close lightbox" >X</span>
<p>
This lightbox's close button isn't a link so you can't focus on it.
The Ministry of Justice website has <a href="http://www.justice.gov.uk/protecting-the-vulnerable/mental-capacity-act" rel="external" target="_blank">information about mental capacity</a>.
</p>
</div>
</div>
<h3>Lightbox – focus is not moved immediately to lightbox</h3>
<div class="example">
<a class="open-lightbox-focus-far" href="#">Open lightbox</a>
<div class="lightbox focus-far hidden">
<span class="close-button" alt="Close lightbox" >X</span>
<p>
This lightbox is placed at the end of the DOM so you'll have to tab through other links to reach it.
The Ministry of Justice website has <a href="http://www.justice.gov.uk/protecting-the-vulnerable/mental-capacity-act" rel="external" target="_blank">information about mental capacity</a>.
</p>
</div>
</div>
<h3>Lightbox – ESC key doesn't close the lightbox</h3>
<div class="example">
<a class="open-lightbox-unescapable" href="#">Open lightbox</a>
<div class="lightbox unescapable hidden">
<a class="close-button" alt="Close lightbox" href="#">X</a>
<p>
This lightbox can't be closed with an escape key.
The Ministry of Justice website has <a href="http://www.justice.gov.uk/protecting-the-vulnerable/mental-capacity-act" rel="external" target="_blank">information about mental capacity</a>.
</p>
</div>
</div>
<h3>Concertina items don’t get keyboard focus</h3>
<div class="example">
<dl class="concertina">
<dt>Understanding user research</dt>
<dd>
<ul>
<li>How user research improves service design</li>
<li>Start by learning user needs</li>
<li>Understanding users who don't use digital services</li>
</ul>
</dd>
<dt>Preparing for user research</dt>
<dd>
<ul>
<li>Plan user research for your service</li>
<li>Plan a round of user research</li>
<li>Find user research participants</li>
<li>Choose a location for user research</li>
<li>Write a recruitment brief</li>
<li>Getting users' consent for research</li>
</ul>
</dd>
<dt>Analysing and sharing findings</dt>
<dd>
<ul>
<li>Sharing user research findings</li>
<li>Analyse a research session</li>
</ul>
</dd>
</dl>
</div>
<h3>Focus order in wrong order</h3>
<div class="example">
<div class="focus-order-broken">
<a class="first" href="#">First link</a>
<a class="second" href="#">Second link</a>
<a class="Third" href="#">Third link</a>
</div>
</div>
<h3>Dropdown navigation – only the top level items receive focus</h3>
<div class="example">
<nav role="navigation" class="dropdown-nav">
<ul>
<li>
<a href="https://www.gov.uk/browse/benefits">Benefits</a>
<ul class="submenu">
<li><a href="#">Benefits entitlement</a></li>
<li><a href="#">Benefits for families</a></li>
<li><a href="#">Carers and disability benefits</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<h3>Tooltips don't receive keyboard focus</h3>
<div class="example">
<label for="drivers-licence-no" class="tooltips-not-focusable">
Your driving licence number
<span class="tooltip-icon">?</span>
<span class="tooltip-information">Your driving licence number can be found in section 5 of your driving licence photocard</span>
</label>
<input id="drivers-licence-no" type="text" />
</div>
<h3>Alert shows for a short time</h3>
<div class="example">
<p class="disappearing-alert hidden">
You should complete this form in 20 minutes
</p>
<label>
Prisoner's name
<input type="text" />
</label>
</div>
<h2 id="frames">Frames</h2>
<h2 id="html">HTML</h2>
<h3>Invalid ARIA role names</h3>
<div class="example">
<div id="global-breadcrumb" class="header-context">
<ol class="group" role="breadcrumbs">
<li><a href="/">Home</a></li>
<li><a href="/browse/housing-local-services">Housing and local services</a></li>
<li><strong><a href="/browse/housing-local-services/local-councils">Local councils and services</a></strong></li>
</ol>
</div>
</div>
<h3>Article element used to mark-up an element that's not an article/blog post etc.</h3>
<div class="example">
<article class="not-article-content">
<h2 id="parent-other">Elsewhere on GOV.UK</h2>
<nav role="navigation" aria-labelledby="parent-other">
<ul>
<li><a href="/agency-workers-your-rights">Your rights as an agency worker</a></li>
<li><a href="/acas">Advisory, Conciliation and Arbitration Service (Acas)</a></li>
</ul>
</nav>
</article>
</div>
<h2 id="css">CSS</h2>
<h3>Page zoom - boxes that don’t expand with the text</h3>
<div class="example">
<div class="wont-expand-box">The box below this example won't expand to fit the text contained within when zoomed in.
<p class="wont-expand">
This service is for England and Wales only. You must contact individual <a rel="external" href="https://www.justice-ni.gov.uk/topics/prisons/prison-visits">prisons in Northern Ireland</a> or <a rel="external" href="http://www.sps.gov.uk/Corporate/Prisons/Prisons.aspx">Scotland</a> to book a visit.
</p>
</div>
</div>
</div>
</body>
</html>