Ticket #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: | |
| 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
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

