Ticket #6358 (closed bug: patchwelcome)
Has attribute "selected" shows different behavior with context vs. without.
|Reported by:||l_andrew_l||Owned by:||timmywil|
I've tracked this bug down to the following problem: Place a <select> element into an HTML page with an <option> element. Do not add the "selected" attribute.
var sel = $('select');
$('select option[selected]'); $('option[selected]', sel);
Both of these return different results. Using context contains the option element even though there is no selected attribute. Using Firefox 3.5.3 on Ubuntu with Firebug 1.5.3.
- Priority set to high
- Status changed from new to open
- Milestone changed from 1.4.3 to 1.4.5
- Owner set to timmywil
- Status changed from open to assigned
- Milestone changed from 1.next to 1.7