document

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: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Document")
	//ErrNotADocument ErrNotADocument
	ErrNotADocument     = errors.New("The given value must be a document")
	ErrElementNotFound  = errors.New("Element not Found")
	ErrElementsNotFound = errors.New("Elements not Found")
)

Functions

func GetInterface

func GetInterface() js.Value

Types

type Document

type Document struct {
	node.Node
}

func New

func New() (Document, error)

func NewFromJSObject

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

func New_

func New_() Document

func (Document) ActiveElement

func (d Document) ActiveElement() (element.Element, error)

func (Document) AdoptNode

func (d Document) AdoptNode(externalNode node.Node) (interface{}, error)

func (Document) Append

func (d Document) Append(i interface{}) error

func (Document) Body

func (d Document) Body() (htmlelement.HtmlElement, error)

func (Document) Body_

func (d Document) Body_() htmlelement.HtmlElement

func (Document) CharacterSet

func (d Document) CharacterSet() (string, error)

func (Document) ChildElementCount

func (d Document) ChildElementCount() (int, error)

func (Document) Children

func (d Document) Children() (htmlcollection.HtmlCollection, error)

func (Document) Close

func (d Document) Close() error

Close Closer interface

func (Document) CompatMode

func (d Document) CompatMode() (string, error)

func (Document) ContentType

func (d Document) ContentType() (string, error)

func (Document) Cookie

func (d Document) Cookie() (string, error)

func (Document) CreateAttribute

func (d Document) CreateAttribute(name string) (attr.Attr, error)

func (Document) CreateComment

func (d Document) CreateComment(comment string) (node.Node, error)

func (Document) CreateDocumentFragment

func (d Document) CreateDocumentFragment() (node.Node, error)

func (Document) CreateElement

func (d Document) CreateElement(tagname string) (element.Element, error)

func (Document) CreateElementNS

func (d Document) CreateElementNS(namespaceURI string, qualifiedName string) (element.Element, error)

func (Document) CreateEvent

func (d Document) CreateEvent(eventtype string) (event.Event, error)

func (Document) CreateHTMLElement

func (d Document) CreateHTMLElement(tagname string) (htmlelement.HtmlElement, error)

func (Document) CreateTextNode

func (d Document) CreateTextNode(text string) (node.Node, error)

func (*Document) Doctype

func (d *Document) Doctype()

func (Document) DocumentElement

func (d Document) DocumentElement() (element.Element, error)

func (*Document) DocumentURI

func (d *Document) DocumentURI() (string, error)

func (Document) Document_

func (d Document) Document_() Document

func (Document) Domain

func (d Document) Domain() (string, error)

func (Document) ElementFromPoint

func (d Document) ElementFromPoint(x, y int) (element.Element, error)

func (Document) ElementsFromPoint

func (d Document) ElementsFromPoint(x, y int) ([]element.Element, error)

func (Document) Embeds

func (Document) ExitPointerLock

func (d Document) ExitPointerLock() error

func (Document) FirstElementChild

func (d Document) FirstElementChild() (element.Element, error)

func (Document) Fonts

func (d Document) Fonts()

func (Document) Forms

func (Document) FullscreenElement

func (d Document) FullscreenElement() (element.Element, error)

func (Document) GetElementById

func (d Document) GetElementById(id string) (element.Element, error)

func (Document) GetElementsByClassName

func (d Document) GetElementsByClassName(classname string) (htmlcollection.HtmlCollection, error)

func (Document) GetElementsByName

func (d Document) GetElementsByName(name string) (nodelist.NodeList, error)

func (Document) GetElementsByTagName

func (d Document) GetElementsByTagName(tagname string) (htmlcollection.HtmlCollection, error)

func (Document) GetElementsByTagNameNS

func (d Document) GetElementsByTagNameNS(namespace, tagname string) (htmlcollection.HtmlCollection, error)

func (Document) HasFocus

func (d Document) HasFocus() (bool, error)

func (Document) Head

func (d Document) Head() (element.Element, error)

func (Document) Hidden

func (d Document) Hidden() (bool, error)

func (Document) Images

func (Document) Implementation

func (d Document) Implementation()

func (Document) ImportNode

func (d Document) ImportNode(externalNode node.Node, deep bool) (interface{}, error)

func (Document) LastElementChild

func (d Document) LastElementChild() (element.Element, error)

func (Document) LastModified

func (d Document) LastModified() (string, error)

func (Document) OnCopy added in v1.4.0

func (d Document) OnCopy(handler func(e event.Event)) (js.Func, error)

func (Document) OnCut added in v1.4.0

func (d Document) OnCut(handler func(e event.Event)) (js.Func, error)

func (Document) OnDrag added in v1.4.0

func (d Document) OnDrag(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnDragEnd added in v1.4.0

func (d Document) OnDragEnd(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnDragEnter added in v1.4.0

func (d Document) OnDragEnter(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnDragLeave added in v1.4.0

func (d Document) OnDragLeave(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnDragOver added in v1.4.0

func (d Document) OnDragOver(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnDragStart added in v1.4.0

func (d Document) OnDragStart(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnDrop added in v1.4.0

func (d Document) OnDrop(handler func(e dragevent.DragEvent)) (js.Func, error)

func (Document) OnPaste added in v1.4.0

func (d Document) OnPaste(handler func(e event.Event)) (js.Func, error)

func (Document) OnScroll added in v1.4.0

func (d Document) OnScroll(handler func(e event.Event)) (js.Func, error)

func (Document) OnTouchCancel added in v1.4.0

func (d Document) OnTouchCancel(handler func(e event.Event)) (js.Func, error)

func (Document) OnTouchEnd added in v1.4.0

func (d Document) OnTouchEnd(handler func(e event.Event)) (js.Func, error)

func (Document) OnTouchMove added in v1.4.0

func (d Document) OnTouchMove(handler func(e event.Event)) (js.Func, error)

func (Document) OnTouchStart added in v1.4.0

func (d Document) OnTouchStart(handler func(e event.Event)) (js.Func, error)

func (Document) Open

func (d Document) Open() error

Close Closer interface

func (Document) PictureInPictureElement

func (d Document) PictureInPictureElement() (element.Element, error)

func (Document) PictureInPictureEnabled

func (d Document) PictureInPictureEnabled() (bool, error)

func (Document) Plugins

func (Document) PointerLockElement

func (d Document) PointerLockElement() (element.Element, error)

func (Document) QuerySelector

func (d Document) QuerySelector(selector string) (element.Element, error)

func (Document) QuerySelectorAll

func (d Document) QuerySelectorAll(selector string) (nodelist.NodeList, error)

func (Document) QuerySelectorAll_

func (d Document) QuerySelectorAll_(selector string) nodelist.NodeList

func (Document) ReadyState

func (d Document) ReadyState() (string, error)

func (Document) Referrer

func (d Document) Referrer() (string, error)

func (Document) ReleaseCapture

func (d Document) ReleaseCapture() error

func (Document) Scripts

func (Document) ScrollingElement

func (d Document) ScrollingElement() (element.Element, error)

func (Document) SetCookie

func (d Document) SetCookie(cookie string) error

func (Document) SetDomain

func (d Document) SetDomain(domain string) error

func (Document) SetTitle

func (d Document) SetTitle(title string) error

func (Document) Title

func (d Document) Title() (string, error)

func (Document) URL

func (d Document) URL() (string, error)

func (Document) VisibilityState

func (d Document) VisibilityState() (string, error)

func (Document) Write

func (d Document) Write(p []byte) (n int, err error)

Write Writer interface

func (Document) Writeln

func (d Document) Writeln(text string) error

type DocumentFrom

type DocumentFrom interface {
	Document_() Document
}

Jump to

Keyboard shortcuts

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