use #dom_class to generate html-class attr.

As @jvdp proposed.