jsdom

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: 2 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDOM

func NewDOM(val js.Value) vdom.DOMNode

Create a new DOMNode from a JavaScript Node object

Types

type DOM

type DOM struct{ js.Value }

func (DOM) AppendChild

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

func (DOM) CreateElement

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

func (DOM) CreateText

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

func (DOM) DelAttr

func (node DOM) DelAttr(attr string)

func (DOM) FirstChild

func (node DOM) FirstChild() vdom.DOMNode

func (DOM) InsertBefore

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

func (DOM) NextSibling

func (node DOM) NextSibling() vdom.DOMNode

func (DOM) RemoveChild

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

func (DOM) Replace

func (node DOM) Replace(newNode vdom.DOMNode) vdom.DOMNode

func (DOM) SetAttr

func (node DOM) SetAttr(attr, value string)

func (DOM) SetText

func (node DOM) SetText(text string)

Jump to

Keyboard shortcuts

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