document

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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) 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