Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Nodes = map[atom.Atom]Node{ atom.A: { Attributes: []string{href}, }, atom.Area: { Attributes: []string{href}, }, atom.Base: { Attributes: []string{href}, }, atom.Audio: { Attributes: []string{src}, }, atom.Body: { Attributes: []string{background}, }, atom.Embed: { Attributes: []string{src}, }, atom.Iframe: { Attributes: []string{src}, }, atom.Img: { Attributes: []string{src, dataSrc, srcSet, dataSrcSet}, // contains filtered or unexported fields }, atom.Input: { Attributes: []string{src}, }, atom.Link: { Attributes: []string{href}, }, atom.Object: { Attributes: []string{data}, }, atom.Script: { Attributes: []string{src}, }, atom.Source: { Attributes: []string{src}, }, atom.Video: { Attributes: []string{poster}, }, }
Nodes describes the HTML tags and their attributes that can contain URL. See https://html.spec.whatwg.org/multipage/indices.html#attributes-3 and https://html.spec.whatwg.org/multipage/indices.html#elements-3 Not yet present: style attribute can contain CSS links
View Source
var SrcSetAttributes = map[string]struct{}{ // contains filtered or unexported fields }
SrcSetAttributes contains the attributes that contain srcset values.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.