Skip to main content

Bug Tracker

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...).

Attachments (0)
Change History (2)

Changed November 14, 2007 05:08AM UTC by brandon comment:1

need: ReviewTest Case

What element are you setting height on? Why not use .css('height', '250px')? Could you provide a test case?

Changed November 16, 2007 01:27AM UTC by brandon comment:2

resolution: → worksforme
status: newclosed

I'm not able to reproduce this issue. Feel free to reopen the ticket with a simplified test case.