Opened 10 years ago
Closed 10 years ago
#13195 closed bug (notabug)
New element creation in IE8 with class attribute
Reported by: | 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.
Note: See
TracTickets for help on using
tickets.
class
is a reserved word in JavaScript.$(html, props)
and use.attr("class", "btn")
instead.