Bug Tracker

Modify

Ticket #12305 (closed bug: wontfix)

Opened 10 months ago

Last modified 4 months ago

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

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

comment:1 Changed 10 months ago by dmethvin

  • Owner set to anonymous
  • Status changed from new to pending

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 10 months ago by anonymous

  • Status changed from pending to new

comment:3 follow-up: ↓ 4 Changed 10 months ago by dmethvin

  • Status changed from new to pending

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

comment:4 in reply to: ↑ 3 Changed 10 months ago by anonymous

  • Status changed from pending to new

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 9 months ago by mikesherov

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

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

Last edited 9 months ago by mikesherov (previous) (diff)

comment:6 Changed 8 months ago by JP

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

comment:7 Changed 5 months ago by KM

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

comment:8 Changed 4 months ago by Halycon

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

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.