Skip to main content

Bug Tracker

Side navigation

#7041 closed bug (invalid)

Opened September 16, 2010 11:46AM UTC

Closed September 18, 2010 02:33AM UTC

Last modified March 15, 2012 01:35PM UTC

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:
Description

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 September 16, 2010 05:50PM UTC.
Change History (2)

Changed September 16, 2010 05:52PM UTC by DevDyl comment:1

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.

Changed September 18, 2010 02:33AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

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