golang.org/x/net/html.Attribute.Key (field)

42 uses

	golang.org/x/net/html (current package)
		doctype.go#L59: 		n.Attr = append(n.Attr, Attribute{Key: key, Val: id})
		doctype.go#L70: 		if n.Attr[0].Key == "public" {
		doctype.go#L89: 		if lastAttr := n.Attr[len(n.Attr)-1]; lastAttr.Key == "system" &&
		foreign.go#L13: 		if newName, ok := nameMap[aa[i].Key]; ok {
		foreign.go#L14: 			aa[i].Key = newName
		foreign.go#L21: 		if a.Key == "" || a.Key[0] != 'x' {
		foreign.go#L24: 		switch a.Key {
		foreign.go#L27: 			j := strings.Index(a.Key, ":")
		foreign.go#L28: 			aa[i].Namespace = a.Key[:j]
		foreign.go#L29: 			aa[i].Key = a.Key[j+1:]
		foreign.go#L42: 				if a.Key == "encoding" {
		parse.go#L362: 				if t0.Key == t1.Key && t0.Namespace == t1.Namespace && t0.Val == t1.Val {
		parse.go#L835: 		attr[t.Key] = t.Val
		parse.go#L838: 		if _, ok := attr[t.Key]; !ok {
		parse.go#L840: 			attr[t.Key] = t.Val
		parse.go#L1015: 					if t.Key == "type" {
		parse.go#L1444: 				if t.Key == "type" && strings.ToLower(t.Val) == "hidden" {
		parse.go#L2152: 					switch attr.Key {
		render.go#L105: 				switch a.Key {
		render.go#L163: 		if _, err := w.WriteString(a.Key); err != nil {
		token.go#L68: 	Namespace, Key, Val string
		token.go#L91: 		buf.WriteString(a.Key)

	golang.org/x/pkgsite/internal/frontend
		overview.go#L217: 			if a.Key == "src" {

	golang.org/x/pkgsite/internal/testing/htmlcheck
		htmlcheck.go#L178: 			if a.Key == name {

	github.com/andybalholm/cascadia
		selector.go#L253: 		if a.Key == key && f(a.Val) {
		selector.go#L267: 		if a.Key == key && a.Val == val {

	github.com/microcosm-cc/bluemonday
		sanitize.go#L271: 			if isDataAttribute(htmlAttr.Key) {
		sanitize.go#L277: 		if ap, ok := aps[htmlAttr.Key]; ok {
		sanitize.go#L290: 		if ap, ok := p.globalAttrs[htmlAttr.Key]; ok {
		sanitize.go#L322: 					if htmlAttr.Key == "href" {
		sanitize.go#L331: 					if htmlAttr.Key == "cite" {
		sanitize.go#L340: 					if htmlAttr.Key == "src" {
		sanitize.go#L366: 					if htmlAttr.Key == "href" {
		sanitize.go#L397: 						if htmlAttr.Key == "rel" && addNoFollow {
		sanitize.go#L411: 						if elementName == "a" && htmlAttr.Key == "target" {
		sanitize.go#L433: 						rel.Key = "rel"
		sanitize.go#L440: 						rel.Key = "target"
		sanitize.go#L467: 							if htmlAttr.Key == "rel" {
		sanitize.go#L489: 							rel.Key = "rel"