Ticket #5958 (closed bug: invalid)
An JQuery Bug for IE6
| Reported by: | raul.fernandez | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4.2 |
| Component: | core | Version: | 1.3.2 |
| Keywords: | val function | Cc: | |
| Blocking: | Blocked by: |
Description
JQuery Team, my name is Raúl Fernández from Chile, I'm web developer, and working on a new website i think found a small bug on "val function" of jquery 1.3.2, where you assign "selected" property to option object, we have problem with that property on ie6:
actual code: jQuery( "option", this ).each(function(){
this.selected = (jQuery.inArray( this.value, values ) >= 0 jQuery.inArray( this.text, values ) >= 0);
});
i replace for new code: if (($.browser.msie)&&($.browser.version<7)){
jQuery( "option", this ).each(function(i){
if (jQuery.inArray( this.value, values ) >= 0
jQuery.inArray( this.text, values ) >= 0)
this.parentNode.selectedIndex = i;
});
}else{
jQuery( "option", this ).each(function(){
this.selected = (jQuery.inArray( this.value, values ) >= 0 jQuery.inArray( this.text, values ) >= 0); });
}
that it all.
i wait for yours comment.
bye god bless you!!
Attachments
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


the jquery file changed