Bug Tracker

Modify

Ticket #6124 (closed bug: worksforme)

Opened 3 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by hexes

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...?

comment:2 Changed 3 years ago by addyosmani

  • Priority set to low
  • Status changed from new to closed
  • Resolution set to worksforme

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 2 years ago by uli.riehm@…

As of jQuery 1.4.4, using Firefox 4b10 the warning is still alive! I've tried both your fiddles.

comment:4 Changed 2 years ago by danheberden

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...

Last edited 2 years ago by danheberden (previous) (diff)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.