Open alexchandel opened 9 years ago
Does className
work?
className
seems to work for classes. This ought to be documented in the readme.
That's just the normal name for the class attribute when using the DOM API. The first case nav.nav-bar
not working is definitely a bug though.
Both this:
this:
and this:
fail to create a
nav
tag with aclass
attribute, leaving a tag callednav.nav-bar
, no attributes, and no attributes respectively.Unless I'm missing something, this is a gaping hole in the API.