Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotAnElement = errors.New("Not a valid element")
)

Functions

This section is empty.

Types

type DomElement

type DomElement interface {
	GetTextContent() string
}

type Element

type Element html.Node

func (Element) GetAttribute

func (e Element) GetAttribute(attr string) string

func (Element) GetTextContent

func (e Element) GetTextContent() string
func (e Element) IsLink() bool

func (Element) OnClick

func (e Element) OnClick()

type TextElement

type TextElement struct {
	TextContent string
}

    A TextElement is a renderable TextNode from an HTML document.

    func (TextElement) GetTextContent

    func (e TextElement) GetTextContent() string