golang.org/x/net/html.Attribute.Val (field)
39 uses
golang.org/x/net/html (current package)
doctype.go#L59: n.Attr = append(n.Attr, Attribute{Key: key, Val: id})
doctype.go#L71: public := strings.ToLower(n.Attr[0].Val)
doctype.go#L90: strings.ToLower(lastAttr.Val) == "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd" {
foreign.go#L43: val := strings.ToLower(a.Val)
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#L840: attr[t.Key] = t.Val
parse.go#L1016: if strings.ToLower(t.Val) == "hidden" {
parse.go#L1444: if t.Key == "type" && strings.ToLower(t.Val) == "hidden" {
render.go#L107: p = a.Val
render.go#L109: s = a.Val
render.go#L169: if err := escape(w, a.Val); err != nil {
token.go#L68: Namespace, Key, Val string
token.go#L93: escape(buf, a.Val)
golang.org/x/pkgsite/internal/frontend
overview.go#L218: if v := translateLink(a.Val, info, true, readme); v != "" {
overview.go#L219: a.Val = v
golang.org/x/pkgsite/internal/testing/htmlcheck
htmlcheck.go#L179: if !re.MatchString(a.Val) {
htmlcheck.go#L180: return fmt.Errorf("[%q]:\n`%s` does not match\n%q", name, wantValRegexp, a.Val)
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#L279: if ap.regexp.MatchString(htmlAttr.Val) {
sanitize.go#L293: if ap.regexp.MatchString(htmlAttr.Val) {
sanitize.go#L323: if u, ok := p.validURL(htmlAttr.Val); ok {
sanitize.go#L324: htmlAttr.Val = u
sanitize.go#L332: if u, ok := p.validURL(htmlAttr.Val); ok {
sanitize.go#L333: htmlAttr.Val = u
sanitize.go#L341: if u, ok := p.validURL(htmlAttr.Val); ok {
sanitize.go#L342: htmlAttr.Val = u
sanitize.go#L369: u, err := url.Parse(htmlAttr.Val)
sanitize.go#L399: if strings.Contains(htmlAttr.Val, "nofollow") {
sanitize.go#L404: htmlAttr.Val += " nofollow"
sanitize.go#L412: if htmlAttr.Val == "_blank" {
sanitize.go#L416: htmlAttr.Val = "_blank"
sanitize.go#L434: rel.Val = "nofollow"
sanitize.go#L441: rel.Val = "_blank"
sanitize.go#L468: if strings.Contains(htmlAttr.Val, "noopener") {
sanitize.go#L472: htmlAttr.Val += " noopener"
sanitize.go#L490: rel.Val = "noopener"
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |