Bug Tracker

Ticket #5958 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

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

jquery.js Download (118.3 KB) - added by raul.fernandez 5 years ago.
the jquery file changed

Change History

Changed 5 years ago by raul.fernandez

the jquery file changed

comment:1 Changed 4 years ago by snover

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

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

Note: See TracTickets for help on using tickets.