Fix closing tag not being tagName aware

Sorry for the inconvenience