github.com/google/safehtml/template.context.element (field)
41 uses
github.com/google/safehtml/template (current package)
context.go#L21: element element
context.go#L45: c.element.eq(d.element) &&
escape.go#L313: a.element.names = joinNames(a.element.name, b.element.name, a.element.names, b.element.names)
escape.go#L324: c.element.name = b.element.name
escape.go#L470: if c.element.name != "" {
escape.go#L471: s += "_" + c.element.String()
escape.go#L599: sc, err := sanitizationContextForElementContent(c.element.name)
escape.go#L620: if c.state == stateSpecialElementBody && c.element.name == "script" {
escape.go#L706: element: c.element,
escape.go#L711: if c.state == stateAttr && c.element.name == "script" && c.attr.name == "type" {
escape.go#L715: if c.state == stateAttr && c.element.name == "link" && c.attr.name == "rel" {
sanitize.go#L22: if len(c.element.names) == 0 && c.element.name == "" && c.state == stateText {
sanitize.go#L55: if len(c.element.names) == 0 {
sanitize.go#L56: elems = []string{c.element.name}
sanitize.go#L58: elems = c.element.names
sanitize.go#L88: return nil, fmt.Errorf("partial substitutions are disallowed in the %q attribute value context of a %q element", c.attr.name, c.element.name)
sanitize.go#L92: return nil, fmt.Errorf("action cannot be interpolated into the %q attribute value of this %q element: %s", c.attr.name, c.element.name, err)
sanitize.go#L113: return nil, fmt.Errorf("actions must not occur after an ambiguous URL prefix in the %q attribute value context of a %q element", c.attr.name, c.element.name)
sanitize.go#L120: return nil, fmt.Errorf("action cannot be interpolated into the %q URL attribute value of this %q element: %s", c.attr.name, c.element.name, err)
sanitize.go#L206: if len(c.element.names) == 0 {
sanitize.go#L207: elems = []string{c.element.name}
sanitize.go#L209: elems = c.element.names
transition.go#L55: ret.element = e
transition.go#L102: element: c.element,
transition.go#L106: if specialElements[c.element.name] {
transition.go#L109: if c.element.name != "" && voidElements[c.element.name] {
transition.go#L112: ret.element = element{}
transition.go#L137: element: c.element,
transition.go#L205: if specialElements[c.element.name] {
transition.go#L206: if i := indexTagEnd(s, []byte(c.element.name)); i != -1 {
 |
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. |