Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f63dbba

Browse files
committed
add aria-live regions to state blocks
1 parent 3426757 commit f63dbba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2>Simple form</h2>
2020
<label for="simple-field">Desired username*:</label>
2121
<auto-check csrf="foo" src="/demo" required>
2222
<input id="simple-field" autofocus name="foo" required />
23-
<code class="state"></code>
23+
<code aria-live="polite" class="state"></code>
2424
</auto-check>
2525
<button value="1" name="form">submit</button>
2626
</form>
@@ -34,7 +34,7 @@ <h2>Form that has custom validity messages</h2>
3434
<label for="custom-field">Desired username*:</label>
3535
<auto-check csrf="foo" src="/demo" required>
3636
<input id="custom-field" autofocus class="json" name="foo" required />
37-
<code class="state"></code>
37+
<code aria-live="polite" class="state"></code>
3838
</auto-check>
3939
<button value="2" name="form">submit</button>
4040
</form>

0 commit comments

Comments
 (0)