func identifyHTMLVersion(attributes []html.Attribute) string {
	if len(attributes) == 0 {
		return "HTML 5"
	} else {
		for _, attr := range attributes {
			if attr.Key == "public" {
				switch attr.Val {
				case htmlV401Strict:
					return "HTML v4.01 Strict"
				case htmlV401Transitional:
					return "HTML v4.01 Transitional"
				case htmlV401Frameset:
					return "HTML v4.01 Frameset"
				case xhtmlV1Strict:
					return "XHTML v1 Strict"
				case xhtmlV1Transitional:
					return "XHTML v1 Transitional"
				case xhtmlV1Frameset:
					return "XHTML v1 Frameset"
				case xhtmlV11:
					return "XHTML v1.1"
				default:
					return ""
				}
			}
		}
	}

	return ""
}
// identifyHTMLVersion returns the HTML version of a document that is
// identified from the attributes of a html.DoctypeNode only.
identifyHTMLVersion returns the HTML version of a document that is
identified from the attributes of a html.DoctypeNode only.
// identifyHTMLVersion returns the HTML version of a document that is // identified from the attributes of a html . DoctypeNode only .
func identifyHTMLVersion(attributes []html.Attribute) string {
	if len(attributes) == 0 {
		return "HTML 5"
	} else {
		for _, attr := range attributes {
			if attr.Key == "public" {
				switch attr.Val {
				case htmlV401Strict:
					return "HTML v4.01 Strict"
				case htmlV401Transitional:
					return "HTML v4.01 Transitional"
				case htmlV401Frameset:
					return "HTML v4.01 Frameset"
				case xhtmlV1Strict:
					return "XHTML v1 Strict"
				case xhtmlV1Transitional:
					return "XHTML v1 Transitional"
				case xhtmlV1Frameset:
					return "XHTML v1 Frameset"
				case xhtmlV11:
					return "XHTML v1.1"
				default:
					return ""
				}
			}
		}
	}
	return ""
}
func identifyHTMLVersion ( attributes [ ] html . Attribute ) string { if len ( attributes ) == 0 { return " " } else { for _ , attr := range attributes { if attr . Key == " " { switch attr . Val { case htmlV401Strict : return " " case htmlV401Transitional : return " " case htmlV401Frameset : return " " case xhtmlV1Strict : return " " case xhtmlV1Transitional : return " " case xhtmlV1Frameset : return " " case xhtmlV11 : return " " default : return " " } } } } return " " }
identifyHTMLVersion returns the HTML version of a document that is
identified from the attributes of a html.DoctypeNode only.
identifyHTMLVersion returns the HTML version of a document that is identified from the attributes of a html . DoctypeNode only .