Side navigation
#1882 closed bug (worksforme)
Opened November 02, 2007 12:01AM UTC
Closed November 16, 2007 01:27AM UTC
.attr('height','250px') causing exception being thrown in IE6
Reported by: | ventura | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | attr | Cc: | |
Blocked by: | Blocking: |
Description
It happens when I use jQuery with a particular script on a particular page layout. In this particulary particular configuration the exception is always thrown on IE6 (working fine on other browsers).
I've modified line 907 into this:
try {
// this is the original line
if ( value != undefined ) elem[name] = value;
} catch (exp) {
window.alert("elem: "+ elem+"\\nname: " +name + "\\nvalue:" + value + "\\nexception: " + exp.message );
}
and I get a message box saying the following:
elem: [object]
name: height
exception Invalid Argument.
I also tried to gather a stack trace to verify what calls this function (or on which object is this being originaly called) but I didn't have any success so far. Any tips on gathering such information would be really nice. Any solutions other than leaving an empty try-catch woule be even better (this does solve my problem without any secondary effects...).
What element are you setting height on? Why not use .css('height', '250px')? Could you provide a test case?