Fixed two issues in HTML5 module.

endTag rendered incorrectly
HTML attributes not rendered at all.