gradus/coffeecup — Issue #12: Element ID shorthand breaks in IE
Author: randallb
Created: 2012-02-29 18:22:38+00:00
State: open

https://github.com/mauricemach/coffeekup/issues/96
from @hankmander

the coffekup code:
div "#my_id", ->
gives:

instead of giving the element an id it gives the element a class that starts with a '#'. However, it works if you do this instead:
div id: "register_interest", ->

giving elements classes ( div ".my_id", -> ) works as expected though.

NOTE. This only occurs when client side rendering a template in Internet explorer 7. Might apply to other versions of IE as well.

Edit: version 0.3.1 of coffeekup and 1.1.2 of coffeescript used