Skip to main content

Bug Tracker

Side navigation

#2588 closed bug (invalid)

Opened March 26, 2008 02:30PM UTC

Closed March 27, 2008 10:29PM UTC

$ function does not find elements with several css classes

Reported by: Markus.Staab Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: core, $, css, selectors Cc:
Blocked by: Blocking:

JQuery does not allow to select a element with several css classes to be searched.

<div class="class1 class2 class3">1235</div>

$(".class2") won't match this div, although it is common to have several css classes on one element... this is also valid xhtml..

Attachments (3)
Change History (6)

Changed March 27, 2008 04:33AM UTC by davidserduke comment:1

resolution: → worksforme
status: newclosed

I created the above test case based on the bug description and it works for me. Is there some version of some browser you are using that doesn't work? Or does the test case not reflect the problem you are having? If either of those are true feel free to reopen the ticket with more information.

Changed March 27, 2008 08:20PM UTC by Markus.Staab comment:2

resolution: worksforme
status: closedreopened

enclosed you will find my usecase

Changed March 27, 2008 08:39PM UTC by scott.gonzal comment:3

resolution: → invalid
status: reopenedclosed

Your test case uses $("rex-metainfo-cat") instead of $(".rex-metainfo-cat"). You're searching for elements of type "rex-metainfo-cat" not elements with the class "rex-metainfo-cat".

Changed March 27, 2008 08:55PM UTC by Markus.Staab comment:4

resolution: invalid
status: closedreopened

hmm you are right... now with your addition i have another problem..

the rows which are fadded in are very small.. looks like the colspan is not taken into account...?

Sorry for getting offtopic..

Changed March 27, 2008 08:58PM UTC by Markus.Staab comment:5

PS: Testing on winxp sp2 with ff

Changed March 27, 2008 10:29PM UTC by scott.gonzal comment:6

resolution: → invalid
status: reopenedclosed

Please create a new ticket for this issue. Thanks.