|
|
// Code generated DO NOT EDIT
|
|
|
// htmlstyleelement.go
|
|
|
package dom
|
|
|
|
|
|
import "syscall/js"
|
|
|
|
|
|
type HTMLStyleElementIFace interface {
|
|
|
GetAccessKey() string
|
|
|
SetAccessKey(string)
|
|
|
GetAccessKeyLabel() string
|
|
|
AddEventListener(args ...interface{})
|
|
|
AppendChild(args ...interface{}) Node
|
|
|
AttachShadow(args ...interface{}) ShadowRoot
|
|
|
GetAttributes() NamedNodeMap
|
|
|
GetAutocapitalize() string
|
|
|
SetAutocapitalize(string)
|
|
|
GetBaseURI() string
|
|
|
GetChildNodes() NodeList
|
|
|
GetClassList() DOMTokenList
|
|
|
GetClassName() string
|
|
|
SetClassName(string)
|
|
|
Click(args ...interface{})
|
|
|
CloneNode(args ...interface{}) Node
|
|
|
Closest(args ...interface{}) Element
|
|
|
CompareDocumentPosition(args ...interface{}) int
|
|
|
Contains(args ...interface{}) bool
|
|
|
GetDir() string
|
|
|
SetDir(string)
|
|
|
DispatchEvent(args ...interface{}) bool
|
|
|
GetDraggable() bool
|
|
|
SetDraggable(bool)
|
|
|
GetFirstChild() Node
|
|
|
GetAttribute(args ...interface{}) string
|
|
|
GetAttributeNS(args ...interface{}) string
|
|
|
GetAttributeNames(args ...interface{})
|
|
|
GetAttributeNode(args ...interface{}) Attr
|
|
|
GetAttributeNodeNS(args ...interface{}) Attr
|
|
|
GetElementsByClassName(args ...interface{}) HTMLCollection
|
|
|
GetElementsByTagName(args ...interface{}) HTMLCollection
|
|
|
GetElementsByTagNameNS(args ...interface{}) HTMLCollection
|
|
|
GetRootNode(args ...interface{}) Node
|
|
|
HasAttribute(args ...interface{}) bool
|
|
|
HasAttributeNS(args ...interface{}) bool
|
|
|
HasAttributes(args ...interface{}) bool
|
|
|
HasChildNodes(args ...interface{}) bool
|
|
|
GetHidden() bool
|
|
|
SetHidden(bool)
|
|
|
GetId() string
|
|
|
SetId(string)
|
|
|
GetInnerText() string
|
|
|
SetInnerText(string)
|
|
|
InsertAdjacentElement(args ...interface{}) Element
|
|
|
InsertAdjacentText(args ...interface{})
|
|
|
InsertBefore(args ...interface{}) Node
|
|
|
GetIsConnected() bool
|
|
|
IsDefaultNamespace(args ...interface{}) bool
|
|
|
IsEqualNode(args ...interface{}) bool
|
|
|
IsSameNode(args ...interface{}) bool
|
|
|
GetLang() string
|
|
|
SetLang(string)
|
|
|
GetLastChild() Node
|
|
|
GetLocalName() string
|
|
|
LookupNamespaceURI(args ...interface{}) string
|
|
|
LookupPrefix(args ...interface{}) string
|
|
|
Matches(args ...interface{}) bool
|
|
|
GetMedia() string
|
|
|
SetMedia(string)
|
|
|
GetNamespaceURI() string
|
|
|
GetNextSibling() Node
|
|
|
GetNodeName() string
|
|
|
GetNodeType() int
|
|
|
GetNodeValue() string
|
|
|
SetNodeValue(string)
|
|
|
Normalize(args ...interface{})
|
|
|
GetOwnerDocument() Document
|
|
|
GetParentElement() Element
|
|
|
GetParentNode() Node
|
|
|
GetPrefix() string
|
|
|
GetPreviousSibling() Node
|
|
|
RemoveAttribute(args ...interface{})
|
|
|
RemoveAttributeNS(args ...interface{})
|
|
|
RemoveAttributeNode(args ...interface{}) Attr
|
|
|
RemoveChild(args ...interface{}) Node
|
|
|
RemoveEventListener(args ...interface{})
|
|
|
ReplaceChild(args ...interface{}) Node
|
|
|
SetAttribute(args ...interface{})
|
|
|
SetAttributeNS(args ...interface{})
|
|
|
SetAttributeNode(args ...interface{}) Attr
|
|
|
SetAttributeNodeNS(args ...interface{}) Attr
|
|
|
GetShadowRoot() ShadowRoot
|
|
|
GetSheet() StyleSheet
|
|
|
GetSlot() string
|
|
|
SetSlot(string)
|
|
|
GetSpellcheck() bool
|
|
|
SetSpellcheck(bool)
|
|
|
GetTagName() string
|
|
|
GetTextContent() string
|
|
|
SetTextContent(string)
|
|
|
GetTitle() string
|
|
|
SetTitle(string)
|
|
|
ToggleAttribute(args ...interface{}) bool
|
|
|
GetTranslate() bool
|
|
|
SetTranslate(bool)
|
|
|
GetType() string
|
|
|
SetType(string)
|
|
|
WebkitMatchesSelector(args ...interface{}) bool
|
|
|
}
|
|
|
type HTMLStyleElement struct {
|
|
|
Value
|
|
|
}
|
|
|
|
|
|
func JSValueToHTMLStyleElement(val js.Value) HTMLStyleElement {
|
|
|
return HTMLStyleElement{Value: JSValueToValue(val)}
|
|
|
}
|
|
|
func (v Value) AsHTMLStyleElement() HTMLStyleElement { return HTMLStyleElement{Value: v} }
|
|
|
func NewHTMLStyleElement(args ...interface{}) HTMLStyleElement {
|
|
|
return HTMLStyleElement{Value: JSValueToValue(js.Global().Get("HTMLStyleElement").New(args...))}
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAccessKey() string {
|
|
|
val := h.Get("accessKey")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetAccessKey(val string) {
|
|
|
h.Set("accessKey", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAccessKeyLabel() string {
|
|
|
val := h.Get("accessKeyLabel")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) AddEventListener(args ...interface{}) {
|
|
|
h.Call("addEventListener", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) AppendChild(args ...interface{}) Node {
|
|
|
val := h.Call("appendChild", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) AttachShadow(args ...interface{}) ShadowRoot {
|
|
|
val := h.Call("attachShadow", args...)
|
|
|
return JSValueToShadowRoot(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAttributes() NamedNodeMap {
|
|
|
val := h.Get("attributes")
|
|
|
return JSValueToNamedNodeMap(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAutocapitalize() string {
|
|
|
val := h.Get("autocapitalize")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetAutocapitalize(val string) {
|
|
|
h.Set("autocapitalize", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetBaseURI() string {
|
|
|
val := h.Get("baseURI")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetChildNodes() NodeList {
|
|
|
val := h.Get("childNodes")
|
|
|
return JSValueToNodeList(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetClassList() DOMTokenList {
|
|
|
val := h.Get("classList")
|
|
|
return JSValueToDOMTokenList(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetClassName() string {
|
|
|
val := h.Get("className")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetClassName(val string) {
|
|
|
h.Set("className", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) Click(args ...interface{}) {
|
|
|
h.Call("click", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) CloneNode(args ...interface{}) Node {
|
|
|
val := h.Call("cloneNode", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) Closest(args ...interface{}) Element {
|
|
|
val := h.Call("closest", args...)
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) CompareDocumentPosition(args ...interface{}) int {
|
|
|
val := h.Call("compareDocumentPosition", args...)
|
|
|
return val.Int()
|
|
|
}
|
|
|
func (h HTMLStyleElement) Contains(args ...interface{}) bool {
|
|
|
val := h.Call("contains", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetDir() string {
|
|
|
val := h.Get("dir")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetDir(val string) {
|
|
|
h.Set("dir", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) DispatchEvent(args ...interface{}) bool {
|
|
|
val := h.Call("dispatchEvent", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetDraggable() bool {
|
|
|
val := h.Get("draggable")
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetDraggable(val bool) {
|
|
|
h.Set("draggable", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetFirstChild() Node {
|
|
|
val := h.Get("firstChild")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAttribute(args ...interface{}) string {
|
|
|
val := h.Call("getAttribute", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAttributeNS(args ...interface{}) string {
|
|
|
val := h.Call("getAttributeNS", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAttributeNames(args ...interface{}) {
|
|
|
h.Call("getAttributeNames", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAttributeNode(args ...interface{}) Attr {
|
|
|
val := h.Call("getAttributeNode", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetAttributeNodeNS(args ...interface{}) Attr {
|
|
|
val := h.Call("getAttributeNodeNS", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetElementsByClassName(args ...interface{}) HTMLCollection {
|
|
|
val := h.Call("getElementsByClassName", args...)
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetElementsByTagName(args ...interface{}) HTMLCollection {
|
|
|
val := h.Call("getElementsByTagName", args...)
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetElementsByTagNameNS(args ...interface{}) HTMLCollection {
|
|
|
val := h.Call("getElementsByTagNameNS", args...)
|
|
|
return JSValueToHTMLCollection(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetRootNode(args ...interface{}) Node {
|
|
|
val := h.Call("getRootNode", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) HasAttribute(args ...interface{}) bool {
|
|
|
val := h.Call("hasAttribute", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) HasAttributeNS(args ...interface{}) bool {
|
|
|
val := h.Call("hasAttributeNS", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) HasAttributes(args ...interface{}) bool {
|
|
|
val := h.Call("hasAttributes", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) HasChildNodes(args ...interface{}) bool {
|
|
|
val := h.Call("hasChildNodes", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetHidden() bool {
|
|
|
val := h.Get("hidden")
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetHidden(val bool) {
|
|
|
h.Set("hidden", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetId() string {
|
|
|
val := h.Get("id")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetId(val string) {
|
|
|
h.Set("id", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetInnerText() string {
|
|
|
val := h.Get("innerText")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetInnerText(val string) {
|
|
|
h.Set("innerText", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) InsertAdjacentElement(args ...interface{}) Element {
|
|
|
val := h.Call("insertAdjacentElement", args...)
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) InsertAdjacentText(args ...interface{}) {
|
|
|
h.Call("insertAdjacentText", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) InsertBefore(args ...interface{}) Node {
|
|
|
val := h.Call("insertBefore", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetIsConnected() bool {
|
|
|
val := h.Get("isConnected")
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) IsDefaultNamespace(args ...interface{}) bool {
|
|
|
val := h.Call("isDefaultNamespace", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) IsEqualNode(args ...interface{}) bool {
|
|
|
val := h.Call("isEqualNode", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) IsSameNode(args ...interface{}) bool {
|
|
|
val := h.Call("isSameNode", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetLang() string {
|
|
|
val := h.Get("lang")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetLang(val string) {
|
|
|
h.Set("lang", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetLastChild() Node {
|
|
|
val := h.Get("lastChild")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetLocalName() string {
|
|
|
val := h.Get("localName")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) LookupNamespaceURI(args ...interface{}) string {
|
|
|
val := h.Call("lookupNamespaceURI", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) LookupPrefix(args ...interface{}) string {
|
|
|
val := h.Call("lookupPrefix", args...)
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) Matches(args ...interface{}) bool {
|
|
|
val := h.Call("matches", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetMedia() string {
|
|
|
val := h.Get("media")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetMedia(val string) {
|
|
|
h.Set("media", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetNamespaceURI() string {
|
|
|
val := h.Get("namespaceURI")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetNextSibling() Node {
|
|
|
val := h.Get("nextSibling")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetNodeName() string {
|
|
|
val := h.Get("nodeName")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetNodeType() int {
|
|
|
val := h.Get("nodeType")
|
|
|
return val.Int()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetNodeValue() string {
|
|
|
val := h.Get("nodeValue")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetNodeValue(val string) {
|
|
|
h.Set("nodeValue", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) Normalize(args ...interface{}) {
|
|
|
h.Call("normalize", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetOwnerDocument() Document {
|
|
|
val := h.Get("ownerDocument")
|
|
|
return JSValueToDocument(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetParentElement() Element {
|
|
|
val := h.Get("parentElement")
|
|
|
return JSValueToElement(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetParentNode() Node {
|
|
|
val := h.Get("parentNode")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetPrefix() string {
|
|
|
val := h.Get("prefix")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetPreviousSibling() Node {
|
|
|
val := h.Get("previousSibling")
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) RemoveAttribute(args ...interface{}) {
|
|
|
h.Call("removeAttribute", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) RemoveAttributeNS(args ...interface{}) {
|
|
|
h.Call("removeAttributeNS", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) RemoveAttributeNode(args ...interface{}) Attr {
|
|
|
val := h.Call("removeAttributeNode", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) RemoveChild(args ...interface{}) Node {
|
|
|
val := h.Call("removeChild", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) RemoveEventListener(args ...interface{}) {
|
|
|
h.Call("removeEventListener", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) ReplaceChild(args ...interface{}) Node {
|
|
|
val := h.Call("replaceChild", args...)
|
|
|
return JSValueToNode(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetAttribute(args ...interface{}) {
|
|
|
h.Call("setAttribute", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetAttributeNS(args ...interface{}) {
|
|
|
h.Call("setAttributeNS", args...)
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetAttributeNode(args ...interface{}) Attr {
|
|
|
val := h.Call("setAttributeNode", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetAttributeNodeNS(args ...interface{}) Attr {
|
|
|
val := h.Call("setAttributeNodeNS", args...)
|
|
|
return JSValueToAttr(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetShadowRoot() ShadowRoot {
|
|
|
val := h.Get("shadowRoot")
|
|
|
return JSValueToShadowRoot(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetSheet() StyleSheet {
|
|
|
val := h.Get("sheet")
|
|
|
return JSValueToStyleSheet(val.JSValue())
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetSlot() string {
|
|
|
val := h.Get("slot")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetSlot(val string) {
|
|
|
h.Set("slot", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetSpellcheck() bool {
|
|
|
val := h.Get("spellcheck")
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetSpellcheck(val bool) {
|
|
|
h.Set("spellcheck", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetTagName() string {
|
|
|
val := h.Get("tagName")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetTextContent() string {
|
|
|
val := h.Get("textContent")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetTextContent(val string) {
|
|
|
h.Set("textContent", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetTitle() string {
|
|
|
val := h.Get("title")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetTitle(val string) {
|
|
|
h.Set("title", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) ToggleAttribute(args ...interface{}) bool {
|
|
|
val := h.Call("toggleAttribute", args...)
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetTranslate() bool {
|
|
|
val := h.Get("translate")
|
|
|
return val.Bool()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetTranslate(val bool) {
|
|
|
h.Set("translate", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) GetType() string {
|
|
|
val := h.Get("type")
|
|
|
return val.String()
|
|
|
}
|
|
|
func (h HTMLStyleElement) SetType(val string) {
|
|
|
h.Set("type", val)
|
|
|
}
|
|
|
func (h HTMLStyleElement) WebkitMatchesSelector(args ...interface{}) bool {
|
|
|
val := h.Call("webkitMatchesSelector", args...)
|
|
|
return val.Bool()
|
|
|
}
|