Bug Tracker

Modify

Ticket #4199 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

[validate] Error with SELECT on IE8 rc1

Reported by: tuxom Owned by:
Priority: major Milestone: 1.3.2
Component: plugin Version: 1.3.1
Keywords: select ie8 Cc:
Blocking: Blocked by:

Description

There is an error with select evenment on IE8 rc1 for the validate plugin.

The error come from method required: function(value, element, param) where options[0].attributesvalue? is null so options[0].attributesvalue?.specified throw an error.

With IE8, the method to get a select value seems to have changed. A workaround is to add &&($.browser.version<8) into:

return options.length > 0 && ( element.type == "select-multiple"
($.browser.msie && !(options[0].attributesvalue?.specified) ? options[0].text : options[0].value).length > 0);

so the result work :

return options.length > 0 && ( element.type == "select-multiple"
($.browser.msie && ($.browser.version<8) && !(options[0].attributesvalue?.specified) ? options[0].text : options[0].value).length > 0);

Change History

comment:2 Changed 4 years ago by dmethvin

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

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker,  http://dev.jqueryui.com .

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.