-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathinvalid01.html
55 lines (55 loc) · 2.37 KB
/
invalid01.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>input with aria-invalid="true"</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico">
<link href="assets/css/examples.css" rel="stylesheet">
</head>
<body>
<h1><code><input></code> with <code>aria-invalid="true"</code></h1>
<p>← <a href="index.html">Return to main list</a></p>
<p>This is a test case designed to determine how the <a href="https://www.w3.org/TR/wai-aria/#aria-invalid" target="_blank"><code>aria-invalid</code></a> attribute, applied to the <a href="https://html.spec.whatwg.org/multipage/input.html#the-input-element" target="_blank"><code><input></code></a> element, is announced by various screen readers.</p>
<h2>Example</h2>
<form action="#">
<div class="form-group">
<label class="label" for="name">Name</label>
<input class="input" type="text" id="name" aria-invalid="true">
</div>
</form>
<h2>Code</h2>
<!-- start code -->
<pre><code><div>
<label for="name">Name</label>
<input type="text" id="name" aria-invalid="true">
</div></code></pre>
<!-- end code -->
<h2>Assistive technologies</h2>
<div class="note">
<h3>VoiceOver</h3>
<ul class="browser-list">
<li><b>Chrome:</b> Name. <span class="green">Invalid data</span>. Edit text.</li>
<li><b>Firefox:</b> Name. <span class="green">Invalid data</span>. Edit text.</li>
<li><b>Safari:</b> Name. <span class="green">Invalid data</span>. Edit text.</li>
</ul>
</div>
<div class="note">
<h3>NVDA</h3>
<ul class="browser-list">
<li><b>Chrome:</b> Name. <span class="green">Invalid entry</span>. Blank.</li>
<li><b>Firefox:</b> Name. <span class="green">Invalid entry</span>. Has autocomplete. Blank.</li>
<li><b>Edge:</b> Name. <span class="green">Invalid entry</span>. Blank.</li>
</ul>
</div>
<div class="note">
<h3>JAWS</h3>
<ul class="browser-list">
<li><b>Chrome:</b> Name. Edit. <span class="green">Invalid entry</span>. Type in text.</li>
<li><b>Firefox:</b> Name. Edit. <span class="green">Invalid entry</span>. Type in text.</li>
<li><b>Edge:</b> Name. Edit. <span class="green">Invalid entry</span>. Type in text.</li>
</ul>
</div>
<p>← <a href="index.html">Return to main list</a></p>
</body>
</html>