dom

package
v0.0.0-...-0b4b87a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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