I’ve spent most of the morning cleaning up some javascript classes to finish off IP Dynamic’s menu feature(s) and to try and find out why Firefox is freaking out when I load up the page content form.
To make the form cleaner, I’ve introduced a tabbed form concept which (via correctly marking up the HTML and using my tab-factory javascript class) allows the form to be broken up into different tabs.
This was going perfectly well until I stumbled across a rather odd javascript / Firefox bug. I’m using Firefox 1.5 RC 1 mainly because of the ability to re-order tabs and cleaned up dialogue boxes. Overall it’s a great release, but there are a few oddities (and it’s to be expected as it is only a release candidate).
One of these oddities has to do with Mozilla’s Midas engine (enableDesignMode) and changing the “display” attribute of a parent DIV after designMode has been enabled. The result is hard to explain, so here’s a little movie.
The fix was fairly straightforward (wrap the form with a DIV that has “display:block” set) but finding out what was the problem has cost me a morning.
IPD Gone Bad 132k Quicktime .Mov(ie)
4 comments
Comments feed for this article
November 7, 2005 at 3:50 pm
The Jedi
Odd bugs yep. Personnally I rather prefer modifying the “className” attribute in Javascript as it’s more flexible and following the separation between contents & design (design in css, content in JS). Good luck.
November 8, 2005 at 2:38 am
backdream
donot know what the movie show.
November 8, 2005 at 11:25 am
Wilko
I’m asumming the constant reloading of the tab.
November 8, 2005 at 4:35 pm
Matt
That’ll be five points to Wilko.