#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 follow-up: 2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
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)
Note: See
TracTickets for help on using
tickets.
class
is a reserved word, please quote it.