Fixed syntax error exception in IE10.

IE does not allow inserting unclosed HTML, so either it must be
self-closed or with a closing tag.