Skip to main content

Bug Tracker

Side navigation

#9019 closed bug (invalid)

Opened April 29, 2011 04:31PM UTC

Closed April 29, 2011 06:59PM UTC

Last modified April 29, 2011 09:16PM UTC

IE8: creating attribute class throws error

Reported by: drublic Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

In IE8 I get an error while creating an element like this:

$( '<div />', {
  class : "bar"
}).appendTo('#foo');

This might have something to do with the 'class' attribute that is illegal to use.

Here is a testcase: http://jsfiddle.net/drublic/fSxdm/

Hopefully this helps :)

Attachments (0)
Change History (2)

Changed April 29, 2011 06:59PM UTC by rwaldron comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

wrap "class" in quotes.

Changed April 29, 2011 09:16PM UTC by drublic comment:2

I fixed it with addClass() after creating the element. Thanks for your response.