Today I was trying to figure out why my XUL form wasn't working. I had a simple XUL file with a <window> element, with an onload="something();".
The thing wasn't working, and I soon put in enough alerts to find that the onload wasn't being called. This was confusing.
I tried changing an awful lot of things, simplifying the onload to an
"alert('foo');" and then changing the content all around in the .XUL file. It was when I stripped out all the style sheets that it worked. I
had copy/pasted the style sheets from another file, and was referencing something as href="Application.css". Application.css did not exist in that
directory, so Firefox couldn't load it, thus the load event never fired. Once I removed that line, everything worked perfectly, and I went about
the tedious task of undoing all the useless code changes and reformatting I had done trying to solve it.
Remember kids, copy/paste programming is problematic.