|[Back to weblog: pretention]|
divElement.style.height = 200;
This is, of course, totally bogus. Firefox 1.5 and 2.0 both just silently drop that line of the CSS. Of course, when turning on CSS Warnings in Firebug , it verified what our coworker had told us.
The code should have readL
divElement.style.height = '200px';
When working for a previous client, I had found that Mozilla 1.7 would let you know about this kind of breakage in a more obvious way. For that reason, we would sometimes run our JsUnit test under Mozilla 1.7 if we ever ran into some unexplainable behaviour in Firefox. I had forgotten that while working with xian, for some reason.
At the same previous client, we also found that turning on CSS Warnings was way too noisy due to lots of little issues in the CSS. As such, it wasn't very useful. Eventually, we went through and fixed a lot of the issues reported by Firebug's CSS Warnings and it was much more effective.
Discussion:showing all 0 messages
|(last modified 2007-08-27) [Login]|