more forgiving auto-closing tag detection