Sean McCullough Learn, Understand, Apply, Share and repeat

13Apr/0912

jQuery’s curvycorners issue with the IE’s

Hey readers,

I've recently started diving into jQuery plug-ins over at work and came across a bug this afternoon.
Using jQuery 1.3(.1/.2/.3) and a plug-in I found from blue-anvil.com that rounds corners on HTML elements... it's pretty handy.

Anyways I was using jQuery minified 1.3.2 and blue anvil's latest version of curvycorners ver. 1.8.1 (here is a link)
I kept getting an error in IE6 & 7, but not FF3, Safari, Opera, Chrome. A little digging around in the issues logs for that plug-in on the jQuery site found me this. http://plugins.jquery.com/node/5756
(bottom of the comments)

After looking at that I tried to find:
$($$ +" *").css("zoom","normal");

and couldn’t, I then did a search for:
" *"

in the jquery.curvycorners.packed.js (ver. 1.8.1) and found this:
$(c+" *").css("zoom","normal")
instead.

I then just switch to this:
$("*", c).css("zoom","normal")
and it fixed the error I was getting in IE6 & 7.

Tested in IE6 (Stand alone from Multiple IE) & IE7 with
jquery-1.3.min.js

Good luck :)

Your friendly neighbourhood,
Smccullough

Filed under: jQuery 12 Comments