Skip to main content

Bug Tracker

Side navigation

#9380 closed bug (duplicate)

Opened May 21, 2011 11:10PM UTC

Closed May 22, 2011 04:21AM UTC

Last modified May 22, 2011 04:21AM UTC

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.

Attachments (0)
Change History (3)

Changed May 21, 2011 11:23PM UTC by uipoet comment:1

Changed May 22, 2011 04:21AM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Use the class attribute name, not the className property.

Changed May 22, 2011 04:21AM UTC by dmethvin comment:3

Duplicate of #9150.