#9380 closed bug (duplicate)
className returns invalid attribute classname
Reported by: | uipoet | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Use the class
attribute name, not the className
property.
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/Q6PmD/