Don't allow disabled fields to be focused

This commit is contained in:
Matt Brubeck 2015-04-07 17:27:58 -07:00
parent 35fb516662
commit 4e63a5063e
4 changed files with 58 additions and 21 deletions

View file

@ -1,23 +1,5 @@
[disabledElement.html]
type: testharness
[A disabled <button> should not be focusable]
expected: FAIL
[A disabled <input> should not be focusable]
expected: FAIL
[A disabled <select> should not be focusable]
expected: FAIL
[A disabled <optgroup> should not be focusable]
expected: FAIL
[A disabled <option> should not be focusable]
expected: FAIL
[A disabled <textarea> should not be focusable]
expected: FAIL
[A disabled <input[type=radio\]> should not be focusable]
[A disabled <span> should be focusable]
expected: FAIL

View file

@ -2,4 +2,10 @@
type: testharness
[input3 has the attribute autofocus]
expected: FAIL
[tabindex attribute makes the element focusable]
expected: FAIL
[editable elements are focusable]
expected: FAIL
[':focus' matches focussed body with tabindex]
expected: FAIL