[jQuery] Smoothing out CSS inconsistencies
Hi all,
Our CMS uses JQuery heavily and I've been playing with it today to get
some CSS properties. Specifically height, width and background-color.
I find it a bit frustrating that jQuery doesn't smooth out the browser
inconsistencies in the returned data with these.
For example, if I don't have a width or height defined and call $
(element).css('width') :
firefox: returns an actual width (with a decimal point in - seems very
precise)
ie: returns "auto".
Another example is background-color. In IE it's returned as hex, in
firefox it's returned as rgb.
Is it realistic for jquery to fix these issues? Obviously it would add
overhead to the library, but these inconsistencies between browsers
are a constant pain.
Cheers
Tom
http://www.simpleweb-online.com/