Ticket #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: | ||
| 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
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.
comment:6 Changed 8 months ago by JP
Just add a tabindex to the select elements then error will disappear.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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.