implement xhtml option for self-closing elements. fixes #330.
Automatically rewritten for npm.