Skip to main content

Bug Tracker

Side navigation

#13195 closed bug (notabug)

Opened January 11, 2013 04:29PM UTC

Closed January 11, 2013 04:32PM UTC

New element creation in IE8 with class attribute

Reported by: slowery@gatessolutions.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

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.

Attachments (0)
Change History (1)

Changed January 11, 2013 04:32PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed
  • class is a reserved word in JavaScript.
  • Avoid $(html, props) and use .attr("class", "btn") instead.