Bug Tracker

Opened 6 years ago

Closed 6 years ago

#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:
Blocked by: Blocking:

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!!

Change History (1)

comment:1 Changed 6 years ago by snover

  • Resolution set to invalid
  • Status changed from new to closed

This description does not make any sense and no test case was provided.

Note: See TracTickets for help on using tickets.