Ticket #7186 (closed bug: fixed)
addClass seems to trigger Invalid argument in IE in jquery 1.5.1
| Reported by: | bluefox | Owned by: | gnarf |
|---|---|---|---|
| Priority: | major | Milestone: | 1.8.11 |
| Component: | ui.effects.core | Version: | 1.8.11 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Can be reproduced by going to http://jqueryui.com/demos/addClass/ with IE (8.0.7600.16385) and click Run Effect. A script error is generated
Invalid argument. jquery.min.js, line 16 character 79183
Might be a conflict with jQuery 1.5.1?
Change History
comment:1 Changed 2 years ago by scott.gonzalez
- Priority changed from minor to major
- Status changed from new to open
comment:2 Changed 2 years ago by scott.gonzalez
jQuery core bug: http://bugs.jquery.com/ticket/8627
comment:4 Changed 2 years ago by gnarf
In the meantime, while waiting for jQuery Core to catch up to this bug, you can use this cssHook to fix this error:
$.cssHooks.letterSpacing = {
get: function ( elem, computed ) {
var ret = parseFloat( elem.style.letterSpacing ) || 0;
return ret;
}
};
Note: See
TracTickets for help on using
tickets.


This is caused by a change in 1.5.1: https://github.com/jquery/jquery/commit/85d9343271da85fc945bf37a604873eaf247a3a7