This ensures that element tags such as <img> tags don't use a closing /> when documents are parsed as HTML documents. Fixes #170