html rendering optimizations
fix typo in spec
add more test coverage for html helpers