htmldom

package
v0.0.0-...-4db39de Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOM

type DOM struct{ *html.Node }

func New

func New(node *html.Node) DOM

func (DOM) AppendChild

func (dom DOM) AppendChild(child vdom.DOMNode)

Implement DOMNode

func (DOM) CreateElement

func (dom DOM) CreateElement(name string) vdom.DOMNode

Implement DOMNode

func (DOM) CreateText

func (dom DOM) CreateText(text string) vdom.DOMNode

Implement DOMNode

func (DOM) DelAttr

func (dom DOM) DelAttr(key string)

Implement DOMNode

func (DOM) FirstChild

func (dom DOM) FirstChild() vdom.DOMNode

Implement DOMNode

func (DOM) InsertBefore

func (dom DOM) InsertBefore(newChild, oldChild vdom.DOMNode)

Implement DOMNode

func (DOM) NextSibling

func (dom DOM) NextSibling() vdom.DOMNode

Implement DOMNode

func (DOM) RemoveChild

func (dom DOM) RemoveChild(child vdom.DOMNode)

Implement DOMNode

func (DOM) Replace

func (dom DOM) Replace(newDOM vdom.DOMNode) vdom.DOMNode

Implement DOMNode

func (DOM) SetAttr

func (dom DOM) SetAttr(key, value string)

Implement DOMNode

func (DOM) SetText

func (dom DOM) SetText(text string)

Implement DOMNode

Jump to

Keyboard shortcuts

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