Fix closing tag not being tagName aware