Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12155 closed bug (invalid)

IE7 SCRIPT1028: Expected identifier, string or number

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8rc1
Keywords: Cc:
Blocked by: Blocking:

Description

When I try creating and appending an element o body with a class IE throws that message.

my code (function(){

$('<div />', {

class: 'mydiv'

}).appendTo('body');

})();

if I change the class to a string value it works fine.

Change History (3)

comment:1 Changed 7 years ago by dmethvin

Resolution: invalid
Status: newclosed

class is a reserved word, please quote it.

comment:2 in reply to:  1 Changed 7 years ago by jaubourg

class is a reserved word

See, I quote it but it doesn't resolve the bug!

(edited so that it is more obvious what I did there)

Last edited 7 years ago by jaubourg (previous) (diff)

comment:3 Changed 7 years ago by dmethvin

Note: See TracTickets for help on using tickets.