javascript bug in mozilla 1.5?

User Help for Seamonkey and Mozilla Suite
Post Reply
amusingfool
Guest

javascript bug in mozilla 1.5?

Post by amusingfool »

Hi all,

I think I've found a bug in mozilla 1.5 (in at least win32 and mac releases). If I have a javascript object holding the reference for a DIV page section, referencing object.style.width returns nothing if the width is defined in a style sheet, but returns the correct value if it is defined inline in the page. FWIW, IE exhibits the same behavior, but it's still damned annoying. I really don't want to be duplicating site-wide styles in every page. I'll have to write scripts to do updates, if it comes to that, which I would much prefer not to do. Anybody able to shed any light on this?

Thanks,

AMusingFool
AMusingFool
Guest

Post by AMusingFool »

*sigh* answered my own question after more searching... getComputedStyle().getPropertyValue() solved the problem. So maybe that's a "feature" rather than a bug.
Post Reply