See bug 4295: http://dev.jquery.com/ticket/4295
Combined css properties like padding and margin are actually
inconsistent across browsers when they come from the stylesheet.
I sympathize though, I do a huge amount of css cloning myself and this
kind of thing gets in the way.
~Daniel Friesen (Dantman, Nadir-Seen-Fire)
Stephen McKamey wrote:
> We've run into an issue where, when a style ("padding" in this case)
> with multiple parts ("5px 3px" in this case) is being set by a
> stylesheet (rather than inline) is accessed in IE6/7/8, jQuery 1.3.2
> causes the exception "Error: Invalid argument." The exception is
> thrown in the middle of "the awesome hack by Dean Edwards" on line
> 835.
>
> Has anyone else experienced this, and is there a known workaround?
>
> Here is a simple example which demonstrates it (in Internet Explorer):
>
> <html>
> <head>
> <style type="text/css">#foo { padding: 5px 10px; }</style>
>
> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/
> libs/jquery/1.3.2/jquery.js"></script>
> <script type="text/javascript">
> $(function() {
> alert($("#foo").css("padding"));
> });
> </script>
> </head>
> <body>
> <textarea id="foo"></textarea>
> </body>
> </html>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---