Skip to main content

Bug Tracker

Side navigation

#4199 closed bug (invalid)

Opened February 20, 2009 08:10AM UTC

Closed October 12, 2009 11:42PM UTC

[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].attributes['value'] is null so options[0].attributes['value'].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].attributes['value'].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].attributes['value'].specified) ? options[0].text : options[0].value).length > 0);

Attachments (0)
Change History (1)

Changed October 12, 2009 11:42PM UTC by dmethvin comment:1

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 .