Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13195 closed bug (notabug)

New element creation in IE8 with class attribute

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:


If a new element is created and the map of attributes contains the class attribute, an error "Expected identifier, string or number" is logged, and the element isn't created. See http://jsfiddle.net/TNfcX/5/ for a working example.

It only doesn't work in IE8 and below.

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed
  • class is a reserved word in JavaScript.
  • Avoid $(html, props) and use .attr("class", "btn") instead.
Note: See TracTickets for help on using tickets.