#6124 closed bug (worksforme)
v1.4 :visible selector
Reported by: | eriadam | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.4.2 |
Component: | selector | Version: | 1.4.1 |
Keywords: | :visible. :hidden | Cc: | |
Blocked by: | Blocking: |
Description
I was using this in v1.3.2 and worked perfectly. $("#sh-ty-container > div:visible") Now with v1.4 it does not work, the error console says:
Warning: Unknown pseudo-class or pseudo-element 'visible'. Dangling combinator. Source File: http://dev.mydomain.at/adam.eri/HUT-WEB/trunk/shop/checkout Line: 0
Actually I got the same error with the :hidden selector.
Warning: Unknown pseudo-class or pseudo-element 'hidden'. Source File: http://api.jquery.com/visible-selector/ Line: 0
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 12 years ago by
Priority: | → low |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Here is a test case that I recreated based on your original submission. As you can see the :visible selector you are trying to use works fine with jQuery 1.4.2.
http://jsfiddle.net/5sKbe/ http://jsfiddle.net/5sKbe/2/
Here you can similarly see :hidden working as expected: http://jsfiddle.net/5sKbe/1/
Closing as this works for me.
comment:3 Changed 12 years ago by
As of jQuery 1.4.4, using Firefox 4b10 the warning is still alive! I've tried both your fiddles.
comment:4 Changed 12 years ago by
But no errors - if FF chooses to display a warning if JQ tries to use a possibly present pseudo selector that's the prerogative of the browser. If it was an error, then yeah, that'd be a problem. Load up firefox.com in 4b10 - and watch the warnings fly...
After update from 1.3.2 to 1.4.2 my selectors (like $("div.ktid_2:visible,div.ktid_4:visible", rc) ) doesn't work. Is it bug or...?