It's all because Safari doesn't support the getComputedStyle property:
http://www.quirksmode.org/dom/w3c_css.html

To make things even worse, they claimed that it was going to work in
Safari 1.3+:
http://weblogs.mozillazine.org/hyatt/archives/2005_04.html#007962

I hope hope hope that I'm wrong here and that there's some magical
Safari method that I'm missing.

--John

On 8/18/06, Samuel Souder <[EMAIL PROTECTED]> wrote:
>
> Thanks for the quick followup John. I also run the WebKit nightlies and is
> is still broken as of today. Is there something I should be submitting to
> WebKit's bug reports? Lastly, do you know of any good ways around this?
> :hidden is a very cool selector and has a lot of great uses so I would
> obviously love to use it.
>
> On Aug 18, 2006, at 7:32 PM, John Resig wrote:
>
> The problem is that Safari doesn't properly report the current style
> property values. This may be possible in the Safari Nightlies, but I
> haven't tested yet. This is a major fallback of Safari, unfortunately.
>
> On 8/18/06, Samuel Souder <[EMAIL PROTECTED]> wrote:
> I am running up against an issue I see in Safari.
>
> Lets say I have a <div> with some content in it assigned a class of
> 'myClassName'. I then tell that class to be 'display: none;' in the
> CSS. Now for the odd part... When I ask $(".myClassName:hidden").show
> (); it doesn't show up!?
>
> So I made a test page up that checks $(".myClassName").is(":hidden")
> and what do you know, Safari says that it's visible not hidden!
>
> Am I doing something wrong here?
>
> NOTE: I have tried the same code on http://jquery.com/src/latest/
> sane/, http://jquery.com/src/beta/sane/, and
> http://jquery.com/src/
> dev/sane/ codebases.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to