support self closing tags

support self closing tags like

`<tag attr=“moo” />`

or 

`<tag />`