node

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

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 Get the js node interface

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(namespace string) (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(prefix string) (string, error)

func (Node) NextSibling

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

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() (interface{}, error)

func (Node) Node_

func (n Node) Node_() Node

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(i interface{}) error

func (Node) SetTextContent

func (n Node) SetTextContent(content string) error

func (Node) TextContent

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

func (Node) TextContent_

func (n Node) TextContent_() string

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