Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#7041 closed bug (invalid)

Bug in IE 8 when using accordion(s) inside a tab control

Reported by: DevDyl Owned by:
Priority: Milestone: 1.4.3
Component: core Version: 1.4.2
Keywords: IE 8, tab control, accordion Cc:
Blocked by: Blocking:


I have recently made a control for static content on an asp.net web page using the tab control and accordion contol to minimize the amount of space consumed. I initially struggled to get it to work at all, but after browsing the Jquery forum I found the solution in that I needed to initialize the tab control after initializing the accordions. This however caused the tabs to break in IE (tested in version 8). I have solved the issue by putting the a try catch block into the offending function. This allows IE to ignore the error and continue, after which it renders the entire control perfectly. The error occurs in jquery-1.4.2.min.js Line: 104 Char: 68 Code: 0 The original function looked as follows: function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)} My version looks as follows: function(a){try{this.nodeType===1&&this.insertBefore(a,this.firstChild)}catch(ex){}})}. I realise this is a quick fix, but thought you should know it exsits, in case any further issues like this occur.

Attachments (1)

jquery-1.4.2.js (160.0 KB) - added by DevDyl 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by DevDyl

Attachment: jquery-1.4.2.js added

comment:1 Changed 13 years ago by DevDyl

Previous fix broke control in all other browsers. The result of trying to alter the minified version of jquery. Downloaded the uncompressed version and corrected the placement of the try catch block. The offending function is the prepend function.

comment:2 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

Please triage on the forum and determine whether this is a jQuery bug or a jQuery UI bug.

Note: See TracTickets for help on using tickets.