Ticket #11355 (closed bug: duplicate)
":input[value]" and ":input:not([value])" returning wrong elements
|Reported by:||jmabey||Owned by:|
I'm using the selectors :input[value] and :input:not([value]), and they appear to be returning the opposite of what is expected.
Suppose there is a page with one element on it: <input name="a">
- :input[value] selects the element.
- :input:not([value]) does not select the element.
Using input instead of :input returns the expected result:
- input[value] does not select the element.
- input:not([value]) selects the element.
Test case: http://jsfiddle.net/jmabey/f9fH7/
- Reproducible in Firefox 3.6.26 and 10.0.1, Chrome 17, Opera 11.61, Safari 5.1.2, IE 7-9
- IE 7 and 8's results are inconsistent with other browsers
- Operating systems: Ubuntu 11.10 and Windows 7
- Works as expected in same browsers
- Priority changed from undecided to low
- Component changed from unfiled to selector
- Status changed from open to closed
- Resolution set to duplicate