On Input
Changing a control's value — picking an option, ticking a box, typing in a field — does not by itself cause a change of context such as navigating away, submitting the form, or moving focus elsewhere, unless the user was told in advance.
Why it matters
A select that navigates the moment an option is chosen can be impossible to operate with a keyboard, because arrowing through the options fires it. A screen reader user has no warning that choosing an answer will submit the form.
Needs manual testing
Whether a value change triggers navigation or submission is behaviour, not markup. axe-core does not test it, and the judgement pass does not drive forms. Test by changing each control with the keyboard and watching what happens.
Fails
<label for="region">Region</label>
<select id="region" onchange="location.href = this.value">
<option value="/eu">Europe</option>
<option value="/us">United States</option>
</select>Arrowing from the first option to the second navigates immediately. A keyboard user can never reach the third.
Passes
<form action="/region" method="get">
<label for="region">Region</label>
<select id="region" name="region">
<option value="eu">Europe</option>
<option value="us">United States</option>
</select>
<button type="submit">Go</button>
</form>Choosing an option changes nothing until the user presses the button. The control is predictable with keyboard, mouse and screen reader alike.
Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.
Scan your site free