node

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented      = errors.New("Browser not implemented Node")
	ErrNotANode            = errors.New("Object is not a Node")
	ErrNodeNoChilds        = errors.New("Node has no childs")
	ErrNodeNoParent        = errors.New("Node has no parent")
	ErrNodeNoParentElement = errors.New("Node has no parent element")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface

Types

type Node

type Node struct {
	eventtarget.EventTarget
}

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Node, error)

func (Node) AppendChild

func (n Node) AppendChild(add Node) error

func (Node) BaseURI

func (n Node) BaseURI() (string, error)

func (Node) CloneNode

func (n Node) CloneNode(deep bool) (Node, error)

func (Node) CompareDocumentPosition

func (n Node) CompareDocumentPosition(node Node) (int, error)

func (Node) Contains

func (n Node) Contains(node Node) (bool, error)

func (Node) FirstChild

func (n Node) FirstChild() (Node, error)

func (Node) GetRootNode

func (n Node) GetRootNode() (Node, error)

func (Node) HasChildNodes

func (n Node) HasChildNodes() (bool, error)

func (Node) InsertBefore

func (n Node) InsertBefore(elem, before Node) (Node, error)

func (Node) IsConnected

func (n Node) IsConnected() (bool, error)

func (*Node) IsDefaultNamespace

func (n *Node) IsDefaultNamespace() (bool, error)

func (*Node) IsEqualNode

func (n *Node) IsEqualNode(n1 Node) (bool, error)

func (*Node) IsSameNode

func (n *Node) IsSameNode(n1 Node) (bool, error)

func (Node) LastChild

func (n Node) LastChild() (Node, error)

func (*Node) LookupNamespaceURI

func (n *Node) LookupNamespaceURI(prefix string) error

func (*Node) LookupPrefix

func (n *Node) LookupPrefix() (string, error)

func (Node) NextSibling

func (n Node) NextSibling() (Node, error)

func (Node) Node

func (n Node) Node() Node

func (Node) NodeName

func (n Node) NodeName() (string, error)

func (Node) NodeType

func (n Node) NodeType() (int, error)

func (Node) NodeValue

func (n Node) NodeValue() (Node, error)

func (*Node) Normalize

func (n *Node) Normalize() error

func (Node) OwnerDocument

func (n Node) OwnerDocument() (Node, error)

func (Node) ParentElement

func (n Node) ParentElement() (Node, error)

func (Node) ParentNode

func (n Node) ParentNode() (Node, error)

func (Node) PreviousSibling

func (n Node) PreviousSibling() (Node, error)

func (Node) RemoveChild

func (n Node) RemoveChild(node Node) (Node, error)

func (Node) ReplaceChild

func (n Node) ReplaceChild(new, old Node) (Node, error)

func (Node) SetNodeValue

func (n Node) SetNodeValue(nset Node) error

func (Node) SetTextContent

func (n Node) SetTextContent(content string) error

func (Node) TextContent

func (n Node) TextContent() (string, error)

type NodeFrom

type NodeFrom interface {
	Node() Node
}

Jump to

Keyboard shortcuts

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