document

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCSSForUrls

func CheckCSSForUrls(cssURL *url.URL, startURLHost string, data []byte) ([]byte, work.Refs)

Types

type HTMLDocument

type HTMLDocument struct {
	// contains filtered or unexported fields
}

func ParseHTML

func ParseHTML(u, startURL *url.URL, rdr io.Reader) (*HTMLDocument, error)

func (*HTMLDocument) FindReferences

func (d *HTMLDocument) FindReferences() (work.Refs, error)

func (*HTMLDocument) FixURLReferences

func (d *HTMLDocument) FixURLReferences() ([]byte, bool, error)

FixURLReferences fixes URL references to point to relative file names. It returns a bool that indicates that no reference needed to be fixed, in this case the returned HTML string will be empty.

type SVGDocument

type SVGDocument struct {
	etree.Document
	// contains filtered or unexported fields
}

func ParseSVG

func ParseSVG(u, startURL *url.URL, rdr io.Reader) (*SVGDocument, error)

func (*SVGDocument) FixURLReferences

func (d *SVGDocument) FixURLReferences() ([]byte, bool, work.Refs, error)

FixURLReferences fixes URL references to point to relative file names. It returns a bool that indicates that no reference needed to be fixed, in this case the returned HTML string will be empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL