Bug Tracker

Modify

Ticket #7041 (closed bug: invalid)

Opened 3 years ago

Last modified 14 months ago

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:
Blocking: Blocked by:

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

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

Change History

Changed 3 years ago by DevDyl

comment:1 Changed 3 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 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.