Bug Tracker

Modify

Ticket #2588 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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

Description

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

jquery_test.html Download (735 bytes) - added by davidserduke 5 years ago.
test case
my_jquery_test.html Download (2.9 KB) - added by Markus.Staab 5 years ago.
concrete testcase
my_jquery_test.2.html Download (2.9 KB) - added by Markus.Staab 5 years ago.

Change History

Changed 5 years ago by davidserduke

test case

comment:1 Changed 5 years ago by davidserduke

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

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.

comment:2 Changed 5 years ago by Markus.Staab

  • Status changed from closed to reopened
  • Resolution worksforme deleted

enclosed you will find my usecase

Changed 5 years ago by Markus.Staab

concrete testcase

comment:3 Changed 5 years ago by scott.gonzal

  • Status changed from reopened to closed
  • Resolution set to invalid

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

comment:4 Changed 5 years ago by Markus.Staab

  • Status changed from closed to reopened
  • Resolution invalid deleted

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 5 years ago by Markus.Staab

comment:5 Changed 5 years ago by Markus.Staab

PS: Testing on winxp sp2 with ff 2.0.0.13

comment:6 Changed 5 years ago by scott.gonzal

  • Status changed from reopened to closed
  • Resolution set to invalid

Please create a new ticket for this issue. Thanks.

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.