Bug Tracker

Modify

Ticket #6883 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

.addClass problem with '-'in class names

Reported by: sebrojas Owned by:
Priority: Milestone: 1.4.3
Component: core Version: 1.4.2
Keywords: addClass Cc:
Blocking: Blocked by:

Description

When the class name sent by parameter includes the '-' character, the method doesn't work

Change History

comment:1 Changed 3 years ago by dmethvin

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

$(".test-me").text() showed "test" with this html:

<div id="test-me">test</div>

Please attach the smallest possible test case that demonstrates the problem.

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.