|
|
// Code generated DO NOT EDIT
|
|
|
// document.go
|
|
|
package dom
|
|
|
|
|
|
import "syscall/js"
|
|
|
|
|
|
type DocumentIFace interface {
|
|
|
GetActiveElement() Element
|
|
|
AddEventListener(args ...interface{})
|
|
|
AdoptNode(args ...interface{}) Node
|
|
|
GetAlinkColor() string
|
|
|
SetAlinkColor(string)
|
|
|
GetAll() HTMLAllCollection
|
|
|
GetAnchors() HTMLCollection
|
|
|
Append(args ...interface{})
|
|
|
AppendChild(args ...interface{}) Node
|
|
|
GetApplets() HTMLCollection
|
|
|
GetBaseURI() string
|
|
|
GetBgColor() string
|
|
|
SetBgColor(string)
|
|
|
GetBody() HTMLElement
|
|
|
SetBody(HTMLElement)
|
|
|
CaptureEvents(args ...interface{})
|
|
|
GetCharacterSet() string
|
|
|
GetCharset() string
|
|
|
GetChildElementCount() int
|
|
|
GetChildNodes() NodeList
|
|
|
GetChildren() HTMLCollection
|
|
|
Clear(args ...interface{})
|
|
|
CloneNode(args ...interface{}) Node
|
|
|
Close(args ...interface{})
|
|
|
CompareDocumentPosition(args ...interface{}) int
|
|
|
GetCompatMode() string
|
|
|
Contains(args ...interface{}) bool
|
|
|
GetContentType() string
|
|
|
GetCookie() string
|
|
|
SetCookie(string)
|
|
|
CreateAttribute(args ...interface{}) Attr
|
|
|
CreateAttributeNS(args ...interface{}) Attr
|
|
|
CreateCDATASection(args ...interface{}) CDATASection
|
|
|
CreateComment(args ...interface{}) Comment
|
|
|
CreateDocumentFragment(args ...interface{}) DocumentFragment
|
|
|
CreateElement(args ...interface{}) Element
|
|
|
CreateElementNS(args ...interface{}) Element
|
|
|
CreateEvent(args ...interface{}) Event
|
|
|
CreateNodeIterator(args ...interface{}) NodeIterator
|
|
|
CreateProcessingInstruction(args ...interface{}) ProcessingInstruction
|
|
|
CreateRange(args ...interface{}) Range
|
|
|
CreateTextNode(args ...interface{}) Text
|
|
|
CreateTreeWalker(args ...interface{}) TreeWalker
|
|
|
GetCurrentScript() HTMLOrSVGScriptElement
|
|
|
GetDefaultView() WindowProxy
|
|
|
GetDesignMode() string
|
|
|
SetDesignMode(string)
|
|
|
GetDir() string
|
|
|
SetDir(string)
|
|
|
DispatchEvent(args ...interface{}) bool
|
|
|
GetDoctype() DocumentType
|
|
|
GetDocumentElement() Element
|
|
|
GetDocumentURI() string
|
|
|
GetDomain() string
|
|
|
SetDomain(string)
|
|
|
GetEmbeds() HTMLCollection
|
|
|
ExecCommand(args ...interface{}) bool
|
|
|
GetFgColor() string
|
|
|
SetFgColor(string)
|
|
|
GetFirstChild() Node
|
|
|
GetFirstElementChild() Element
|
|
|
GetForms() HTMLCollection
|
|
|
GetElementById(args ...interface{}) Element
|
|
|
GetElementsByClassName(args ...interface{}) HTMLCollection
|
|
|
GetElementsByName(args ...interface{}) NodeList
|
|
|
GetElementsByTagName(args ...interface{}) HTMLCollection
|
|
|
GetElementsByTagNameNS(args ...interface{}) HTMLCollection
|
|
|
GetRootNode(args ...interface{}) Node
|
|
|
HasChildNodes(args ...interface{}) bool
|
|
|
HasFocus(args ...interface{}) bool
|
|
|
GetHead() HTMLHeadElement
|
|
|
GetImages() HTMLCollection
|
|
|
GetImplementation() DOMImplementation
|
|
|
ImportNode(args ...interface{}) Node
|
|
|
GetInputEncoding() string
|
|
|
InsertBefore(args ...interface{}) Node
|
|
|
GetIsConnected() bool
|
|
|
IsDefaultNamespace(args ...interface{}) bool
|
|
|
IsEqualNode(args ...interface{}) bool
|
|
|
IsSameNode(args ...interface{}) bool
|
|
|
GetLastChild() Node
|
|
|
GetLastElementChild() Element
|
|
|
GetLastModified() string
|
|
|
GetLinkColor() string
|
|
|
SetLinkColor(string)
|
|
|
GetLinks() HTMLCollection
|
|
|
GetLocation() Location
|
|
|
LookupNamespaceURI(args ...interface{}) string
|
|
|
LookupPrefix(args ...interface{}) string
|
|
|
GetNextSibling() Node
|
|
|
GetNodeName() string
|
|
|
GetNodeType() int
|
|
|
GetNodeValue() string
|
|
|
SetNodeValue(string)
|
|
|
Normalize(args ...interface{})
|
|
|
GetOnabort() EventHandler
|
|
|
SetOnabort(EventHandler)
|
|
|
GetOnauxclick() EventHandler
|
|
|
SetOnauxclick(EventHandler)
|
|
|
GetOnblur() EventHandler
|
|
|
SetOnblur(EventHandler)
|
|
|
GetOncancel() EventHandler
|
|
|
SetOncancel(EventHandler)
|
|
|
GetOncanplay() EventHandler
|
|
|
SetOncanplay(EventHandler)
|
|
|
GetOncanplaythrough() EventHandler
|
|
|
SetOncanplaythrough(EventHandler)
|
|
|
GetOnchange() EventHandler
|
|
|
SetOnchange(EventHandler)
|
|
|
GetOnclick() EventHandler
|
|
|
SetOnclick(EventHandler)
|
|
|
GetOnclose() EventHandler
|
|
|
SetOnclose(EventHandler)
|
|
|
GetOncontextmenu() EventHandler
|
|
|
SetOncontextmenu(EventHandler)
|
|
|
GetOncopy() EventHandler
|
|
|
SetOncopy(EventHandler)
|
|
|
GetOncuechange() EventHandler
|
|
|
SetOncuechange(EventHandler)
|
|
|
GetOncut() EventHandler
|
|
|
SetOncut(EventHandler)
|
|
|
GetOndblclick() EventHandler
|
|
|
SetOndblclick(EventHandler)
|
|
|
GetOndrag() EventHandler
|
|
|
SetOndrag(EventHandler)
|
|
|
GetOndragend() EventHandler
|
|
|
SetOndragend(EventHandler)
|
|
|
GetOndragenter() EventHandler
|
|
|
SetOndragenter(EventHandler)
|
|
|
GetOndragexit() EventHandler
|
|
|
SetOndragexit(EventHandler)
|
|
|
GetOndragleave() EventHandler
|
|
|
SetOndragleave(EventHandler)
|
|
|
GetOndragover() EventHandler
|
|
|
SetOndragover(EventHandler)
|
|
|
GetOndragstart() EventHandler
|
|
|
SetOndragstart(EventHandler)
|
|
|
GetOndrop() EventHandler
|
|
|
SetOndrop(EventHandler)
|
|
|
GetOndurationchange() EventHandler
|
|
|
SetOndurationchange(EventHandler)
|
|
|
GetOnemptied() EventHandler
|
|
|
SetOnemptied(EventHandler)
|
|
|
GetOnended() EventHandler
|
|
|
SetOnended(EventHandler)
|
|
|
GetOnerror() OnErrorEventHandler
|
|
|
SetOnerror(OnErrorEventHandler)
|
|
|
GetOnfocus() EventHandler
|
|
|
SetOnfocus(EventHandler)
|
|
|
GetOninput() EventHandler
|
|
|
SetOninput(EventHandler)
|
|
|
GetOninvalid() EventHandler
|
|
|
SetOninvalid(EventHandler)
|
|
|
GetOnkeydown() EventHandler
|
|
|
SetOnkeydown(EventHandler)
|
|
|
GetOnkeypress() EventHandler
|
|
|
SetOnkeypress(EventHandler)
|
|
|
GetOnkeyup() EventHandler
|
|
|
SetOnkeyup(EventHandler)
|
|
|
GetOnload() EventHandler
|
|
|
SetOnload(EventHandler)
|
|
|
GetOnloadeddata() EventHandler
|
|
|
SetOnloadeddata(EventHandler)
|
|
|
GetOnloadedmetadata() EventHandler
|
|
|
SetOnloadedmetadata(EventHandler)
|
|
|
GetOnloadend() EventHandler
|
|
|
SetOnloadend(EventHandler)
|
|
|
GetOnloadstart() EventHandler
|
|
|
SetOnloadstart(EventHandler)
|
|
|
GetOnmousedown() EventHandler
|
|
|
SetOnmousedown(EventHandler)
|
|
|
GetOnmouseenter() EventHandler
|
|
|
SetOnmouseenter(EventHandler)
|
|
|
GetOnmouseleave() EventHandler
|
|
|
SetOnmouseleave(EventHandler)
|
|
|
GetOnmousemove() EventHandler
|
|
|
SetOnmousemove(EventHandler)
|
|
|
GetOnmouseout() EventHandler
|
|
|
SetOnmouseout(EventHandler)
|
|
|
GetOnmouseover() EventHandler
|
|
|
SetOnmouseover(EventHandler)
|
|
|
GetOnmouseup() EventHandler
|
|
|
SetOnmouseup(EventHandler)
|
|
|
GetOnpaste() EventHandler
|
|
|
SetOnpaste(EventHandler)
|
|
|
GetOnpause() EventHandler
|
|
|
SetOnpause(EventHandler)
|
|
|
GetOnplay() EventHandler
|
|
|
SetOnplay(EventHandler)
|
|
|
GetOnplaying() EventHandler
|
|
|
SetOnplaying(EventHandler)
|
|
|
GetOnprogress() EventHandler
|
|
|
SetOnprogress(EventHandler)
|
|
|
GetOnratechange() EventHandler
|
|
|
SetOnratechange(EventHandler)
|
|
|
GetOnreadystatechange() EventHandler
|
|
|
SetOnreadystatechange(EventHandler)
|
|
|
GetOnreset() EventHandler
|
|
|
SetOnreset(EventHandler)
|
|
|
GetOnresize() EventHandler
|
|
|
SetOnresize(EventHandler)
|
|
|
GetOnscroll() EventHandler
|
|
|
SetOnscroll(EventHandler)
|
|
|
GetOnsecuritypolicyviolation() EventHandler
|
|
|
SetOnsecuritypolicyviolation(EventHandler)
|
|
|
GetOnseeked() EventHandler
|
|
|
SetOnseeked(EventHandler)
|
|
|
GetOnseeking() EventHandler
|
|
|
SetOnseeking(EventHandler)
|
|
|
GetOnselect() EventHandler
|
|
|
SetOnselect(EventHandler)
|
|
|
GetOnstalled() EventHandler
|
|
|
SetOnstalled(EventHandler)
|
|
|
GetOnsubmit() EventHandler
|
|
|
SetOnsubmit(EventHandler)
|
|
|
GetOnsuspend() EventHandler
|
|
|
SetOnsuspend(EventHandler)
|
|
|
GetOntimeupdate() EventHandler
|
|
|
SetOntimeupdate(EventHandler)
|
|
|
GetOntoggle() EventHandler
|
|
|
SetOntoggle(EventHandler)
|
|
|
GetOnvolumechange() EventHandler
|
|
|
SetOnvolumechange(EventHandler)
|
|
|
GetOnwaiting() EventHandler
|
|
|
SetOnwaiting(EventHandler)
|
|
|
GetOnwheel() EventHandler
|
|
|
SetOnwheel(EventHandler)
|
|
|
Open(args ...interface{}) Document
|
|
|
OpenWithArgs(args ...interface{}) WindowProxy
|
|
|
GetOrigin() string
|
|
|
GetOwnerDocument() Document
|
|
|
GetParentElement() Element
|
|
|
GetParentNode() Node
|
|
|
GetPlugins() HTMLCollection
|
|
|
Prepend(args ...interface{})
|
|
|
GetPreviousSibling() Node
|
|
|
QueryCommandEnabled(args ...interface{}) bool
|
|
|
QueryCommandIndeterm(args ...interface{}) bool
|
|
|
QueryCommandState(args ...interface{}) bool
|
|
|
QueryCommandSupported(args ...interface{}) bool
|
|
|
QueryCommandValue(args ...interface{}) string
|
|
|
QuerySelector(args ...interface{}) Element
|
|
|
QuerySelectorAll(args ...interface{}) NodeList
|
|
|
GetReadyState() DocumentReadyState
|
|
|
GetReferrer() string
|
|
|
ReleaseEvents(args ...interface{})
|
|
|
RemoveChild(args ...interface{}) Node
|
|
|
RemoveEventListener(args ...interface{})
|
|
|
ReplaceChild(args ...interface{}) Node
|
|
|
GetScripts() HTMLCollection
|
|
|
GetStyleSheets() StyleSheetList
|
|
|
GetTextContent() string
|
|
|
SetTextContent(string)
|
|
|
GetTitle() string
|
|
|
SetTitle(string)
|
|
|
GetURL() string
|
|
|
GetVlinkColor() string
|
|
|
SetVlinkColor(string)
|
|
|
Write(args ...interface{})
|
|
|
Writeln(args ...interface{})
|
|
|
}
|
|
|
type Document struct {
|
|
|
Value
|
|
|
}
|
|
|
|
|
|
func JSValueToDocument(val js.Value) Document { return Document{Value: JSValueToValue(val)} }
|
|
|
func (v Value) AsDocument() Document { return Document{Value: v} }
|
|
|
func NewDocument(args ...interface{}) Document {
|
|
|
return Document{Value: JSValueToValue(js.Global().Get("Document").New(args...))}
|
|
|
}
|
|
|
func (d Document) GetActiveElement() Element {
|
|
|
val := d.Get("activeElement")
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) AddEventListener(args ...interface{}) {
|
|
|
d.Call("addEventListener", args...)
|
|
|
}
|
|
|
func (d Document) AdoptNode(args ...interface{}) Node {
|
|
|
val := d.Call("adoptNode", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetAlinkColor() string {
|
|
|
val := d.Get("alinkColor")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetAlinkColor(val string) {
|
|
|
d.Set("alinkColor", val)
|
|
|
}
|
|
|
func (d Document) GetAll() HTMLAllCollection {
|
|
|
val := d.Get("all")
|
|
|
return JSValueToHTMLAllCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetAnchors() HTMLCollection {
|
|
|
val := d.Get("anchors")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) Append(args ...interface{}) {
|
|
|
d.Call("append", args...)
|
|
|
}
|
|
|
func (d Document) AppendChild(args ...interface{}) Node {
|
|
|
val := d.Call("appendChild", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetApplets() HTMLCollection {
|
|
|
val := d.Get("applets")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetBaseURI() string {
|
|
|
val := d.Get("baseURI")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetBgColor() string {
|
|
|
val := d.Get("bgColor")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetBgColor(val string) {
|
|
|
d.Set("bgColor", val)
|
|
|
}
|
|
|
func (d Document) GetBody() HTMLElement {
|
|
|
val := d.Get("body")
|
|
|
return JSValueToHTMLElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetBody(val HTMLElement) {
|
|
|
d.Set("body", val)
|
|
|
}
|
|
|
func (d Document) CaptureEvents(args ...interface{}) {
|
|
|
d.Call("captureEvents", args...)
|
|
|
}
|
|
|
func (d Document) GetCharacterSet() string {
|
|
|
val := d.Get("characterSet")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetCharset() string {
|
|
|
val := d.Get("charset")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetChildElementCount() int {
|
|
|
val := d.Get("childElementCount")
|
|
|
return val.Int()
|
|
|
}
|
|
|
func (d Document) GetChildNodes() NodeList {
|
|
|
val := d.Get("childNodes")
|
|
|
return JSValueToNodeList(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetChildren() HTMLCollection {
|
|
|
val := d.Get("children")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) Clear(args ...interface{}) {
|
|
|
d.Call("clear", args...)
|
|
|
}
|
|
|
func (d Document) CloneNode(args ...interface{}) Node {
|
|
|
val := d.Call("cloneNode", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) Close(args ...interface{}) {
|
|
|
d.Call("close", args...)
|
|
|
}
|
|
|
func (d Document) CompareDocumentPosition(args ...interface{}) int {
|
|
|
val := d.Call("compareDocumentPosition", args...)
|
|
|
return val.Int()
|
|
|
}
|
|
|
func (d Document) GetCompatMode() string {
|
|
|
val := d.Get("compatMode")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) Contains(args ...interface{}) bool {
|
|
|
val := d.Call("contains", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) GetContentType() string {
|
|
|
val := d.Get("contentType")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetCookie() string {
|
|
|
val := d.Get("cookie")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetCookie(val string) {
|
|
|
d.Set("cookie", val)
|
|
|
}
|
|
|
func (d Document) CreateAttribute(args ...interface{}) Attr {
|
|
|
val := d.Call("createAttribute", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateAttributeNS(args ...interface{}) Attr {
|
|
|
val := d.Call("createAttributeNS", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateCDATASection(args ...interface{}) CDATASection {
|
|
|
val := d.Call("createCDATASection", args...)
|
|
|
return JSValueToCDATASection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateComment(args ...interface{}) Comment {
|
|
|
val := d.Call("createComment", args...)
|
|
|
return JSValueToComment(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateDocumentFragment(args ...interface{}) DocumentFragment {
|
|
|
val := d.Call("createDocumentFragment", args...)
|
|
|
return JSValueToDocumentFragment(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateElement(args ...interface{}) Element {
|
|
|
val := d.Call("createElement", args...)
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateElementNS(args ...interface{}) Element {
|
|
|
val := d.Call("createElementNS", args...)
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateEvent(args ...interface{}) Event {
|
|
|
val := d.Call("createEvent", args...)
|
|
|
return JSValueToEvent(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateNodeIterator(args ...interface{}) NodeIterator {
|
|
|
val := d.Call("createNodeIterator", args...)
|
|
|
return JSValueToNodeIterator(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateProcessingInstruction(args ...interface{}) ProcessingInstruction {
|
|
|
val := d.Call("createProcessingInstruction", args...)
|
|
|
return JSValueToProcessingInstruction(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateRange(args ...interface{}) Range {
|
|
|
val := d.Call("createRange", args...)
|
|
|
return JSValueToRange(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateTextNode(args ...interface{}) Text {
|
|
|
val := d.Call("createTextNode", args...)
|
|
|
return JSValueToText(val.JSValue())
|
|
|
}
|
|
|
func (d Document) CreateTreeWalker(args ...interface{}) TreeWalker {
|
|
|
val := d.Call("createTreeWalker", args...)
|
|
|
return JSValueToTreeWalker(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetCurrentScript() HTMLOrSVGScriptElement {
|
|
|
val := d.Get("currentScript")
|
|
|
return JSValueToHTMLOrSVGScriptElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetDefaultView() WindowProxy {
|
|
|
val := d.Get("defaultView")
|
|
|
return JSValueToWindowProxy(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetDesignMode() string {
|
|
|
val := d.Get("designMode")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetDesignMode(val string) {
|
|
|
d.Set("designMode", val)
|
|
|
}
|
|
|
func (d Document) GetDir() string {
|
|
|
val := d.Get("dir")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetDir(val string) {
|
|
|
d.Set("dir", val)
|
|
|
}
|
|
|
func (d Document) DispatchEvent(args ...interface{}) bool {
|
|
|
val := d.Call("dispatchEvent", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) GetDoctype() DocumentType {
|
|
|
val := d.Get("doctype")
|
|
|
return JSValueToDocumentType(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetDocumentElement() Element {
|
|
|
val := d.Get("documentElement")
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetDocumentURI() string {
|
|
|
val := d.Get("documentURI")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetDomain() string {
|
|
|
val := d.Get("domain")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetDomain(val string) {
|
|
|
d.Set("domain", val)
|
|
|
}
|
|
|
func (d Document) GetEmbeds() HTMLCollection {
|
|
|
val := d.Get("embeds")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) ExecCommand(args ...interface{}) bool {
|
|
|
val := d.Call("execCommand", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) GetFgColor() string {
|
|
|
val := d.Get("fgColor")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetFgColor(val string) {
|
|
|
d.Set("fgColor", val)
|
|
|
}
|
|
|
func (d Document) GetFirstChild() Node {
|
|
|
val := d.Get("firstChild")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetFirstElementChild() Element {
|
|
|
val := d.Get("firstElementChild")
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetForms() HTMLCollection {
|
|
|
val := d.Get("forms")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetElementById(args ...interface{}) Element {
|
|
|
val := d.Call("getElementById", args...)
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetElementsByClassName(args ...interface{}) HTMLCollection {
|
|
|
val := d.Call("getElementsByClassName", args...)
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetElementsByName(args ...interface{}) NodeList {
|
|
|
val := d.Call("getElementsByName", args...)
|
|
|
return JSValueToNodeList(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetElementsByTagName(args ...interface{}) HTMLCollection {
|
|
|
val := d.Call("getElementsByTagName", args...)
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetElementsByTagNameNS(args ...interface{}) HTMLCollection {
|
|
|
val := d.Call("getElementsByTagNameNS", args...)
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetRootNode(args ...interface{}) Node {
|
|
|
val := d.Call("getRootNode", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) HasChildNodes(args ...interface{}) bool {
|
|
|
val := d.Call("hasChildNodes", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) HasFocus(args ...interface{}) bool {
|
|
|
val := d.Call("hasFocus", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) GetHead() HTMLHeadElement {
|
|
|
val := d.Get("head")
|
|
|
return JSValueToHTMLHeadElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetImages() HTMLCollection {
|
|
|
val := d.Get("images")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetImplementation() DOMImplementation {
|
|
|
val := d.Get("implementation")
|
|
|
return JSValueToDOMImplementation(val.JSValue())
|
|
|
}
|
|
|
func (d Document) ImportNode(args ...interface{}) Node {
|
|
|
val := d.Call("importNode", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetInputEncoding() string {
|
|
|
val := d.Get("inputEncoding")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) InsertBefore(args ...interface{}) Node {
|
|
|
val := d.Call("insertBefore", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetIsConnected() bool {
|
|
|
val := d.Get("isConnected")
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) IsDefaultNamespace(args ...interface{}) bool {
|
|
|
val := d.Call("isDefaultNamespace", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) IsEqualNode(args ...interface{}) bool {
|
|
|
val := d.Call("isEqualNode", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) IsSameNode(args ...interface{}) bool {
|
|
|
val := d.Call("isSameNode", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) GetLastChild() Node {
|
|
|
val := d.Get("lastChild")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetLastElementChild() Element {
|
|
|
val := d.Get("lastElementChild")
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetLastModified() string {
|
|
|
val := d.Get("lastModified")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetLinkColor() string {
|
|
|
val := d.Get("linkColor")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetLinkColor(val string) {
|
|
|
d.Set("linkColor", val)
|
|
|
}
|
|
|
func (d Document) GetLinks() HTMLCollection {
|
|
|
val := d.Get("links")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetLocation() Location {
|
|
|
val := d.Get("location")
|
|
|
return JSValueToLocation(val.JSValue())
|
|
|
}
|
|
|
func (d Document) LookupNamespaceURI(args ...interface{}) string {
|
|
|
val := d.Call("lookupNamespaceURI", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) LookupPrefix(args ...interface{}) string {
|
|
|
val := d.Call("lookupPrefix", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetNextSibling() Node {
|
|
|
val := d.Get("nextSibling")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetNodeName() string {
|
|
|
val := d.Get("nodeName")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetNodeType() int {
|
|
|
val := d.Get("nodeType")
|
|
|
return val.Int()
|
|
|
}
|
|
|
func (d Document) GetNodeValue() string {
|
|
|
val := d.Get("nodeValue")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetNodeValue(val string) {
|
|
|
d.Set("nodeValue", val)
|
|
|
}
|
|
|
func (d Document) Normalize(args ...interface{}) {
|
|
|
d.Call("normalize", args...)
|
|
|
}
|
|
|
func (d Document) GetOnabort() EventHandler {
|
|
|
val := d.Get("onabort")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnabort(val EventHandler) {
|
|
|
d.Set("onabort", val)
|
|
|
}
|
|
|
func (d Document) GetOnauxclick() EventHandler {
|
|
|
val := d.Get("onauxclick")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnauxclick(val EventHandler) {
|
|
|
d.Set("onauxclick", val)
|
|
|
}
|
|
|
func (d Document) GetOnblur() EventHandler {
|
|
|
val := d.Get("onblur")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnblur(val EventHandler) {
|
|
|
d.Set("onblur", val)
|
|
|
}
|
|
|
func (d Document) GetOncancel() EventHandler {
|
|
|
val := d.Get("oncancel")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncancel(val EventHandler) {
|
|
|
d.Set("oncancel", val)
|
|
|
}
|
|
|
func (d Document) GetOncanplay() EventHandler {
|
|
|
val := d.Get("oncanplay")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncanplay(val EventHandler) {
|
|
|
d.Set("oncanplay", val)
|
|
|
}
|
|
|
func (d Document) GetOncanplaythrough() EventHandler {
|
|
|
val := d.Get("oncanplaythrough")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncanplaythrough(val EventHandler) {
|
|
|
d.Set("oncanplaythrough", val)
|
|
|
}
|
|
|
func (d Document) GetOnchange() EventHandler {
|
|
|
val := d.Get("onchange")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnchange(val EventHandler) {
|
|
|
d.Set("onchange", val)
|
|
|
}
|
|
|
func (d Document) GetOnclick() EventHandler {
|
|
|
val := d.Get("onclick")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnclick(val EventHandler) {
|
|
|
d.Set("onclick", val)
|
|
|
}
|
|
|
func (d Document) GetOnclose() EventHandler {
|
|
|
val := d.Get("onclose")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnclose(val EventHandler) {
|
|
|
d.Set("onclose", val)
|
|
|
}
|
|
|
func (d Document) GetOncontextmenu() EventHandler {
|
|
|
val := d.Get("oncontextmenu")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncontextmenu(val EventHandler) {
|
|
|
d.Set("oncontextmenu", val)
|
|
|
}
|
|
|
func (d Document) GetOncopy() EventHandler {
|
|
|
val := d.Get("oncopy")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncopy(val EventHandler) {
|
|
|
d.Set("oncopy", val)
|
|
|
}
|
|
|
func (d Document) GetOncuechange() EventHandler {
|
|
|
val := d.Get("oncuechange")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncuechange(val EventHandler) {
|
|
|
d.Set("oncuechange", val)
|
|
|
}
|
|
|
func (d Document) GetOncut() EventHandler {
|
|
|
val := d.Get("oncut")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOncut(val EventHandler) {
|
|
|
d.Set("oncut", val)
|
|
|
}
|
|
|
func (d Document) GetOndblclick() EventHandler {
|
|
|
val := d.Get("ondblclick")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndblclick(val EventHandler) {
|
|
|
d.Set("ondblclick", val)
|
|
|
}
|
|
|
func (d Document) GetOndrag() EventHandler {
|
|
|
val := d.Get("ondrag")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndrag(val EventHandler) {
|
|
|
d.Set("ondrag", val)
|
|
|
}
|
|
|
func (d Document) GetOndragend() EventHandler {
|
|
|
val := d.Get("ondragend")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndragend(val EventHandler) {
|
|
|
d.Set("ondragend", val)
|
|
|
}
|
|
|
func (d Document) GetOndragenter() EventHandler {
|
|
|
val := d.Get("ondragenter")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndragenter(val EventHandler) {
|
|
|
d.Set("ondragenter", val)
|
|
|
}
|
|
|
func (d Document) GetOndragexit() EventHandler {
|
|
|
val := d.Get("ondragexit")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndragexit(val EventHandler) {
|
|
|
d.Set("ondragexit", val)
|
|
|
}
|
|
|
func (d Document) GetOndragleave() EventHandler {
|
|
|
val := d.Get("ondragleave")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndragleave(val EventHandler) {
|
|
|
d.Set("ondragleave", val)
|
|
|
}
|
|
|
func (d Document) GetOndragover() EventHandler {
|
|
|
val := d.Get("ondragover")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndragover(val EventHandler) {
|
|
|
d.Set("ondragover", val)
|
|
|
}
|
|
|
func (d Document) GetOndragstart() EventHandler {
|
|
|
val := d.Get("ondragstart")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndragstart(val EventHandler) {
|
|
|
d.Set("ondragstart", val)
|
|
|
}
|
|
|
func (d Document) GetOndrop() EventHandler {
|
|
|
val := d.Get("ondrop")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndrop(val EventHandler) {
|
|
|
d.Set("ondrop", val)
|
|
|
}
|
|
|
func (d Document) GetOndurationchange() EventHandler {
|
|
|
val := d.Get("ondurationchange")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOndurationchange(val EventHandler) {
|
|
|
d.Set("ondurationchange", val)
|
|
|
}
|
|
|
func (d Document) GetOnemptied() EventHandler {
|
|
|
val := d.Get("onemptied")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnemptied(val EventHandler) {
|
|
|
d.Set("onemptied", val)
|
|
|
}
|
|
|
func (d Document) GetOnended() EventHandler {
|
|
|
val := d.Get("onended")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnended(val EventHandler) {
|
|
|
d.Set("onended", val)
|
|
|
}
|
|
|
func (d Document) GetOnerror() OnErrorEventHandler {
|
|
|
val := d.Get("onerror")
|
|
|
return JSValueToOnErrorEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnerror(val OnErrorEventHandler) {
|
|
|
d.Set("onerror", val)
|
|
|
}
|
|
|
func (d Document) GetOnfocus() EventHandler {
|
|
|
val := d.Get("onfocus")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnfocus(val EventHandler) {
|
|
|
d.Set("onfocus", val)
|
|
|
}
|
|
|
func (d Document) GetOninput() EventHandler {
|
|
|
val := d.Get("oninput")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOninput(val EventHandler) {
|
|
|
d.Set("oninput", val)
|
|
|
}
|
|
|
func (d Document) GetOninvalid() EventHandler {
|
|
|
val := d.Get("oninvalid")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOninvalid(val EventHandler) {
|
|
|
d.Set("oninvalid", val)
|
|
|
}
|
|
|
func (d Document) GetOnkeydown() EventHandler {
|
|
|
val := d.Get("onkeydown")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnkeydown(val EventHandler) {
|
|
|
d.Set("onkeydown", val)
|
|
|
}
|
|
|
func (d Document) GetOnkeypress() EventHandler {
|
|
|
val := d.Get("onkeypress")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnkeypress(val EventHandler) {
|
|
|
d.Set("onkeypress", val)
|
|
|
}
|
|
|
func (d Document) GetOnkeyup() EventHandler {
|
|
|
val := d.Get("onkeyup")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnkeyup(val EventHandler) {
|
|
|
d.Set("onkeyup", val)
|
|
|
}
|
|
|
func (d Document) GetOnload() EventHandler {
|
|
|
val := d.Get("onload")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnload(val EventHandler) {
|
|
|
d.Set("onload", val)
|
|
|
}
|
|
|
func (d Document) GetOnloadeddata() EventHandler {
|
|
|
val := d.Get("onloadeddata")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnloadeddata(val EventHandler) {
|
|
|
d.Set("onloadeddata", val)
|
|
|
}
|
|
|
func (d Document) GetOnloadedmetadata() EventHandler {
|
|
|
val := d.Get("onloadedmetadata")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnloadedmetadata(val EventHandler) {
|
|
|
d.Set("onloadedmetadata", val)
|
|
|
}
|
|
|
func (d Document) GetOnloadend() EventHandler {
|
|
|
val := d.Get("onloadend")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnloadend(val EventHandler) {
|
|
|
d.Set("onloadend", val)
|
|
|
}
|
|
|
func (d Document) GetOnloadstart() EventHandler {
|
|
|
val := d.Get("onloadstart")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnloadstart(val EventHandler) {
|
|
|
d.Set("onloadstart", val)
|
|
|
}
|
|
|
func (d Document) GetOnmousedown() EventHandler {
|
|
|
val := d.Get("onmousedown")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmousedown(val EventHandler) {
|
|
|
d.Set("onmousedown", val)
|
|
|
}
|
|
|
func (d Document) GetOnmouseenter() EventHandler {
|
|
|
val := d.Get("onmouseenter")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmouseenter(val EventHandler) {
|
|
|
d.Set("onmouseenter", val)
|
|
|
}
|
|
|
func (d Document) GetOnmouseleave() EventHandler {
|
|
|
val := d.Get("onmouseleave")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmouseleave(val EventHandler) {
|
|
|
d.Set("onmouseleave", val)
|
|
|
}
|
|
|
func (d Document) GetOnmousemove() EventHandler {
|
|
|
val := d.Get("onmousemove")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmousemove(val EventHandler) {
|
|
|
d.Set("onmousemove", val)
|
|
|
}
|
|
|
func (d Document) GetOnmouseout() EventHandler {
|
|
|
val := d.Get("onmouseout")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmouseout(val EventHandler) {
|
|
|
d.Set("onmouseout", val)
|
|
|
}
|
|
|
func (d Document) GetOnmouseover() EventHandler {
|
|
|
val := d.Get("onmouseover")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmouseover(val EventHandler) {
|
|
|
d.Set("onmouseover", val)
|
|
|
}
|
|
|
func (d Document) GetOnmouseup() EventHandler {
|
|
|
val := d.Get("onmouseup")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnmouseup(val EventHandler) {
|
|
|
d.Set("onmouseup", val)
|
|
|
}
|
|
|
func (d Document) GetOnpaste() EventHandler {
|
|
|
val := d.Get("onpaste")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnpaste(val EventHandler) {
|
|
|
d.Set("onpaste", val)
|
|
|
}
|
|
|
func (d Document) GetOnpause() EventHandler {
|
|
|
val := d.Get("onpause")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnpause(val EventHandler) {
|
|
|
d.Set("onpause", val)
|
|
|
}
|
|
|
func (d Document) GetOnplay() EventHandler {
|
|
|
val := d.Get("onplay")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnplay(val EventHandler) {
|
|
|
d.Set("onplay", val)
|
|
|
}
|
|
|
func (d Document) GetOnplaying() EventHandler {
|
|
|
val := d.Get("onplaying")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnplaying(val EventHandler) {
|
|
|
d.Set("onplaying", val)
|
|
|
}
|
|
|
func (d Document) GetOnprogress() EventHandler {
|
|
|
val := d.Get("onprogress")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnprogress(val EventHandler) {
|
|
|
d.Set("onprogress", val)
|
|
|
}
|
|
|
func (d Document) GetOnratechange() EventHandler {
|
|
|
val := d.Get("onratechange")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnratechange(val EventHandler) {
|
|
|
d.Set("onratechange", val)
|
|
|
}
|
|
|
func (d Document) GetOnreadystatechange() EventHandler {
|
|
|
val := d.Get("onreadystatechange")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnreadystatechange(val EventHandler) {
|
|
|
d.Set("onreadystatechange", val)
|
|
|
}
|
|
|
func (d Document) GetOnreset() EventHandler {
|
|
|
val := d.Get("onreset")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnreset(val EventHandler) {
|
|
|
d.Set("onreset", val)
|
|
|
}
|
|
|
func (d Document) GetOnresize() EventHandler {
|
|
|
val := d.Get("onresize")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnresize(val EventHandler) {
|
|
|
d.Set("onresize", val)
|
|
|
}
|
|
|
func (d Document) GetOnscroll() EventHandler {
|
|
|
val := d.Get("onscroll")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnscroll(val EventHandler) {
|
|
|
d.Set("onscroll", val)
|
|
|
}
|
|
|
func (d Document) GetOnsecuritypolicyviolation() EventHandler {
|
|
|
val := d.Get("onsecuritypolicyviolation")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnsecuritypolicyviolation(val EventHandler) {
|
|
|
d.Set("onsecuritypolicyviolation", val)
|
|
|
}
|
|
|
func (d Document) GetOnseeked() EventHandler {
|
|
|
val := d.Get("onseeked")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnseeked(val EventHandler) {
|
|
|
d.Set("onseeked", val)
|
|
|
}
|
|
|
func (d Document) GetOnseeking() EventHandler {
|
|
|
val := d.Get("onseeking")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnseeking(val EventHandler) {
|
|
|
d.Set("onseeking", val)
|
|
|
}
|
|
|
func (d Document) GetOnselect() EventHandler {
|
|
|
val := d.Get("onselect")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnselect(val EventHandler) {
|
|
|
d.Set("onselect", val)
|
|
|
}
|
|
|
func (d Document) GetOnstalled() EventHandler {
|
|
|
val := d.Get("onstalled")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnstalled(val EventHandler) {
|
|
|
d.Set("onstalled", val)
|
|
|
}
|
|
|
func (d Document) GetOnsubmit() EventHandler {
|
|
|
val := d.Get("onsubmit")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnsubmit(val EventHandler) {
|
|
|
d.Set("onsubmit", val)
|
|
|
}
|
|
|
func (d Document) GetOnsuspend() EventHandler {
|
|
|
val := d.Get("onsuspend")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnsuspend(val EventHandler) {
|
|
|
d.Set("onsuspend", val)
|
|
|
}
|
|
|
func (d Document) GetOntimeupdate() EventHandler {
|
|
|
val := d.Get("ontimeupdate")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOntimeupdate(val EventHandler) {
|
|
|
d.Set("ontimeupdate", val)
|
|
|
}
|
|
|
func (d Document) GetOntoggle() EventHandler {
|
|
|
val := d.Get("ontoggle")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOntoggle(val EventHandler) {
|
|
|
d.Set("ontoggle", val)
|
|
|
}
|
|
|
func (d Document) GetOnvolumechange() EventHandler {
|
|
|
val := d.Get("onvolumechange")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnvolumechange(val EventHandler) {
|
|
|
d.Set("onvolumechange", val)
|
|
|
}
|
|
|
func (d Document) GetOnwaiting() EventHandler {
|
|
|
val := d.Get("onwaiting")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnwaiting(val EventHandler) {
|
|
|
d.Set("onwaiting", val)
|
|
|
}
|
|
|
func (d Document) GetOnwheel() EventHandler {
|
|
|
val := d.Get("onwheel")
|
|
|
return JSValueToEventHandler(val.JSValue())
|
|
|
}
|
|
|
func (d Document) SetOnwheel(val EventHandler) {
|
|
|
d.Set("onwheel", val)
|
|
|
}
|
|
|
func (d Document) Open(args ...interface{}) Document {
|
|
|
val := d.Call("open", args...)
|
|
|
return JSValueToDocument(val.JSValue())
|
|
|
}
|
|
|
func (d Document) OpenWithArgs(args ...interface{}) WindowProxy {
|
|
|
val := d.Call("openWithArgs", args...)
|
|
|
return JSValueToWindowProxy(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetOrigin() string {
|
|
|
val := d.Get("origin")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetOwnerDocument() Document {
|
|
|
val := d.Get("ownerDocument")
|
|
|
return JSValueToDocument(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetParentElement() Element {
|
|
|
val := d.Get("parentElement")
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetParentNode() Node {
|
|
|
val := d.Get("parentNode")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetPlugins() HTMLCollection {
|
|
|
val := d.Get("plugins")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) Prepend(args ...interface{}) {
|
|
|
d.Call("prepend", args...)
|
|
|
}
|
|
|
func (d Document) GetPreviousSibling() Node {
|
|
|
val := d.Get("previousSibling")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) QueryCommandEnabled(args ...interface{}) bool {
|
|
|
val := d.Call("queryCommandEnabled", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) QueryCommandIndeterm(args ...interface{}) bool {
|
|
|
val := d.Call("queryCommandIndeterm", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) QueryCommandState(args ...interface{}) bool {
|
|
|
val := d.Call("queryCommandState", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) QueryCommandSupported(args ...interface{}) bool {
|
|
|
val := d.Call("queryCommandSupported", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (d Document) QueryCommandValue(args ...interface{}) string {
|
|
|
val := d.Call("queryCommandValue", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) QuerySelector(args ...interface{}) Element {
|
|
|
val := d.Call("querySelector", args...)
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (d Document) QuerySelectorAll(args ...interface{}) NodeList {
|
|
|
val := d.Call("querySelectorAll", args...)
|
|
|
return JSValueToNodeList(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetReadyState() DocumentReadyState {
|
|
|
val := d.Get("readyState")
|
|
|
return JSValueToDocumentReadyState(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetReferrer() string {
|
|
|
val := d.Get("referrer")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) ReleaseEvents(args ...interface{}) {
|
|
|
d.Call("releaseEvents", args...)
|
|
|
}
|
|
|
func (d Document) RemoveChild(args ...interface{}) Node {
|
|
|
val := d.Call("removeChild", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) RemoveEventListener(args ...interface{}) {
|
|
|
d.Call("removeEventListener", args...)
|
|
|
}
|
|
|
func (d Document) ReplaceChild(args ...interface{}) Node {
|
|
|
val := d.Call("replaceChild", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetScripts() HTMLCollection {
|
|
|
val := d.Get("scripts")
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetStyleSheets() StyleSheetList {
|
|
|
val := d.Get("styleSheets")
|
|
|
return JSValueToStyleSheetList(val.JSValue())
|
|
|
}
|
|
|
func (d Document) GetTextContent() string {
|
|
|
val := d.Get("textContent")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetTextContent(val string) {
|
|
|
d.Set("textContent", val)
|
|
|
}
|
|
|
func (d Document) GetTitle() string {
|
|
|
val := d.Get("title")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetTitle(val string) {
|
|
|
d.Set("title", val)
|
|
|
}
|
|
|
func (d Document) GetURL() string {
|
|
|
val := d.Get("URL")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) GetVlinkColor() string {
|
|
|
val := d.Get("vlinkColor")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (d Document) SetVlinkColor(val string) {
|
|
|
d.Set("vlinkColor", val)
|
|
|
}
|
|
|
func (d Document) Write(args ...interface{}) {
|
|
|
d.Call("write", args...)
|
|
|
}
|
|
|
func (d Document) Writeln(args ...interface{}) {
|
|
|
d.Call("writeln", args...)
|
|
|
}
|