Ticket #7695 (closed bug: invalid)
selector [checked] does not work when on applied to a single checkbox
|Reported by:||JordanClark||Owned by:|
Versioning and affected browsers
In FF, Chrome and Safari, the behavior of the [checked] selector changed from 1.4.2 to 1.4.3, and the same behavior exists in 1.4.4
IE is not affected by the bug, and exhibits the same behavior from 1.4.2 - 1.4.4
The browser versions I used are FF 3.6.12, Chrome 7.0.517.44, Safari 5.0.2(7533.18.5), and IE 8.0.6001.18702
When an element set contains only a single checkbox, adding the adding the additional constraint '[checked]' will never match the element, regardless of the actual checked state.
When only one checkbox exists,
have the same results.
If the containing set has at least one element in addition to the checkbox, the result is as expected.
Test case in 1.4.3: http://jsfiddle.net/8AuPq/3/
Check the checkbox. Line 'box [checked]' will not match the checkbox, but the other three will.
Repeating the test with 1.4.2 or IE, all lines will match the checkbox.