|
26 | 26 | </select> |
27 | 27 | <textarea id=textarea1>textarea1</textarea> |
28 | 28 | <textarea disabled id=textarea2>textarea2</textarea> |
| 29 | +<fieldset id=fieldset1></fieldset> |
29 | 30 | <fieldset disabled id=fieldset2> |
30 | 31 | <legend><input type=checkbox id=club></legend> |
31 | 32 | <p><label>Name on card: <input id=clubname required></label></p> |
|
39 | 40 | <progress disabled></progress> |
40 | 41 |
|
41 | 42 | <script> |
42 | | - testSelectorIdsMatch(":disabled", ["button2", "input2", "select2", "optgroup2", "option2", "textarea2", "clubname", "clubnum"], "':disabled' should match only disabled elements"); |
| 43 | + testSelectorIdsMatch(":disabled", ["button2", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should match only disabled elements"); |
43 | 44 |
|
44 | 45 | document.getElementById("button2").removeAttribute("disabled"); |
45 | | - testSelectorIdsMatch(":disabled", ["input2", "select2", "optgroup2", "option2", "textarea2", "clubname", "clubnum"], "':disabled' should not match elements whose disabled attribute has been removed"); |
| 46 | + testSelectorIdsMatch(":disabled", ["input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should not match elements whose disabled attribute has been removed"); |
46 | 47 |
|
47 | 48 | document.getElementById("button1").setAttribute("disabled", "disabled"); |
48 | | - testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set"); |
| 49 | + testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set"); |
49 | 50 |
|
50 | 51 | document.getElementById("button1").setAttribute("disabled", "disabled"); |
51 | | - testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set twice"); |
| 52 | + testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set twice"); |
52 | 53 |
|
53 | 54 | document.getElementById("input2").setAttribute("type", "submit"); // change input type to submit |
54 | | - testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "clubname", "clubnum"], "':disabled' should also match disabled elements whose type has changed"); |
| 55 | + testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match disabled elements whose type has changed"); |
55 | 56 |
|
56 | 57 | var input = document.createElement("input"); |
57 | 58 | input.setAttribute("disabled", "disabled"); |
58 | | - testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "clubname", "clubnum"], "':disabled' should not match elements not in the document"); |
| 59 | + testSelectorIdsMatch(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should not match elements not in the document"); |
59 | 60 | </script> |
0 commit comments