Bug Tracker

Opened 11 years ago

Closed 10 years ago

#4199 closed bug (invalid)

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

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 (1)

comment:2 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

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 .

Note: See TracTickets for help on using tickets.