Bug Tracker

Modify

Ticket #9380 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

className returns invalid attribute classname

Reported by: uipoet Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

Before jQuery 1.6,

jQuery('<span/>', { className: 'foo' };

would return: <span class="foo"/>

Since jQuery 1.6, this returns: <span classname="foo"/>, which is invalid.

Change History

comment:2 Changed 2 years ago by dmethvin

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

Use the class attribute name, not the className property.

comment:3 Changed 2 years ago by dmethvin

Duplicate of #9150.

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.