Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#12305 closed bug (wontfix)

I got a type mismatch error in IE7

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:

Description

I encountered it in the compressed version. I've used the uncompressed version to find the line number.

LN 2526:

return (ret.value = value + "");

Change History (8)

comment:1 Changed 7 years ago by dmethvin

Owner: set to anonymous
Status: newpending

Can you provide a simple test case that creates the error, preferably at jsfiddle.net? Knowing the line number doesn't tell us what caused the problem.

comment:2 Changed 7 years ago by anonymous

Status: pendingnew

comment:3 Changed 7 years ago by dmethvin

Status: newpending

Attributes should be strings. Why are you setting an attribute to NaN?

comment:4 in reply to:  3 Changed 7 years ago by anonymous

Status: pendingnew

Replying to dmethvin:

Attributes should be strings. Why are you setting an attribute to NaN?

I'm not the OP, but replied with the jsfiddle because I stumbled upon this ticket. I was experiencing the same "Type mismatch" error in IE7.

In my case, we are using the selectBox plugin (https://github.com/claviska/jquery-selectBox). The init function does parseInt(select.attr('tabindex')) which can be undefined and returns NaN.

comment:5 Changed 7 years ago by mikesherov

Resolution: wontfix
Status: newclosed

Please take this up with the plugin author to resolve the issue. jQuery does not support setting attributes to NaN.

Last edited 7 years ago by mikesherov (previous) (diff)

comment:6 Changed 7 years ago by JP

Just add a tabindex to the select elements then error will disappear.

comment:7 Changed 6 years ago by KM

Just wanted to say, thanks for citing selectBox as the problem, this helped me fix identical issue.

comment:8 Changed 6 years ago by Halycon

Thanks very much! It helped me to solve this problem.

Note: See TracTickets for help on using tickets.