Versions in this module Expand all Collapse all v1 v1.5.1 Sep 14, 2024 v1.5.0 Sep 11, 2024 Changes in this version + var ErrElementNotFound = errors.New("Element not Found") + var ErrElementsNotFound = errors.New("Elements not Found") + var ErrNotADocument = errors.New("The given value must be a document") + var ErrNotImplemented = errors.New("Browser not implemented Document") + func GetInterface() js.Value + type Document struct + func New() (Document, error) + func NewFromJSObject(obj js.Value) (Document, error) + func New_() Document + func (d *Document) Doctype() + func (d *Document) DocumentURI() (string, error) + func (d Document) ActiveElement() (element.Element, error) + func (d Document) AdoptNode(externalNode node.Node) (interface{}, error) + func (d Document) Append(i interface{}) error + func (d Document) Body() (htmlelement.HtmlElement, error) + func (d Document) Body_() htmlelement.HtmlElement + func (d Document) CharacterSet() (string, error) + func (d Document) ChildElementCount() (int, error) + func (d Document) Children() (htmlcollection.HtmlCollection, error) + func (d Document) Close() error + func (d Document) CompatMode() (string, error) + func (d Document) ContentType() (string, error) + func (d Document) Cookie() (string, error) + func (d Document) CreateAttribute(name string) (attr.Attr, error) + func (d Document) CreateComment(comment string) (node.Node, error) + func (d Document) CreateDocumentFragment() (node.Node, error) + func (d Document) CreateElement(tagname string) (element.Element, error) + func (d Document) CreateElementNS(namespaceURI string, qualifiedName string) (element.Element, error) + func (d Document) CreateEvent(eventtype string) (event.Event, error) + func (d Document) CreateHTMLElement(tagname string) (htmlelement.HtmlElement, error) + func (d Document) CreateTextNode(text string) (node.Node, error) + func (d Document) DocumentElement() (element.Element, error) + func (d Document) Document_() Document + func (d Document) Domain() (string, error) + func (d Document) ElementFromPoint(x, y int) (element.Element, error) + func (d Document) ElementsFromPoint(x, y int) ([]element.Element, error) + func (d Document) Embeds() (htmlcollection.HtmlCollection, error) + func (d Document) ExitPointerLock() error + func (d Document) FirstElementChild() (element.Element, error) + func (d Document) Fonts() + func (d Document) Forms() (htmlcollection.HtmlCollection, error) + func (d Document) FullscreenElement() (element.Element, error) + func (d Document) GetElementById(id string) (element.Element, error) + func (d Document) GetElementsByClassName(classname string) (htmlcollection.HtmlCollection, error) + func (d Document) GetElementsByName(name string) (nodelist.NodeList, error) + func (d Document) GetElementsByTagName(tagname string) (htmlcollection.HtmlCollection, error) + func (d Document) GetElementsByTagNameNS(namespace, tagname string) (htmlcollection.HtmlCollection, error) + func (d Document) HasFocus() (bool, error) + func (d Document) Head() (element.Element, error) + func (d Document) Hidden() (bool, error) + func (d Document) Images() (htmlcollection.HtmlCollection, error) + func (d Document) Implementation() + func (d Document) ImportNode(externalNode node.Node, deep bool) (interface{}, error) + func (d Document) LastElementChild() (element.Element, error) + func (d Document) LastModified() (string, error) + func (d Document) Links() (htmlcollection.HtmlCollection, error) + func (d Document) OnCopy(handler func(e event.Event)) (js.Func, error) + func (d Document) OnCut(handler func(e event.Event)) (js.Func, error) + func (d Document) OnDrag(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnDragEnd(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnDragEnter(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnDragLeave(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnDragOver(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnDragStart(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnDrop(handler func(e dragevent.DragEvent)) (js.Func, error) + func (d Document) OnPaste(handler func(e event.Event)) (js.Func, error) + func (d Document) OnScroll(handler func(e event.Event)) (js.Func, error) + func (d Document) OnTouchCancel(handler func(e event.Event)) (js.Func, error) + func (d Document) OnTouchEnd(handler func(e event.Event)) (js.Func, error) + func (d Document) OnTouchMove(handler func(e event.Event)) (js.Func, error) + func (d Document) OnTouchStart(handler func(e event.Event)) (js.Func, error) + func (d Document) Open() error + func (d Document) PictureInPictureElement() (element.Element, error) + func (d Document) PictureInPictureEnabled() (bool, error) + func (d Document) Plugins() (htmlcollection.HtmlCollection, error) + func (d Document) PointerLockElement() (element.Element, error) + func (d Document) QuerySelector(selector string) (element.Element, error) + func (d Document) QuerySelectorAll(selector string) (nodelist.NodeList, error) + func (d Document) QuerySelectorAll_(selector string) nodelist.NodeList + func (d Document) ReadyState() (string, error) + func (d Document) Referrer() (string, error) + func (d Document) ReleaseCapture() error + func (d Document) Scripts() (htmlcollection.HtmlCollection, error) + func (d Document) ScrollingElement() (element.Element, error) + func (d Document) SetCookie(cookie string) error + func (d Document) SetDomain(domain string) error + func (d Document) SetTitle(title string) error + func (d Document) Title() (string, error) + func (d Document) URL() (string, error) + func (d Document) VisibilityState() (string, error) + func (d Document) Write(p []byte) (n int, err error) + func (d Document) Writeln(text string) error + type DocumentFrom interface + Document_ func() Document