Documentation ¶
Overview ¶
Package dom define DOM nodes and elements types.
Source: DOM Standard (https://dom.spec.whatwg.org/)
Index ¶
- Constants
- type AbstractRange
- type Attr
- func (_this *Attr) LocalName() string
- func (_this *Attr) Name() string
- func (_this *Attr) NamespaceURI() *string
- func (_this *Attr) OwnerElement() *Element
- func (_this *Attr) Prefix() *string
- func (_this *Attr) SetValue(value string)
- func (_this *Attr) Specified() bool
- func (_this *Attr) Value() string
- type CDATASection
- type CharacterData
- func (_this *CharacterData) After(nodes ...*Union)
- func (_this *CharacterData) AppendData(data string)
- func (_this *CharacterData) Before(nodes ...*Union)
- func (_this *CharacterData) Data() string
- func (_this *CharacterData) DeleteData(offset uint, count uint)
- func (_this *CharacterData) InsertData(offset uint, data string)
- func (_this *CharacterData) Length() uint
- func (_this *CharacterData) NextElementSibling() *Element
- func (_this *CharacterData) PreviousElementSibling() *Element
- func (_this *CharacterData) Remove()
- func (_this *CharacterData) ReplaceData(offset uint, count uint, data string)
- func (_this *CharacterData) ReplaceWith(nodes ...*Union)
- func (_this *CharacterData) SetData(value string)
- func (_this *CharacterData) SubstringData(offset uint, count uint) (_result string)
- type Comment
- type DeadFragmentInformation
- func (_this *DeadFragmentInformation) Children() *javascript.FrozenArray
- func (_this *DeadFragmentInformation) Height() float64
- func (_this *DeadFragmentInformation) IsOverflowed() bool
- func (_this *DeadFragmentInformation) JSValue() js.Value
- func (_this *DeadFragmentInformation) Left() float64
- func (_this *DeadFragmentInformation) NextInBox() *DeadFragmentInformation
- func (_this *DeadFragmentInformation) NextSibling() *DeadFragmentInformation
- func (_this *DeadFragmentInformation) Node() *Node
- func (_this *DeadFragmentInformation) PreviousInBox() *DeadFragmentInformation
- func (_this *DeadFragmentInformation) PreviousSibling() *DeadFragmentInformation
- func (_this *DeadFragmentInformation) Top() float64
- func (_this *DeadFragmentInformation) Width() float64
- type DocumentFragment
- func (_this *DocumentFragment) Append(nodes ...*Union)
- func (_this *DocumentFragment) ChildElementCount() uint
- func (_this *DocumentFragment) Children() *HTMLCollection
- func (_this *DocumentFragment) FirstElementChild() *Element
- func (_this *DocumentFragment) GetElementById(elementId string) (_result *Element)
- func (_this *DocumentFragment) LastElementChild() *Element
- func (_this *DocumentFragment) Prepend(nodes ...*Union)
- func (_this *DocumentFragment) QuerySelector(selectors string) (_result *Element)
- func (_this *DocumentFragment) QuerySelectorAll(selectors string) (_result *NodeList)
- type DocumentType
- func (_this *DocumentType) After(nodes ...*Union)
- func (_this *DocumentType) Before(nodes ...*Union)
- func (_this *DocumentType) Name() string
- func (_this *DocumentType) PublicId() string
- func (_this *DocumentType) Remove()
- func (_this *DocumentType) ReplaceWith(nodes ...*Union)
- func (_this *DocumentType) SystemId() string
- type Element
- func (_this *Element) AddEventFullscreenChange(listener func(event *domcore.Event, currentTarget *Element)) js.Func
- func (_this *Element) AddEventFullscreenError(listener func(event *domcore.Event, currentTarget *Element)) js.Func
- func (_this *Element) After(nodes ...*Union)
- func (_this *Element) Animate(keyframes *javascript.Object, options *Union) (_result *webani.Animation)
- func (_this *Element) Append(nodes ...*Union)
- func (_this *Element) AriaActiveDescendant() *string
- func (_this *Element) AriaAtomic() *string
- func (_this *Element) AriaAutoComplete() *string
- func (_this *Element) AriaBusy() *string
- func (_this *Element) AriaChecked() *string
- func (_this *Element) AriaColCount() *string
- func (_this *Element) AriaColIndex() *string
- func (_this *Element) AriaColSpan() *string
- func (_this *Element) AriaControls() *string
- func (_this *Element) AriaCurrent() *string
- func (_this *Element) AriaDescribedBy() *string
- func (_this *Element) AriaDetails() *string
- func (_this *Element) AriaDisabled() *string
- func (_this *Element) AriaErrorMessage() *string
- func (_this *Element) AriaExpanded() *string
- func (_this *Element) AriaFlowTo() *string
- func (_this *Element) AriaHasPopup() *string
- func (_this *Element) AriaHidden() *string
- func (_this *Element) AriaInvalid() *string
- func (_this *Element) AriaKeyShortcuts() *string
- func (_this *Element) AriaLabel() *string
- func (_this *Element) AriaLabelledBy() *string
- func (_this *Element) AriaLevel() *string
- func (_this *Element) AriaLive() *string
- func (_this *Element) AriaModal() *string
- func (_this *Element) AriaMultiLine() *string
- func (_this *Element) AriaMultiSelectable() *string
- func (_this *Element) AriaOrientation() *string
- func (_this *Element) AriaOwns() *string
- func (_this *Element) AriaPlaceholder() *string
- func (_this *Element) AriaPosInSet() *string
- func (_this *Element) AriaPressed() *string
- func (_this *Element) AriaReadOnly() *string
- func (_this *Element) AriaRelevant() *string
- func (_this *Element) AriaRequired() *string
- func (_this *Element) AriaRoleDescription() *string
- func (_this *Element) AriaRowCount() *string
- func (_this *Element) AriaRowIndex() *string
- func (_this *Element) AriaRowSpan() *string
- func (_this *Element) AriaSelected() *string
- func (_this *Element) AriaSetSize() *string
- func (_this *Element) AriaSort() *string
- func (_this *Element) AriaValueMax() *string
- func (_this *Element) AriaValueMin() *string
- func (_this *Element) AriaValueNow() *string
- func (_this *Element) AriaValueText() *string
- func (_this *Element) AssignedSlot() js.Value
- func (_this *Element) AttachShadow(init *ShadowRootInit) (_result *ShadowRoot)
- func (_this *Element) Attributes() *NamedNodeMap
- func (_this *Element) Before(nodes ...*Union)
- func (_this *Element) ChildElementCount() uint
- func (_this *Element) Children() *HTMLCollection
- func (_this *Element) ClassList() *domcore.DOMTokenList
- func (_this *Element) ClassName() string
- func (_this *Element) ClientHeight() int
- func (_this *Element) ClientLeft() int
- func (_this *Element) ClientTop() int
- func (_this *Element) ClientWidth() int
- func (_this *Element) Closest(selectors string) (_result *Element)
- func (_this *Element) ComputedStyleMap() (_result *typedom.StylePropertyMapReadOnly)
- func (_this *Element) ConvertPointFromNode(point *geometry.DOMPointInit, from *Union, ...) (_result *geometry.DOMPoint)
- func (_this *Element) ConvertQuadFromNode(quad *geometry.DOMQuadInit, from *Union, ...) (_result *geometry.DOMQuad)
- func (_this *Element) ConvertRectFromNode(rect *geometry.DOMRectReadOnly, from *Union, ...) (_result *geometry.DOMQuad)
- func (_this *Element) FirstElementChild() *Element
- func (_this *Element) GetAnimations() (_result []*webani.Animation)
- func (_this *Element) GetAttribute(qualifiedName string) (_result *string)
- func (_this *Element) GetAttributeNS(namespace *string, localName string) (_result *string)
- func (_this *Element) GetAttributeNames() (_result []string)
- func (_this *Element) GetAttributeNode(qualifiedName string) (_result *Attr)
- func (_this *Element) GetAttributeNodeNS(namespace *string, localName string) (_result *Attr)
- func (_this *Element) GetBoundingClientRect() (_result *geometry.DOMRect)
- func (_this *Element) GetBoxQuads(options *view.BoxQuadOptions) (_result []*geometry.DOMQuad)
- func (_this *Element) GetClientRects() (_result *geometry.DOMRectList)
- func (_this *Element) GetElementsByClassName(classNames string) (_result *HTMLCollection)
- func (_this *Element) GetElementsByTagName(qualifiedName string) (_result *HTMLCollection)
- func (_this *Element) GetElementsByTagNameNS(namespace *string, localName string) (_result *HTMLCollection)
- func (_this *Element) GetFragmentInformation(filter FragmentFilter) (_result *PromiseDeadFragmentInformation)
- func (_this *Element) HasAttribute(qualifiedName string) (_result bool)
- func (_this *Element) HasAttributeNS(namespace *string, localName string) (_result bool)
- func (_this *Element) HasAttributes() (_result bool)
- func (_this *Element) HasPointerCapture(pointerId int) (_result bool)
- func (_this *Element) Id() string
- func (_this *Element) InnerHTML() string
- func (_this *Element) InsertAdjacentElement(where string, element *Element) (_result *Element)
- func (_this *Element) InsertAdjacentHTML(position string, text string)
- func (_this *Element) InsertAdjacentText(where string, data string)
- func (_this *Element) LastElementChild() *Element
- func (_this *Element) LocalName() string
- func (_this *Element) Matches(selectors string) (_result bool)
- func (_this *Element) NamespaceURI() *string
- func (_this *Element) NextElementSibling() *Element
- func (_this *Element) OnFullscreenChange() domcore.EventHandlerFunc
- func (_this *Element) OnFullscreenError() domcore.EventHandlerFunc
- func (_this *Element) OuterHTML() string
- func (_this *Element) Prefix() *string
- func (_this *Element) Prepend(nodes ...*Union)
- func (_this *Element) PreviousElementSibling() *Element
- func (_this *Element) QuerySelector(selectors string) (_result *Element)
- func (_this *Element) QuerySelectorAll(selectors string) (_result *NodeList)
- func (_this *Element) ReleasePointerCapture(pointerId int)
- func (_this *Element) Remove()
- func (_this *Element) RemoveAttribute(qualifiedName string)
- func (_this *Element) RemoveAttributeNS(namespace *string, localName string)
- func (_this *Element) RemoveAttributeNode(attr *Attr) (_result *Attr)
- func (_this *Element) ReplaceWith(nodes ...*Union)
- func (_this *Element) RequestFullscreen(options *FullscreenOptions) (_result *javascript.PromiseVoid)
- func (t *Element) RequestFullscreenByBrowser()
- func (_this *Element) RequestPointerLock()
- func (_this *Element) Role() *string
- func (_this *Element) Scroll(options *view.ScrollToOptions)
- func (_this *Element) Scroll2(x float64, y float64)
- func (_this *Element) ScrollBy(options *view.ScrollToOptions)
- func (_this *Element) ScrollBy2(x float64, y float64)
- func (_this *Element) ScrollHeight() int
- func (_this *Element) ScrollIntoView(arg *Union)
- func (_this *Element) ScrollLeft() float64
- func (_this *Element) ScrollTo(options *view.ScrollToOptions)
- func (_this *Element) ScrollTo2(x float64, y float64)
- func (_this *Element) ScrollTop() float64
- func (_this *Element) ScrollWidth() int
- func (_this *Element) SetAriaActiveDescendant(value *string)
- func (_this *Element) SetAriaAtomic(value *string)
- func (_this *Element) SetAriaAutoComplete(value *string)
- func (_this *Element) SetAriaBusy(value *string)
- func (_this *Element) SetAriaChecked(value *string)
- func (_this *Element) SetAriaColCount(value *string)
- func (_this *Element) SetAriaColIndex(value *string)
- func (_this *Element) SetAriaColSpan(value *string)
- func (_this *Element) SetAriaControls(value *string)
- func (_this *Element) SetAriaCurrent(value *string)
- func (_this *Element) SetAriaDescribedBy(value *string)
- func (_this *Element) SetAriaDetails(value *string)
- func (_this *Element) SetAriaDisabled(value *string)
- func (_this *Element) SetAriaErrorMessage(value *string)
- func (_this *Element) SetAriaExpanded(value *string)
- func (_this *Element) SetAriaFlowTo(value *string)
- func (_this *Element) SetAriaHasPopup(value *string)
- func (_this *Element) SetAriaHidden(value *string)
- func (_this *Element) SetAriaInvalid(value *string)
- func (_this *Element) SetAriaKeyShortcuts(value *string)
- func (_this *Element) SetAriaLabel(value *string)
- func (_this *Element) SetAriaLabelledBy(value *string)
- func (_this *Element) SetAriaLevel(value *string)
- func (_this *Element) SetAriaLive(value *string)
- func (_this *Element) SetAriaModal(value *string)
- func (_this *Element) SetAriaMultiLine(value *string)
- func (_this *Element) SetAriaMultiSelectable(value *string)
- func (_this *Element) SetAriaOrientation(value *string)
- func (_this *Element) SetAriaOwns(value *string)
- func (_this *Element) SetAriaPlaceholder(value *string)
- func (_this *Element) SetAriaPosInSet(value *string)
- func (_this *Element) SetAriaPressed(value *string)
- func (_this *Element) SetAriaReadOnly(value *string)
- func (_this *Element) SetAriaRelevant(value *string)
- func (_this *Element) SetAriaRequired(value *string)
- func (_this *Element) SetAriaRoleDescription(value *string)
- func (_this *Element) SetAriaRowCount(value *string)
- func (_this *Element) SetAriaRowIndex(value *string)
- func (_this *Element) SetAriaRowSpan(value *string)
- func (_this *Element) SetAriaSelected(value *string)
- func (_this *Element) SetAriaSetSize(value *string)
- func (_this *Element) SetAriaSort(value *string)
- func (_this *Element) SetAriaValueMax(value *string)
- func (_this *Element) SetAriaValueMin(value *string)
- func (_this *Element) SetAriaValueNow(value *string)
- func (_this *Element) SetAriaValueText(value *string)
- func (_this *Element) SetAttribute(qualifiedName string, value string)
- func (_this *Element) SetAttributeNS(namespace *string, qualifiedName string, value string)
- func (_this *Element) SetAttributeNode(attr *Attr) (_result *Attr)
- func (_this *Element) SetAttributeNodeNS(attr *Attr) (_result *Attr)
- func (_this *Element) SetClassName(value string)
- func (_this *Element) SetId(value string)
- func (_this *Element) SetInnerHTML(value string)
- func (_this *Element) SetOnFullscreenChange(listener func(event *domcore.Event, currentTarget *Element)) js.Func
- func (_this *Element) SetOnFullscreenError(listener func(event *domcore.Event, currentTarget *Element)) js.Func
- func (_this *Element) SetOuterHTML(value string)
- func (_this *Element) SetPointerCapture(pointerId int)
- func (_this *Element) SetRole(value *string)
- func (_this *Element) SetScrollLeft(value float64)
- func (_this *Element) SetScrollTop(value float64)
- func (_this *Element) SetSlot(value string)
- func (_this *Element) ShadowRoot() *ShadowRoot
- func (_this *Element) Slot() string
- func (_this *Element) TagName() string
- func (_this *Element) ToggleAttribute(qualifiedName string, force *bool) (_result bool)
- func (_this *Element) WebkitMatchesSelector(selectors string) (_result bool)
- type FragmentFilter
- type FullscreenNavigationUI
- type FullscreenOptions
- type GetRootNodeOptions
- type HTMLCollection
- func (_this *HTMLCollection) Get(name string) (_result *Element)
- func (_this *HTMLCollection) Index(index uint) (_result *Element)
- func (_this *HTMLCollection) Item(index uint) (_result *Element)
- func (_this *HTMLCollection) JSValue() js.Value
- func (_this *HTMLCollection) Length() uint
- func (_this *HTMLCollection) NamedItem(name string) (_result *Element)
- type NamedNodeMap
- func (_this *NamedNodeMap) Get(qualifiedName string) (_result *Attr)
- func (_this *NamedNodeMap) GetNamedItem(qualifiedName string) (_result *Attr)
- func (_this *NamedNodeMap) GetNamedItemNS(namespace *string, localName string) (_result *Attr)
- func (_this *NamedNodeMap) Index(index uint) (_result *Attr)
- func (_this *NamedNodeMap) Item(index uint) (_result *Attr)
- func (_this *NamedNodeMap) JSValue() js.Value
- func (_this *NamedNodeMap) Length() uint
- func (_this *NamedNodeMap) RemoveNamedItem(qualifiedName string) (_result *Attr)
- func (_this *NamedNodeMap) RemoveNamedItemNS(namespace *string, localName string) (_result *Attr)
- func (_this *NamedNodeMap) SetNamedItem(attr *Attr) (_result *Attr)
- func (_this *NamedNodeMap) SetNamedItemNS(attr *Attr) (_result *Attr)
- type Node
- func (_this *Node) AppendChild(node *Node) (_result *Node)
- func (_this *Node) BaseURI() string
- func (_this *Node) ChildNodes() *NodeList
- func (_this *Node) CloneNode(deep *bool) (_result *Node)
- func (_this *Node) CompareDocumentPosition(other *Node) (_result int)
- func (_this *Node) Contains(other *Node) (_result bool)
- func (_this *Node) FirstChild() *Node
- func (_this *Node) GetRootNode(options *GetRootNodeOptions) (_result *Node)
- func (_this *Node) HasChildNodes() (_result bool)
- func (_this *Node) InsertBefore(node *Node, child *Node) (_result *Node)
- func (_this *Node) IsConnected() bool
- func (_this *Node) IsDefaultNamespace(namespace *string) (_result bool)
- func (_this *Node) IsEqualNode(otherNode *Node) (_result bool)
- func (_this *Node) IsSameNode(otherNode *Node) (_result bool)
- func (_this *Node) LastChild() *Node
- func (_this *Node) LookupNamespaceURI(prefix *string) (_result *string)
- func (_this *Node) LookupPrefix(namespace *string) (_result *string)
- func (_this *Node) NextSibling() *Node
- func (_this *Node) NodeName() string
- func (_this *Node) NodeType() int
- func (_this *Node) NodeValue() *string
- func (_this *Node) Normalize()
- func (_this *Node) OwnerDocument() js.Value
- func (_this *Node) ParentElement() *Element
- func (_this *Node) ParentNode() *Node
- func (_this *Node) PreviousSibling() *Node
- func (_this *Node) RemoveChild(child *Node) (_result *Node)
- func (_this *Node) ReplaceChild(node *Node, child *Node) (_result *Node)
- func (_this *Node) SetNodeValue(value *string)
- func (_this *Node) SetTextContent(value *string)
- func (_this *Node) TextContent() *string
- type NodeFilter
- type NodeFilterValue
- type NodeIterator
- func (_this *NodeIterator) Detach()
- func (_this *NodeIterator) Filter() NodeFilter
- func (_this *NodeIterator) JSValue() js.Value
- func (_this *NodeIterator) NextNode() (_result *Node)
- func (_this *NodeIterator) PointerBeforeReferenceNode() bool
- func (_this *NodeIterator) PreviousNode() (_result *Node)
- func (_this *NodeIterator) ReferenceNode() *Node
- func (_this *NodeIterator) Root() *Node
- func (_this *NodeIterator) WhatToShow() uint
- type NodeList
- func (_this *NodeList) Entries() (_result *NodeListEntryIterator)
- func (_this *NodeList) ForEach(callback *NodeListForEach, optionalThisForCallbackArgument interface{})
- func (_this *NodeList) Index(index uint) (_result *Node)
- func (_this *NodeList) Item(index uint) (_result *Node)
- func (_this *NodeList) JSValue() js.Value
- func (_this *NodeList) Keys() (_result *NodeListKeyIterator)
- func (_this *NodeList) Length() uint
- func (_this *NodeList) Values() (_result *NodeListValueIterator)
- type NodeListEntryIterator
- type NodeListEntryIteratorValue
- type NodeListForEach
- type NodeListForEachFunc
- type NodeListKeyIterator
- type NodeListKeyIteratorValue
- type NodeListValueIterator
- type NodeListValueIteratorValue
- type ProcessingInstruction
- type PromiseDeadFragmentInformation
- func (_this *PromiseDeadFragmentInformation) Catch(onRejected *PromiseDeadFragmentInformationOnRejected) (_result *PromiseDeadFragmentInformation)
- func (_this *PromiseDeadFragmentInformation) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseDeadFragmentInformation)
- func (_this *PromiseDeadFragmentInformation) JSValue() js.Value
- func (_this *PromiseDeadFragmentInformation) Then(onFulfilled *PromiseDeadFragmentInformationOnFulfilled, ...) (_result *PromiseDeadFragmentInformation)
- type PromiseDeadFragmentInformationOnFulfilled
- type PromiseDeadFragmentInformationOnFulfilledFunc
- type PromiseDeadFragmentInformationOnRejected
- type PromiseDeadFragmentInformationOnRejectedFunc
- type Range
- func (_this *Range) CloneContents() (_result *DocumentFragment)
- func (_this *Range) CloneRange() (_result *Range)
- func (_this *Range) Collapse(toStart *bool)
- func (_this *Range) CommonAncestorContainer() *Node
- func (_this *Range) CompareBoundaryPoints(how int, sourceRange *Range) (_result int)
- func (_this *Range) ComparePoint(node *Node, offset uint) (_result int)
- func (_this *Range) CreateContextualFragment(fragment string) (_result *DocumentFragment)
- func (_this *Range) DeleteContents()
- func (_this *Range) Detach()
- func (_this *Range) ExtractContents() (_result *DocumentFragment)
- func (_this *Range) GetBoundingClientRect() (_result *geometry.DOMRect)
- func (_this *Range) GetClientRects() (_result *geometry.DOMRectList)
- func (_this *Range) InsertNode(node *Node)
- func (_this *Range) IntersectsNode(node *Node) (_result bool)
- func (_this *Range) IsPointInRange(node *Node, offset uint) (_result bool)
- func (_this *Range) SelectNode(node *Node)
- func (_this *Range) SelectNodeContents(node *Node)
- func (_this *Range) SetEnd(node *Node, offset uint)
- func (_this *Range) SetEndAfter(node *Node)
- func (_this *Range) SetEndBefore(node *Node)
- func (_this *Range) SetStart(node *Node, offset uint)
- func (_this *Range) SetStartAfter(node *Node)
- func (_this *Range) SetStartBefore(node *Node)
- func (_this *Range) SurroundContents(newParent *Node)
- func (_this *Range) ToString() (_result string)
- type ShadowRoot
- func (_this *ShadowRoot) FullscreenElement() *Element
- func (_this *ShadowRoot) Host() *Element
- func (_this *ShadowRoot) Mode() ShadowRootMode
- func (_this *ShadowRoot) PictureInPictureElement() *Element
- func (_this *ShadowRoot) PointerLockElement() *Element
- func (_this *ShadowRoot) StyleSheets() *cssom.StyleSheetList
- type ShadowRootInit
- type ShadowRootMode
- type StaticRange
- type Text
- func (_this *Text) AssignedSlot() js.Value
- func (_this *Text) ConvertPointFromNode(point *geometry.DOMPointInit, from *Union, ...) (_result *geometry.DOMPoint)
- func (_this *Text) ConvertQuadFromNode(quad *geometry.DOMQuadInit, from *Union, ...) (_result *geometry.DOMQuad)
- func (_this *Text) ConvertRectFromNode(rect *geometry.DOMRectReadOnly, from *Union, ...) (_result *geometry.DOMQuad)
- func (_this *Text) GetBoxQuads(options *view.BoxQuadOptions) (_result []*geometry.DOMQuad)
- func (_this *Text) SplitText(offset uint) (_result *Text)
- func (_this *Text) WholeText() string
- type TreeWalker
- func (_this *TreeWalker) CurrentNode() *Node
- func (_this *TreeWalker) Filter() NodeFilter
- func (_this *TreeWalker) FirstChild() (_result *Node)
- func (_this *TreeWalker) JSValue() js.Value
- func (_this *TreeWalker) LastChild() (_result *Node)
- func (_this *TreeWalker) NextNode() (_result *Node)
- func (_this *TreeWalker) NextSibling() (_result *Node)
- func (_this *TreeWalker) ParentNode() (_result *Node)
- func (_this *TreeWalker) PreviousNode() (_result *Node)
- func (_this *TreeWalker) PreviousSibling() (_result *Node)
- func (_this *TreeWalker) Root() *Node
- func (_this *TreeWalker) SetCurrentNode(value *Node)
- func (_this *TreeWalker) WhatToShow() uint
- type Union
Examples ¶
Constants ¶
const ( ELEMENT_NODE int = 1 ATTRIBUTE_NODE int = 2 TEXT_NODE int = 3 CDATA_SECTION_NODE int = 4 ENTITY_REFERENCE_NODE int = 5 ENTITY_NODE int = 6 PROCESSING_INSTRUCTION_NODE int = 7 COMMENT_NODE int = 8 DOCUMENT_NODE int = 9 DOCUMENT_TYPE_NODE int = 10 DOCUMENT_FRAGMENT_NODE int = 11 NOTATION_NODE int = 12 DOCUMENT_POSITION_DISCONNECTED int = 0x01 DOCUMENT_POSITION_PRECEDING int = 0x02 DOCUMENT_POSITION_FOLLOWING int = 0x04 DOCUMENT_POSITION_CONTAINS int = 0x08 DOCUMENT_POSITION_CONTAINED_BY int = 0x10 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC int = 0x20 )
const ( FILTER_ACCEPT int = 1 FILTER_REJECT int = 2 FILTER_SKIP int = 3 SHOW_ALL uint = 0xFFFFFFFF SHOW_ELEMENT uint = 0x1 SHOW_ATTRIBUTE uint = 0x2 SHOW_TEXT uint = 0x4 SHOW_CDATA_SECTION uint = 0x8 SHOW_ENTITY_REFERENCE uint = 0x10 SHOW_ENTITY uint = 0x20 SHOW_PROCESSING_INSTRUCTION uint = 0x40 SHOW_COMMENT uint = 0x80 SHOW_DOCUMENT uint = 0x100 SHOW_DOCUMENT_TYPE uint = 0x200 SHOW_DOCUMENT_FRAGMENT uint = 0x400 SHOW_NOTATION uint = 0x800 )
const ( START_TO_START int = 0 START_TO_END int = 1 END_TO_END int = 2 END_TO_START int = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractRange ¶
class: AbstractRange
func AbstractRangeFromJS ¶
func AbstractRangeFromJS(value js.Wrapper) *AbstractRange
AbstractRangeFromJS is casting a js.Wrapper into AbstractRange.
func (*AbstractRange) Collapsed ¶
func (_this *AbstractRange) Collapsed() bool
Collapsed returning attribute 'collapsed' with type bool (idl: boolean).
func (*AbstractRange) EndContainer ¶
func (_this *AbstractRange) EndContainer() *Node
EndContainer returning attribute 'endContainer' with type Node (idl: Node).
func (*AbstractRange) EndOffset ¶
func (_this *AbstractRange) EndOffset() uint
EndOffset returning attribute 'endOffset' with type uint (idl: unsigned long).
func (*AbstractRange) JSValue ¶
func (_this *AbstractRange) JSValue() js.Value
func (*AbstractRange) StartContainer ¶
func (_this *AbstractRange) StartContainer() *Node
StartContainer returning attribute 'startContainer' with type Node (idl: Node).
func (*AbstractRange) StartOffset ¶
func (_this *AbstractRange) StartOffset() uint
StartOffset returning attribute 'startOffset' with type uint (idl: unsigned long).
type Attr ¶
type Attr struct {
Node
}
class: Attr
func AttrFromJS ¶
AttrFromJS is casting a js.Wrapper into Attr.
func (*Attr) LocalName ¶
LocalName returning attribute 'localName' with type string (idl: DOMString).
func (*Attr) NamespaceURI ¶
NamespaceURI returning attribute 'namespaceURI' with type string (idl: DOMString).
func (*Attr) OwnerElement ¶
OwnerElement returning attribute 'ownerElement' with type Element (idl: Element).
type CDATASection ¶
type CDATASection struct {
Text
}
class: CDATASection
func CDATASectionFromJS ¶
func CDATASectionFromJS(value js.Wrapper) *CDATASection
CDATASectionFromJS is casting a js.Wrapper into CDATASection.
type CharacterData ¶
type CharacterData struct {
Node
}
class: CharacterData
func CharacterDataFromJS ¶
func CharacterDataFromJS(value js.Wrapper) *CharacterData
CharacterDataFromJS is casting a js.Wrapper into CharacterData.
func (*CharacterData) After ¶
func (_this *CharacterData) After(nodes ...*Union)
func (*CharacterData) AppendData ¶
func (_this *CharacterData) AppendData(data string)
func (*CharacterData) Before ¶
func (_this *CharacterData) Before(nodes ...*Union)
func (*CharacterData) Data ¶
func (_this *CharacterData) Data() string
Data returning attribute 'data' with type string (idl: DOMString).
func (*CharacterData) DeleteData ¶
func (_this *CharacterData) DeleteData(offset uint, count uint)
func (*CharacterData) InsertData ¶
func (_this *CharacterData) InsertData(offset uint, data string)
func (*CharacterData) Length ¶
func (_this *CharacterData) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
func (*CharacterData) NextElementSibling ¶
func (_this *CharacterData) NextElementSibling() *Element
NextElementSibling returning attribute 'nextElementSibling' with type Element (idl: Element).
func (*CharacterData) PreviousElementSibling ¶
func (_this *CharacterData) PreviousElementSibling() *Element
PreviousElementSibling returning attribute 'previousElementSibling' with type Element (idl: Element).
func (*CharacterData) Remove ¶
func (_this *CharacterData) Remove()
func (*CharacterData) ReplaceData ¶
func (_this *CharacterData) ReplaceData(offset uint, count uint, data string)
func (*CharacterData) ReplaceWith ¶
func (_this *CharacterData) ReplaceWith(nodes ...*Union)
func (*CharacterData) SetData ¶
func (_this *CharacterData) SetData(value string)
SetData setting attribute 'data' with type string (idl: DOMString).
func (*CharacterData) SubstringData ¶
func (_this *CharacterData) SubstringData(offset uint, count uint) (_result string)
type Comment ¶
type Comment struct {
CharacterData
}
class: Comment
func CommentFromJS ¶
CommentFromJS is casting a js.Wrapper into Comment.
func NewComment ¶
type DeadFragmentInformation ¶
type DeadFragmentInformation struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: DeadFragmentInformation
func DeadFragmentInformationFromJS ¶
func DeadFragmentInformationFromJS(value js.Wrapper) *DeadFragmentInformation
DeadFragmentInformationFromJS is casting a js.Wrapper into DeadFragmentInformation.
func (*DeadFragmentInformation) Children ¶
func (_this *DeadFragmentInformation) Children() *javascript.FrozenArray
Children returning attribute 'children' with type javascript.FrozenArray (idl: FrozenArray).
func (*DeadFragmentInformation) Height ¶
func (_this *DeadFragmentInformation) Height() float64
Height returning attribute 'height' with type float64 (idl: double).
func (*DeadFragmentInformation) IsOverflowed ¶
func (_this *DeadFragmentInformation) IsOverflowed() bool
IsOverflowed returning attribute 'isOverflowed' with type bool (idl: boolean).
func (*DeadFragmentInformation) JSValue ¶
func (_this *DeadFragmentInformation) JSValue() js.Value
func (*DeadFragmentInformation) Left ¶
func (_this *DeadFragmentInformation) Left() float64
Left returning attribute 'left' with type float64 (idl: double).
func (*DeadFragmentInformation) NextInBox ¶
func (_this *DeadFragmentInformation) NextInBox() *DeadFragmentInformation
NextInBox returning attribute 'nextInBox' with type DeadFragmentInformation (idl: DeadFragmentInformation).
func (*DeadFragmentInformation) NextSibling ¶
func (_this *DeadFragmentInformation) NextSibling() *DeadFragmentInformation
NextSibling returning attribute 'nextSibling' with type DeadFragmentInformation (idl: DeadFragmentInformation).
func (*DeadFragmentInformation) Node ¶
func (_this *DeadFragmentInformation) Node() *Node
Node returning attribute 'node' with type Node (idl: Node).
func (*DeadFragmentInformation) PreviousInBox ¶
func (_this *DeadFragmentInformation) PreviousInBox() *DeadFragmentInformation
PreviousInBox returning attribute 'previousInBox' with type DeadFragmentInformation (idl: DeadFragmentInformation).
func (*DeadFragmentInformation) PreviousSibling ¶
func (_this *DeadFragmentInformation) PreviousSibling() *DeadFragmentInformation
PreviousSibling returning attribute 'previousSibling' with type DeadFragmentInformation (idl: DeadFragmentInformation).
func (*DeadFragmentInformation) Top ¶
func (_this *DeadFragmentInformation) Top() float64
Top returning attribute 'top' with type float64 (idl: double).
func (*DeadFragmentInformation) Width ¶
func (_this *DeadFragmentInformation) Width() float64
Width returning attribute 'width' with type float64 (idl: double).
type DocumentFragment ¶
type DocumentFragment struct {
Node
}
class: DocumentFragment
func DocumentFragmentFromJS ¶
func DocumentFragmentFromJS(value js.Wrapper) *DocumentFragment
DocumentFragmentFromJS is casting a js.Wrapper into DocumentFragment.
func NewDocumentFragment ¶
func NewDocumentFragment() (_result *DocumentFragment)
func (*DocumentFragment) Append ¶
func (_this *DocumentFragment) Append(nodes ...*Union)
func (*DocumentFragment) ChildElementCount ¶
func (_this *DocumentFragment) ChildElementCount() uint
ChildElementCount returning attribute 'childElementCount' with type uint (idl: unsigned long).
func (*DocumentFragment) Children ¶
func (_this *DocumentFragment) Children() *HTMLCollection
Children returning attribute 'children' with type HTMLCollection (idl: HTMLCollection).
func (*DocumentFragment) FirstElementChild ¶
func (_this *DocumentFragment) FirstElementChild() *Element
FirstElementChild returning attribute 'firstElementChild' with type Element (idl: Element).
func (*DocumentFragment) GetElementById ¶
func (_this *DocumentFragment) GetElementById(elementId string) (_result *Element)
func (*DocumentFragment) LastElementChild ¶
func (_this *DocumentFragment) LastElementChild() *Element
LastElementChild returning attribute 'lastElementChild' with type Element (idl: Element).
func (*DocumentFragment) Prepend ¶
func (_this *DocumentFragment) Prepend(nodes ...*Union)
func (*DocumentFragment) QuerySelector ¶
func (_this *DocumentFragment) QuerySelector(selectors string) (_result *Element)
func (*DocumentFragment) QuerySelectorAll ¶
func (_this *DocumentFragment) QuerySelectorAll(selectors string) (_result *NodeList)
type DocumentType ¶
type DocumentType struct {
Node
}
class: DocumentType
func DocumentTypeFromJS ¶
func DocumentTypeFromJS(value js.Wrapper) *DocumentType
DocumentTypeFromJS is casting a js.Wrapper into DocumentType.
func (*DocumentType) After ¶
func (_this *DocumentType) After(nodes ...*Union)
func (*DocumentType) Before ¶
func (_this *DocumentType) Before(nodes ...*Union)
func (*DocumentType) Name ¶
func (_this *DocumentType) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*DocumentType) PublicId ¶
func (_this *DocumentType) PublicId() string
PublicId returning attribute 'publicId' with type string (idl: DOMString).
func (*DocumentType) Remove ¶
func (_this *DocumentType) Remove()
func (*DocumentType) ReplaceWith ¶
func (_this *DocumentType) ReplaceWith(nodes ...*Union)
func (*DocumentType) SystemId ¶
func (_this *DocumentType) SystemId() string
SystemId returning attribute 'systemId' with type string (idl: DOMString).
type Element ¶
type Element struct {
Node
}
class: Element
func ElementFromJS ¶
ElementFromJS is casting a js.Wrapper into Element.
func (*Element) AddEventFullscreenChange ¶
func (_this *Element) AddEventFullscreenChange(listener func(event *domcore.Event, currentTarget *Element)) js.Func
AddFullscreenChange is adding doing AddEventListener for 'FullscreenChange' on target. This method is returning allocated javascript function that need to be released.
func (*Element) AddEventFullscreenError ¶
func (_this *Element) AddEventFullscreenError(listener func(event *domcore.Event, currentTarget *Element)) js.Func
AddFullscreenError is adding doing AddEventListener for 'FullscreenError' on target. This method is returning allocated javascript function that need to be released.
func (*Element) AriaActiveDescendant ¶
AriaActiveDescendant returning attribute 'ariaActiveDescendant' with type string (idl: DOMString).
func (*Element) AriaAtomic ¶
AriaAtomic returning attribute 'ariaAtomic' with type string (idl: DOMString).
func (*Element) AriaAutoComplete ¶
AriaAutoComplete returning attribute 'ariaAutoComplete' with type string (idl: DOMString).
func (*Element) AriaBusy ¶
AriaBusy returning attribute 'ariaBusy' with type string (idl: DOMString).
func (*Element) AriaChecked ¶
AriaChecked returning attribute 'ariaChecked' with type string (idl: DOMString).
func (*Element) AriaColCount ¶
AriaColCount returning attribute 'ariaColCount' with type string (idl: DOMString).
func (*Element) AriaColIndex ¶
AriaColIndex returning attribute 'ariaColIndex' with type string (idl: DOMString).
func (*Element) AriaColSpan ¶
AriaColSpan returning attribute 'ariaColSpan' with type string (idl: DOMString).
func (*Element) AriaControls ¶
AriaControls returning attribute 'ariaControls' with type string (idl: DOMString).
func (*Element) AriaCurrent ¶
AriaCurrent returning attribute 'ariaCurrent' with type string (idl: DOMString).
func (*Element) AriaDescribedBy ¶
AriaDescribedBy returning attribute 'ariaDescribedBy' with type string (idl: DOMString).
func (*Element) AriaDetails ¶
AriaDetails returning attribute 'ariaDetails' with type string (idl: DOMString).
func (*Element) AriaDisabled ¶
AriaDisabled returning attribute 'ariaDisabled' with type string (idl: DOMString).
func (*Element) AriaErrorMessage ¶
AriaErrorMessage returning attribute 'ariaErrorMessage' with type string (idl: DOMString).
func (*Element) AriaExpanded ¶
AriaExpanded returning attribute 'ariaExpanded' with type string (idl: DOMString).
func (*Element) AriaFlowTo ¶
AriaFlowTo returning attribute 'ariaFlowTo' with type string (idl: DOMString).
func (*Element) AriaHasPopup ¶
AriaHasPopup returning attribute 'ariaHasPopup' with type string (idl: DOMString).
func (*Element) AriaHidden ¶
AriaHidden returning attribute 'ariaHidden' with type string (idl: DOMString).
func (*Element) AriaInvalid ¶
AriaInvalid returning attribute 'ariaInvalid' with type string (idl: DOMString).
func (*Element) AriaKeyShortcuts ¶
AriaKeyShortcuts returning attribute 'ariaKeyShortcuts' with type string (idl: DOMString).
func (*Element) AriaLabel ¶
AriaLabel returning attribute 'ariaLabel' with type string (idl: DOMString).
func (*Element) AriaLabelledBy ¶
AriaLabelledBy returning attribute 'ariaLabelledBy' with type string (idl: DOMString).
func (*Element) AriaLevel ¶
AriaLevel returning attribute 'ariaLevel' with type string (idl: DOMString).
func (*Element) AriaLive ¶
AriaLive returning attribute 'ariaLive' with type string (idl: DOMString).
func (*Element) AriaModal ¶
AriaModal returning attribute 'ariaModal' with type string (idl: DOMString).
func (*Element) AriaMultiLine ¶
AriaMultiLine returning attribute 'ariaMultiLine' with type string (idl: DOMString).
func (*Element) AriaMultiSelectable ¶
AriaMultiSelectable returning attribute 'ariaMultiSelectable' with type string (idl: DOMString).
func (*Element) AriaOrientation ¶
AriaOrientation returning attribute 'ariaOrientation' with type string (idl: DOMString).
func (*Element) AriaOwns ¶
AriaOwns returning attribute 'ariaOwns' with type string (idl: DOMString).
func (*Element) AriaPlaceholder ¶
AriaPlaceholder returning attribute 'ariaPlaceholder' with type string (idl: DOMString).
func (*Element) AriaPosInSet ¶
AriaPosInSet returning attribute 'ariaPosInSet' with type string (idl: DOMString).
func (*Element) AriaPressed ¶
AriaPressed returning attribute 'ariaPressed' with type string (idl: DOMString).
func (*Element) AriaReadOnly ¶
AriaReadOnly returning attribute 'ariaReadOnly' with type string (idl: DOMString).
func (*Element) AriaRelevant ¶
AriaRelevant returning attribute 'ariaRelevant' with type string (idl: DOMString).
func (*Element) AriaRequired ¶
AriaRequired returning attribute 'ariaRequired' with type string (idl: DOMString).
func (*Element) AriaRoleDescription ¶
AriaRoleDescription returning attribute 'ariaRoleDescription' with type string (idl: DOMString).
func (*Element) AriaRowCount ¶
AriaRowCount returning attribute 'ariaRowCount' with type string (idl: DOMString).
func (*Element) AriaRowIndex ¶
AriaRowIndex returning attribute 'ariaRowIndex' with type string (idl: DOMString).
func (*Element) AriaRowSpan ¶
AriaRowSpan returning attribute 'ariaRowSpan' with type string (idl: DOMString).
func (*Element) AriaSelected ¶
AriaSelected returning attribute 'ariaSelected' with type string (idl: DOMString).
func (*Element) AriaSetSize ¶
AriaSetSize returning attribute 'ariaSetSize' with type string (idl: DOMString).
func (*Element) AriaSort ¶
AriaSort returning attribute 'ariaSort' with type string (idl: DOMString).
func (*Element) AriaValueMax ¶
AriaValueMax returning attribute 'ariaValueMax' with type string (idl: DOMString).
func (*Element) AriaValueMin ¶
AriaValueMin returning attribute 'ariaValueMin' with type string (idl: DOMString).
func (*Element) AriaValueNow ¶
AriaValueNow returning attribute 'ariaValueNow' with type string (idl: DOMString).
func (*Element) AriaValueText ¶
AriaValueText returning attribute 'ariaValueText' with type string (idl: DOMString).
func (*Element) AssignedSlot ¶
AssignedSlot returning attribute 'assignedSlot' with type js.Value (idl: HTMLSlotElement).
Example ¶
package main import ( "github.com/gowebapi/webapi/dom" "github.com/gowebapi/webapi/html" ) func main() { var element *dom.Element // cast to correct type value := html.HTMLSlotElementFromJS(element.AssignedSlot()) // do something with value _ = value }
Output:
func (*Element) AttachShadow ¶
func (_this *Element) AttachShadow(init *ShadowRootInit) (_result *ShadowRoot)
func (*Element) Attributes ¶
func (_this *Element) Attributes() *NamedNodeMap
Attributes returning attribute 'attributes' with type NamedNodeMap (idl: NamedNodeMap).
func (*Element) ChildElementCount ¶
ChildElementCount returning attribute 'childElementCount' with type uint (idl: unsigned long).
func (*Element) Children ¶
func (_this *Element) Children() *HTMLCollection
Children returning attribute 'children' with type HTMLCollection (idl: HTMLCollection).
func (*Element) ClassList ¶
func (_this *Element) ClassList() *domcore.DOMTokenList
ClassList returning attribute 'classList' with type domcore.DOMTokenList (idl: DOMTokenList).
func (*Element) ClassName ¶
ClassName returning attribute 'className' with type string (idl: DOMString).
func (*Element) ClientHeight ¶
ClientHeight returning attribute 'clientHeight' with type int (idl: long).
func (*Element) ClientLeft ¶
ClientLeft returning attribute 'clientLeft' with type int (idl: long).
func (*Element) ClientWidth ¶
ClientWidth returning attribute 'clientWidth' with type int (idl: long).
func (*Element) ComputedStyleMap ¶
func (_this *Element) ComputedStyleMap() (_result *typedom.StylePropertyMapReadOnly)
func (*Element) ConvertPointFromNode ¶
func (_this *Element) ConvertPointFromNode(point *geometry.DOMPointInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMPoint)
func (*Element) ConvertQuadFromNode ¶
func (_this *Element) ConvertQuadFromNode(quad *geometry.DOMQuadInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)
func (*Element) ConvertRectFromNode ¶
func (_this *Element) ConvertRectFromNode(rect *geometry.DOMRectReadOnly, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)
func (*Element) FirstElementChild ¶
FirstElementChild returning attribute 'firstElementChild' with type Element (idl: Element).
func (*Element) GetAnimations ¶
func (*Element) GetAttribute ¶
func (*Element) GetAttributeNS ¶
func (*Element) GetAttributeNames ¶
func (*Element) GetAttributeNode ¶
func (*Element) GetAttributeNodeNS ¶
func (*Element) GetBoundingClientRect ¶
func (*Element) GetBoxQuads ¶
func (_this *Element) GetBoxQuads(options *view.BoxQuadOptions) (_result []*geometry.DOMQuad)
func (*Element) GetClientRects ¶
func (_this *Element) GetClientRects() (_result *geometry.DOMRectList)
func (*Element) GetElementsByClassName ¶
func (_this *Element) GetElementsByClassName(classNames string) (_result *HTMLCollection)
func (*Element) GetElementsByTagName ¶
func (_this *Element) GetElementsByTagName(qualifiedName string) (_result *HTMLCollection)
func (*Element) GetElementsByTagNameNS ¶
func (_this *Element) GetElementsByTagNameNS(namespace *string, localName string) (_result *HTMLCollection)
func (*Element) GetFragmentInformation ¶
func (_this *Element) GetFragmentInformation(filter FragmentFilter) (_result *PromiseDeadFragmentInformation)
func (*Element) HasAttribute ¶
func (*Element) HasAttributeNS ¶
func (*Element) HasAttributes ¶
func (*Element) HasPointerCapture ¶
func (*Element) InnerHTML ¶
InnerHTML returning attribute 'innerHTML' with type string (idl: DOMString).
func (*Element) InsertAdjacentElement ¶
func (*Element) InsertAdjacentHTML ¶
func (*Element) InsertAdjacentText ¶
func (*Element) LastElementChild ¶
LastElementChild returning attribute 'lastElementChild' with type Element (idl: Element).
func (*Element) LocalName ¶
LocalName returning attribute 'localName' with type string (idl: DOMString).
func (*Element) NamespaceURI ¶
NamespaceURI returning attribute 'namespaceURI' with type string (idl: DOMString).
func (*Element) NextElementSibling ¶
NextElementSibling returning attribute 'nextElementSibling' with type Element (idl: Element).
func (*Element) OnFullscreenChange ¶
func (_this *Element) OnFullscreenChange() domcore.EventHandlerFunc
OnFullscreenChange returning attribute 'onfullscreenchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Element) OnFullscreenError ¶
func (_this *Element) OnFullscreenError() domcore.EventHandlerFunc
OnFullscreenError returning attribute 'onfullscreenerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Element) OuterHTML ¶
OuterHTML returning attribute 'outerHTML' with type string (idl: DOMString).
func (*Element) PreviousElementSibling ¶
PreviousElementSibling returning attribute 'previousElementSibling' with type Element (idl: Element).
func (*Element) QuerySelector ¶
func (*Element) QuerySelectorAll ¶
func (*Element) ReleasePointerCapture ¶
func (*Element) RemoveAttribute ¶
func (*Element) RemoveAttributeNS ¶
func (*Element) RemoveAttributeNode ¶
func (*Element) ReplaceWith ¶
func (*Element) RequestFullscreen ¶
func (_this *Element) RequestFullscreen(options *FullscreenOptions) (_result *javascript.PromiseVoid)
func (*Element) RequestFullscreenByBrowser ¶
func (t *Element) RequestFullscreenByBrowser()
RequestFullscreenByBrowser is an alternative way to request fullscreen that works for different browsers.
func (*Element) RequestPointerLock ¶
func (_this *Element) RequestPointerLock()
func (*Element) Scroll ¶
func (_this *Element) Scroll(options *view.ScrollToOptions)
func (*Element) ScrollBy ¶
func (_this *Element) ScrollBy(options *view.ScrollToOptions)
func (*Element) ScrollHeight ¶
ScrollHeight returning attribute 'scrollHeight' with type int (idl: long).
func (*Element) ScrollIntoView ¶
func (*Element) ScrollLeft ¶
ScrollLeft returning attribute 'scrollLeft' with type float64 (idl: unrestricted double).
func (*Element) ScrollTo ¶
func (_this *Element) ScrollTo(options *view.ScrollToOptions)
func (*Element) ScrollTop ¶
ScrollTop returning attribute 'scrollTop' with type float64 (idl: unrestricted double).
func (*Element) ScrollWidth ¶
ScrollWidth returning attribute 'scrollWidth' with type int (idl: long).
func (*Element) SetAriaActiveDescendant ¶
SetAriaActiveDescendant setting attribute 'ariaActiveDescendant' with type string (idl: DOMString).
func (*Element) SetAriaAtomic ¶
SetAriaAtomic setting attribute 'ariaAtomic' with type string (idl: DOMString).
func (*Element) SetAriaAutoComplete ¶
SetAriaAutoComplete setting attribute 'ariaAutoComplete' with type string (idl: DOMString).
func (*Element) SetAriaBusy ¶
SetAriaBusy setting attribute 'ariaBusy' with type string (idl: DOMString).
func (*Element) SetAriaChecked ¶
SetAriaChecked setting attribute 'ariaChecked' with type string (idl: DOMString).
func (*Element) SetAriaColCount ¶
SetAriaColCount setting attribute 'ariaColCount' with type string (idl: DOMString).
func (*Element) SetAriaColIndex ¶
SetAriaColIndex setting attribute 'ariaColIndex' with type string (idl: DOMString).
func (*Element) SetAriaColSpan ¶
SetAriaColSpan setting attribute 'ariaColSpan' with type string (idl: DOMString).
func (*Element) SetAriaControls ¶
SetAriaControls setting attribute 'ariaControls' with type string (idl: DOMString).
func (*Element) SetAriaCurrent ¶
SetAriaCurrent setting attribute 'ariaCurrent' with type string (idl: DOMString).
func (*Element) SetAriaDescribedBy ¶
SetAriaDescribedBy setting attribute 'ariaDescribedBy' with type string (idl: DOMString).
func (*Element) SetAriaDetails ¶
SetAriaDetails setting attribute 'ariaDetails' with type string (idl: DOMString).
func (*Element) SetAriaDisabled ¶
SetAriaDisabled setting attribute 'ariaDisabled' with type string (idl: DOMString).
func (*Element) SetAriaErrorMessage ¶
SetAriaErrorMessage setting attribute 'ariaErrorMessage' with type string (idl: DOMString).
func (*Element) SetAriaExpanded ¶
SetAriaExpanded setting attribute 'ariaExpanded' with type string (idl: DOMString).
func (*Element) SetAriaFlowTo ¶
SetAriaFlowTo setting attribute 'ariaFlowTo' with type string (idl: DOMString).
func (*Element) SetAriaHasPopup ¶
SetAriaHasPopup setting attribute 'ariaHasPopup' with type string (idl: DOMString).
func (*Element) SetAriaHidden ¶
SetAriaHidden setting attribute 'ariaHidden' with type string (idl: DOMString).
func (*Element) SetAriaInvalid ¶
SetAriaInvalid setting attribute 'ariaInvalid' with type string (idl: DOMString).
func (*Element) SetAriaKeyShortcuts ¶
SetAriaKeyShortcuts setting attribute 'ariaKeyShortcuts' with type string (idl: DOMString).
func (*Element) SetAriaLabel ¶
SetAriaLabel setting attribute 'ariaLabel' with type string (idl: DOMString).
func (*Element) SetAriaLabelledBy ¶
SetAriaLabelledBy setting attribute 'ariaLabelledBy' with type string (idl: DOMString).
func (*Element) SetAriaLevel ¶
SetAriaLevel setting attribute 'ariaLevel' with type string (idl: DOMString).
func (*Element) SetAriaLive ¶
SetAriaLive setting attribute 'ariaLive' with type string (idl: DOMString).
func (*Element) SetAriaModal ¶
SetAriaModal setting attribute 'ariaModal' with type string (idl: DOMString).
func (*Element) SetAriaMultiLine ¶
SetAriaMultiLine setting attribute 'ariaMultiLine' with type string (idl: DOMString).
func (*Element) SetAriaMultiSelectable ¶
SetAriaMultiSelectable setting attribute 'ariaMultiSelectable' with type string (idl: DOMString).
func (*Element) SetAriaOrientation ¶
SetAriaOrientation setting attribute 'ariaOrientation' with type string (idl: DOMString).
func (*Element) SetAriaOwns ¶
SetAriaOwns setting attribute 'ariaOwns' with type string (idl: DOMString).
func (*Element) SetAriaPlaceholder ¶
SetAriaPlaceholder setting attribute 'ariaPlaceholder' with type string (idl: DOMString).
func (*Element) SetAriaPosInSet ¶
SetAriaPosInSet setting attribute 'ariaPosInSet' with type string (idl: DOMString).
func (*Element) SetAriaPressed ¶
SetAriaPressed setting attribute 'ariaPressed' with type string (idl: DOMString).
func (*Element) SetAriaReadOnly ¶
SetAriaReadOnly setting attribute 'ariaReadOnly' with type string (idl: DOMString).
func (*Element) SetAriaRelevant ¶
SetAriaRelevant setting attribute 'ariaRelevant' with type string (idl: DOMString).
func (*Element) SetAriaRequired ¶
SetAriaRequired setting attribute 'ariaRequired' with type string (idl: DOMString).
func (*Element) SetAriaRoleDescription ¶
SetAriaRoleDescription setting attribute 'ariaRoleDescription' with type string (idl: DOMString).
func (*Element) SetAriaRowCount ¶
SetAriaRowCount setting attribute 'ariaRowCount' with type string (idl: DOMString).
func (*Element) SetAriaRowIndex ¶
SetAriaRowIndex setting attribute 'ariaRowIndex' with type string (idl: DOMString).
func (*Element) SetAriaRowSpan ¶
SetAriaRowSpan setting attribute 'ariaRowSpan' with type string (idl: DOMString).
func (*Element) SetAriaSelected ¶
SetAriaSelected setting attribute 'ariaSelected' with type string (idl: DOMString).
func (*Element) SetAriaSetSize ¶
SetAriaSetSize setting attribute 'ariaSetSize' with type string (idl: DOMString).
func (*Element) SetAriaSort ¶
SetAriaSort setting attribute 'ariaSort' with type string (idl: DOMString).
func (*Element) SetAriaValueMax ¶
SetAriaValueMax setting attribute 'ariaValueMax' with type string (idl: DOMString).
func (*Element) SetAriaValueMin ¶
SetAriaValueMin setting attribute 'ariaValueMin' with type string (idl: DOMString).
func (*Element) SetAriaValueNow ¶
SetAriaValueNow setting attribute 'ariaValueNow' with type string (idl: DOMString).
func (*Element) SetAriaValueText ¶
SetAriaValueText setting attribute 'ariaValueText' with type string (idl: DOMString).
func (*Element) SetAttribute ¶
func (*Element) SetAttributeNS ¶
func (*Element) SetAttributeNode ¶
func (*Element) SetAttributeNodeNS ¶
func (*Element) SetClassName ¶
SetClassName setting attribute 'className' with type string (idl: DOMString).
func (*Element) SetInnerHTML ¶
SetInnerHTML setting attribute 'innerHTML' with type string (idl: DOMString).
func (*Element) SetOnFullscreenChange ¶
func (_this *Element) SetOnFullscreenChange(listener func(event *domcore.Event, currentTarget *Element)) js.Func
SetOnFullscreenChange is assigning a function to 'onfullscreenchange'. This This method is returning allocated javascript function that need to be released.
func (*Element) SetOnFullscreenError ¶
func (_this *Element) SetOnFullscreenError(listener func(event *domcore.Event, currentTarget *Element)) js.Func
SetOnFullscreenError is assigning a function to 'onfullscreenerror'. This This method is returning allocated javascript function that need to be released.
func (*Element) SetOuterHTML ¶
SetOuterHTML setting attribute 'outerHTML' with type string (idl: DOMString).
func (*Element) SetPointerCapture ¶
func (*Element) SetScrollLeft ¶
SetScrollLeft setting attribute 'scrollLeft' with type float64 (idl: unrestricted double).
func (*Element) SetScrollTop ¶
SetScrollTop setting attribute 'scrollTop' with type float64 (idl: unrestricted double).
func (*Element) ShadowRoot ¶
func (_this *Element) ShadowRoot() *ShadowRoot
ShadowRoot returning attribute 'shadowRoot' with type ShadowRoot (idl: ShadowRoot).
func (*Element) ToggleAttribute ¶
func (*Element) WebkitMatchesSelector ¶
type FragmentFilter ¶
type FragmentFilter int
enum: FragmentFilter
const ( DirectFragmentsOnlyFragmentFilter FragmentFilter = iota FragmentHierarchyFragmentFilter )
func FragmentFilterFromJS ¶
func FragmentFilterFromJS(value js.Value) FragmentFilter
FragmentFilterFromJS is converting a javascript value into a FragmentFilter enum value.
func (*FragmentFilter) JSValue ¶
func (this *FragmentFilter) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (FragmentFilter) Value ¶
func (this FragmentFilter) Value() string
Value is converting this into javascript defined string value
type FullscreenNavigationUI ¶
type FullscreenNavigationUI int
enum: FullscreenNavigationUI
const ()
func FullscreenNavigationUIFromJS ¶
func FullscreenNavigationUIFromJS(value js.Value) FullscreenNavigationUI
FullscreenNavigationUIFromJS is converting a javascript value into a FullscreenNavigationUI enum value.
func (*FullscreenNavigationUI) JSValue ¶
func (this *FullscreenNavigationUI) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (FullscreenNavigationUI) Value ¶
func (this FullscreenNavigationUI) Value() string
Value is converting this into javascript defined string value
type FullscreenOptions ¶
type FullscreenOptions struct {
}dictionary: FullscreenOptions
func FullscreenOptionsFromJS ¶
func FullscreenOptionsFromJS(value js.Wrapper) *FullscreenOptions
FullscreenOptionsFromJS is allocating a new FullscreenOptions object and copy all values from input javascript object
func (*FullscreenOptions) JSValue ¶
func (_this *FullscreenOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type GetRootNodeOptions ¶
type GetRootNodeOptions struct {
Composed bool
}
dictionary: GetRootNodeOptions
func GetRootNodeOptionsFromJS ¶
func GetRootNodeOptionsFromJS(value js.Wrapper) *GetRootNodeOptions
GetRootNodeOptionsFromJS is allocating a new GetRootNodeOptions object and copy all values from input javascript object
func (*GetRootNodeOptions) JSValue ¶
func (_this *GetRootNodeOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type HTMLCollection ¶
type HTMLCollection struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: HTMLCollection
func HTMLCollectionFromJS ¶
func HTMLCollectionFromJS(value js.Wrapper) *HTMLCollection
HTMLCollectionFromJS is casting a js.Wrapper into HTMLCollection.
func (*HTMLCollection) Get ¶
func (_this *HTMLCollection) Get(name string) (_result *Element)
func (*HTMLCollection) Index ¶
func (_this *HTMLCollection) Index(index uint) (_result *Element)
func (*HTMLCollection) Item ¶
func (_this *HTMLCollection) Item(index uint) (_result *Element)
func (*HTMLCollection) JSValue ¶
func (_this *HTMLCollection) JSValue() js.Value
func (*HTMLCollection) Length ¶
func (_this *HTMLCollection) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
func (*HTMLCollection) NamedItem ¶
func (_this *HTMLCollection) NamedItem(name string) (_result *Element)
type NamedNodeMap ¶
class: NamedNodeMap
func NamedNodeMapFromJS ¶
func NamedNodeMapFromJS(value js.Wrapper) *NamedNodeMap
NamedNodeMapFromJS is casting a js.Wrapper into NamedNodeMap.
func (*NamedNodeMap) Get ¶
func (_this *NamedNodeMap) Get(qualifiedName string) (_result *Attr)
func (*NamedNodeMap) GetNamedItem ¶
func (_this *NamedNodeMap) GetNamedItem(qualifiedName string) (_result *Attr)
func (*NamedNodeMap) GetNamedItemNS ¶
func (_this *NamedNodeMap) GetNamedItemNS(namespace *string, localName string) (_result *Attr)
func (*NamedNodeMap) Index ¶
func (_this *NamedNodeMap) Index(index uint) (_result *Attr)
func (*NamedNodeMap) Item ¶
func (_this *NamedNodeMap) Item(index uint) (_result *Attr)
func (*NamedNodeMap) JSValue ¶
func (_this *NamedNodeMap) JSValue() js.Value
func (*NamedNodeMap) Length ¶
func (_this *NamedNodeMap) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
func (*NamedNodeMap) RemoveNamedItem ¶
func (_this *NamedNodeMap) RemoveNamedItem(qualifiedName string) (_result *Attr)
func (*NamedNodeMap) RemoveNamedItemNS ¶
func (_this *NamedNodeMap) RemoveNamedItemNS(namespace *string, localName string) (_result *Attr)
func (*NamedNodeMap) SetNamedItem ¶
func (_this *NamedNodeMap) SetNamedItem(attr *Attr) (_result *Attr)
func (*NamedNodeMap) SetNamedItemNS ¶
func (_this *NamedNodeMap) SetNamedItemNS(attr *Attr) (_result *Attr)
type Node ¶
type Node struct {
domcore.EventTarget
}
class: Node
func NodeFromJS ¶
NodeFromJS is casting a js.Wrapper into Node.
func (*Node) AppendChild ¶
func (*Node) ChildNodes ¶
ChildNodes returning attribute 'childNodes' with type NodeList (idl: NodeList).
func (*Node) CompareDocumentPosition ¶
func (*Node) FirstChild ¶
FirstChild returning attribute 'firstChild' with type Node (idl: Node).
func (*Node) GetRootNode ¶
func (_this *Node) GetRootNode(options *GetRootNodeOptions) (_result *Node)
func (*Node) HasChildNodes ¶
func (*Node) InsertBefore ¶
func (*Node) IsConnected ¶
IsConnected returning attribute 'isConnected' with type bool (idl: boolean).
func (*Node) IsDefaultNamespace ¶
func (*Node) IsEqualNode ¶
func (*Node) IsSameNode ¶
func (*Node) LookupNamespaceURI ¶
func (*Node) LookupPrefix ¶
func (*Node) NextSibling ¶
NextSibling returning attribute 'nextSibling' with type Node (idl: Node).
func (*Node) NodeType ¶
NodeType returning attribute 'nodeType' with type int (idl: unsigned short).
func (*Node) NodeValue ¶
NodeValue returning attribute 'nodeValue' with type string (idl: DOMString).
func (*Node) OwnerDocument ¶
OwnerDocument returning attribute 'ownerDocument' with type js.Value (idl: Document).
Example ¶
package main import ( "github.com/gowebapi/webapi" "github.com/gowebapi/webapi/dom" ) func main() { var node *dom.Node // cast to correct type value := webapi.DocumentFromJS(node.OwnerDocument()) // do something with value _ = value }
Output:
func (*Node) ParentElement ¶
ParentElement returning attribute 'parentElement' with type Element (idl: Element).
func (*Node) ParentNode ¶
ParentNode returning attribute 'parentNode' with type Node (idl: Node).
func (*Node) PreviousSibling ¶
PreviousSibling returning attribute 'previousSibling' with type Node (idl: Node).
func (*Node) RemoveChild ¶
func (*Node) ReplaceChild ¶
func (*Node) SetNodeValue ¶
SetNodeValue setting attribute 'nodeValue' with type string (idl: DOMString).
func (*Node) SetTextContent ¶
SetTextContent setting attribute 'textContent' with type string (idl: DOMString).
func (*Node) TextContent ¶
TextContent returning attribute 'textContent' with type string (idl: DOMString).
type NodeFilter ¶
NodeFilter is a callback interface.
type NodeFilterValue ¶
type NodeFilterValue struct { // Value is the underlying javascript object or function. Value js.Value // Functions is the underlying function objects that is allocated for the interface callback Functions [1]js.Func // contains filtered or unexported fields }
NodeFilterValue is javascript reference value for callback interface NodeFilter. This is holding the underlaying javascript object.
func NewNodeFilter ¶
func NewNodeFilter(callback NodeFilter) *NodeFilterValue
NewNodeFilter is allocating a new javascript object that implements NodeFilter.
func NewNodeFilterFunc ¶
func NewNodeFilterFunc(f func(node *Node) (_result int)) *NodeFilterValue
NewNodeFilterFunc is allocating a new javascript function is implements NodeFilter interface.
func NodeFilterFromJS ¶
func NodeFilterFromJS(value js.Wrapper) *NodeFilterValue
NodeFilterFromJS is taking an javascript object that reference to a callback interface and return a corresponding interface that can be used to invoke on that element.
func (*NodeFilterValue) AcceptNode ¶
func (_this *NodeFilterValue) AcceptNode(node *Node) (_result int)
func (*NodeFilterValue) JSValue ¶
func (t *NodeFilterValue) JSValue() js.Value
JSValue is returning the javascript object that implements this callback interface
func (*NodeFilterValue) Release ¶
func (t *NodeFilterValue) Release()
Release is releasing all resources that is allocated.
type NodeIterator ¶
class: NodeIterator
func NodeIteratorFromJS ¶
func NodeIteratorFromJS(value js.Wrapper) *NodeIterator
NodeIteratorFromJS is casting a js.Wrapper into NodeIterator.
func (*NodeIterator) Detach ¶
func (_this *NodeIterator) Detach()
func (*NodeIterator) Filter ¶
func (_this *NodeIterator) Filter() NodeFilter
Filter returning attribute 'filter' with type NodeFilter (idl: NodeFilter).
func (*NodeIterator) JSValue ¶
func (_this *NodeIterator) JSValue() js.Value
func (*NodeIterator) NextNode ¶
func (_this *NodeIterator) NextNode() (_result *Node)
func (*NodeIterator) PointerBeforeReferenceNode ¶
func (_this *NodeIterator) PointerBeforeReferenceNode() bool
PointerBeforeReferenceNode returning attribute 'pointerBeforeReferenceNode' with type bool (idl: boolean).
func (*NodeIterator) PreviousNode ¶
func (_this *NodeIterator) PreviousNode() (_result *Node)
func (*NodeIterator) ReferenceNode ¶
func (_this *NodeIterator) ReferenceNode() *Node
ReferenceNode returning attribute 'referenceNode' with type Node (idl: Node).
func (*NodeIterator) Root ¶
func (_this *NodeIterator) Root() *Node
Root returning attribute 'root' with type Node (idl: Node).
func (*NodeIterator) WhatToShow ¶
func (_this *NodeIterator) WhatToShow() uint
WhatToShow returning attribute 'whatToShow' with type uint (idl: unsigned long).
type NodeList ¶
class: NodeList
func NodeListFromJS ¶
NodeListFromJS is casting a js.Wrapper into NodeList.
func (*NodeList) Entries ¶
func (_this *NodeList) Entries() (_result *NodeListEntryIterator)
func (*NodeList) ForEach ¶
func (_this *NodeList) ForEach(callback *NodeListForEach, optionalThisForCallbackArgument interface{})
func (*NodeList) Keys ¶
func (_this *NodeList) Keys() (_result *NodeListKeyIterator)
func (*NodeList) Values ¶
func (_this *NodeList) Values() (_result *NodeListValueIterator)
type NodeListEntryIterator ¶
type NodeListEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: NodeListEntryIterator
func NodeListEntryIteratorFromJS ¶
func NodeListEntryIteratorFromJS(value js.Wrapper) *NodeListEntryIterator
NodeListEntryIteratorFromJS is casting a js.Wrapper into NodeListEntryIterator.
func (*NodeListEntryIterator) JSValue ¶
func (_this *NodeListEntryIterator) JSValue() js.Value
func (*NodeListEntryIterator) Next ¶
func (_this *NodeListEntryIterator) Next() (_result *NodeListEntryIteratorValue)
type NodeListEntryIteratorValue ¶
dictionary: NodeListEntryIteratorValue
func NodeListEntryIteratorValueFromJS ¶
func NodeListEntryIteratorValueFromJS(value js.Wrapper) *NodeListEntryIteratorValue
NodeListEntryIteratorValueFromJS is allocating a new NodeListEntryIteratorValue object and copy all values from input javascript object
func (*NodeListEntryIteratorValue) JSValue ¶
func (_this *NodeListEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type NodeListForEach ¶
NodeListForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func NodeListForEachToJS ¶
func NodeListForEachToJS(callback NodeListForEachFunc) *NodeListForEach
type NodeListForEachFunc ¶
callback: NodeListForEach
func NodeListForEachFromJS ¶
func NodeListForEachFromJS(_value js.Value) NodeListForEachFunc
type NodeListKeyIterator ¶
type NodeListKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: NodeListKeyIterator
func NodeListKeyIteratorFromJS ¶
func NodeListKeyIteratorFromJS(value js.Wrapper) *NodeListKeyIterator
NodeListKeyIteratorFromJS is casting a js.Wrapper into NodeListKeyIterator.
func (*NodeListKeyIterator) JSValue ¶
func (_this *NodeListKeyIterator) JSValue() js.Value
func (*NodeListKeyIterator) Next ¶
func (_this *NodeListKeyIterator) Next() (_result *NodeListKeyIteratorValue)
type NodeListKeyIteratorValue ¶
dictionary: NodeListKeyIteratorValue
func NodeListKeyIteratorValueFromJS ¶
func NodeListKeyIteratorValueFromJS(value js.Wrapper) *NodeListKeyIteratorValue
NodeListKeyIteratorValueFromJS is allocating a new NodeListKeyIteratorValue object and copy all values from input javascript object
func (*NodeListKeyIteratorValue) JSValue ¶
func (_this *NodeListKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type NodeListValueIterator ¶
type NodeListValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: NodeListValueIterator
func NodeListValueIteratorFromJS ¶
func NodeListValueIteratorFromJS(value js.Wrapper) *NodeListValueIterator
NodeListValueIteratorFromJS is casting a js.Wrapper into NodeListValueIterator.
func (*NodeListValueIterator) JSValue ¶
func (_this *NodeListValueIterator) JSValue() js.Value
func (*NodeListValueIterator) Next ¶
func (_this *NodeListValueIterator) Next() (_result *NodeListValueIteratorValue)
type NodeListValueIteratorValue ¶
dictionary: NodeListValueIteratorValue
func NodeListValueIteratorValueFromJS ¶
func NodeListValueIteratorValueFromJS(value js.Wrapper) *NodeListValueIteratorValue
NodeListValueIteratorValueFromJS is allocating a new NodeListValueIteratorValue object and copy all values from input javascript object
func (*NodeListValueIteratorValue) JSValue ¶
func (_this *NodeListValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type ProcessingInstruction ¶
type ProcessingInstruction struct {
CharacterData
}
class: ProcessingInstruction
func ProcessingInstructionFromJS ¶
func ProcessingInstructionFromJS(value js.Wrapper) *ProcessingInstruction
ProcessingInstructionFromJS is casting a js.Wrapper into ProcessingInstruction.
func (*ProcessingInstruction) Sheet ¶
func (_this *ProcessingInstruction) Sheet() *cssom.CSSStyleSheet
Sheet returning attribute 'sheet' with type cssom.CSSStyleSheet (idl: CSSStyleSheet).
func (*ProcessingInstruction) Target ¶
func (_this *ProcessingInstruction) Target() string
Target returning attribute 'target' with type string (idl: DOMString).
type PromiseDeadFragmentInformation ¶
type PromiseDeadFragmentInformation struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseDeadFragmentInformationFromJS ¶
func PromiseDeadFragmentInformationFromJS(value js.Wrapper) *PromiseDeadFragmentInformation
PromiseDeadFragmentInformationFromJS is casting a js.Wrapper into PromiseDeadFragmentInformation.
func (*PromiseDeadFragmentInformation) Catch ¶
func (_this *PromiseDeadFragmentInformation) Catch(onRejected *PromiseDeadFragmentInformationOnRejected) (_result *PromiseDeadFragmentInformation)
func (*PromiseDeadFragmentInformation) Finally ¶
func (_this *PromiseDeadFragmentInformation) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseDeadFragmentInformation)
func (*PromiseDeadFragmentInformation) JSValue ¶
func (_this *PromiseDeadFragmentInformation) JSValue() js.Value
func (*PromiseDeadFragmentInformation) Then ¶
func (_this *PromiseDeadFragmentInformation) Then(onFulfilled *PromiseDeadFragmentInformationOnFulfilled, onRejected *PromiseDeadFragmentInformationOnRejected) (_result *PromiseDeadFragmentInformation)
type PromiseDeadFragmentInformationOnFulfilled ¶
PromiseDeadFragmentInformationOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseDeadFragmentInformationOnFulfilledToJS ¶
func PromiseDeadFragmentInformationOnFulfilledToJS(callback PromiseDeadFragmentInformationOnFulfilledFunc) *PromiseDeadFragmentInformationOnFulfilled
type PromiseDeadFragmentInformationOnFulfilledFunc ¶
type PromiseDeadFragmentInformationOnFulfilledFunc func(value *DeadFragmentInformation)
callback: PromiseTemplateOnFulfilled
func PromiseDeadFragmentInformationOnFulfilledFromJS ¶
func PromiseDeadFragmentInformationOnFulfilledFromJS(_value js.Value) PromiseDeadFragmentInformationOnFulfilledFunc
type PromiseDeadFragmentInformationOnRejected ¶
PromiseDeadFragmentInformationOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseDeadFragmentInformationOnRejectedToJS ¶
func PromiseDeadFragmentInformationOnRejectedToJS(callback PromiseDeadFragmentInformationOnRejectedFunc) *PromiseDeadFragmentInformationOnRejected
type PromiseDeadFragmentInformationOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseDeadFragmentInformationOnRejectedFromJS ¶
func PromiseDeadFragmentInformationOnRejectedFromJS(_value js.Value) PromiseDeadFragmentInformationOnRejectedFunc
type Range ¶
type Range struct {
AbstractRange
}
class: Range
func RangeFromJS ¶
RangeFromJS is casting a js.Wrapper into Range.
func (*Range) CloneContents ¶
func (_this *Range) CloneContents() (_result *DocumentFragment)
func (*Range) CloneRange ¶
func (*Range) CommonAncestorContainer ¶
CommonAncestorContainer returning attribute 'commonAncestorContainer' with type Node (idl: Node).
func (*Range) CompareBoundaryPoints ¶
func (*Range) ComparePoint ¶
func (*Range) CreateContextualFragment ¶
func (_this *Range) CreateContextualFragment(fragment string) (_result *DocumentFragment)
func (*Range) DeleteContents ¶
func (_this *Range) DeleteContents()
func (*Range) ExtractContents ¶
func (_this *Range) ExtractContents() (_result *DocumentFragment)
func (*Range) GetBoundingClientRect ¶
func (*Range) GetClientRects ¶
func (_this *Range) GetClientRects() (_result *geometry.DOMRectList)
func (*Range) InsertNode ¶
func (*Range) IntersectsNode ¶
func (*Range) IsPointInRange ¶
func (*Range) SelectNode ¶
func (*Range) SelectNodeContents ¶
func (*Range) SetEndAfter ¶
func (*Range) SetEndBefore ¶
func (*Range) SetStartAfter ¶
func (*Range) SetStartBefore ¶
func (*Range) SurroundContents ¶
type ShadowRoot ¶
type ShadowRoot struct {
DocumentFragment
}
class: ShadowRoot
func ShadowRootFromJS ¶
func ShadowRootFromJS(value js.Wrapper) *ShadowRoot
ShadowRootFromJS is casting a js.Wrapper into ShadowRoot.
func (*ShadowRoot) FullscreenElement ¶
func (_this *ShadowRoot) FullscreenElement() *Element
FullscreenElement returning attribute 'fullscreenElement' with type Element (idl: Element).
func (*ShadowRoot) Host ¶
func (_this *ShadowRoot) Host() *Element
Host returning attribute 'host' with type Element (idl: Element).
func (*ShadowRoot) Mode ¶
func (_this *ShadowRoot) Mode() ShadowRootMode
Mode returning attribute 'mode' with type ShadowRootMode (idl: ShadowRootMode).
func (*ShadowRoot) PictureInPictureElement ¶
func (_this *ShadowRoot) PictureInPictureElement() *Element
PictureInPictureElement returning attribute 'pictureInPictureElement' with type Element (idl: Element).
func (*ShadowRoot) PointerLockElement ¶
func (_this *ShadowRoot) PointerLockElement() *Element
PointerLockElement returning attribute 'pointerLockElement' with type Element (idl: Element).
func (*ShadowRoot) StyleSheets ¶
func (_this *ShadowRoot) StyleSheets() *cssom.StyleSheetList
StyleSheets returning attribute 'styleSheets' with type cssom.StyleSheetList (idl: StyleSheetList).
type ShadowRootInit ¶
type ShadowRootInit struct {
Mode ShadowRootMode
}
dictionary: ShadowRootInit
func ShadowRootInitFromJS ¶
func ShadowRootInitFromJS(value js.Wrapper) *ShadowRootInit
ShadowRootInitFromJS is allocating a new ShadowRootInit object and copy all values from input javascript object
func (*ShadowRootInit) JSValue ¶
func (_this *ShadowRootInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type ShadowRootMode ¶
type ShadowRootMode int
enum: ShadowRootMode
const ( OpenShadowRootMode ShadowRootMode = iota ClosedShadowRootMode )
func ShadowRootModeFromJS ¶
func ShadowRootModeFromJS(value js.Value) ShadowRootMode
ShadowRootModeFromJS is converting a javascript value into a ShadowRootMode enum value.
func (*ShadowRootMode) JSValue ¶
func (this *ShadowRootMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ShadowRootMode) Value ¶
func (this ShadowRootMode) Value() string
Value is converting this into javascript defined string value
type StaticRange ¶
type StaticRange struct {
AbstractRange
}
class: StaticRange
func StaticRangeFromJS ¶
func StaticRangeFromJS(value js.Wrapper) *StaticRange
StaticRangeFromJS is casting a js.Wrapper into StaticRange.
type Text ¶
type Text struct {
CharacterData
}
class: Text
func TextFromJS ¶
TextFromJS is casting a js.Wrapper into Text.
func (*Text) AssignedSlot ¶
AssignedSlot returning attribute 'assignedSlot' with type js.Value (idl: HTMLSlotElement).
Example ¶
package main import ( "github.com/gowebapi/webapi/dom" "github.com/gowebapi/webapi/html" ) func main() { var text *dom.Text // cast to correct type value := html.HTMLSlotElementFromJS(text.AssignedSlot()) // do something with value _ = value }
Output:
func (*Text) ConvertPointFromNode ¶
func (_this *Text) ConvertPointFromNode(point *geometry.DOMPointInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMPoint)
func (*Text) ConvertQuadFromNode ¶
func (_this *Text) ConvertQuadFromNode(quad *geometry.DOMQuadInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)
func (*Text) ConvertRectFromNode ¶
func (_this *Text) ConvertRectFromNode(rect *geometry.DOMRectReadOnly, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)
func (*Text) GetBoxQuads ¶
func (_this *Text) GetBoxQuads(options *view.BoxQuadOptions) (_result []*geometry.DOMQuad)
type TreeWalker ¶
class: TreeWalker
func TreeWalkerFromJS ¶
func TreeWalkerFromJS(value js.Wrapper) *TreeWalker
TreeWalkerFromJS is casting a js.Wrapper into TreeWalker.
func (*TreeWalker) CurrentNode ¶
func (_this *TreeWalker) CurrentNode() *Node
CurrentNode returning attribute 'currentNode' with type Node (idl: Node).
func (*TreeWalker) Filter ¶
func (_this *TreeWalker) Filter() NodeFilter
Filter returning attribute 'filter' with type NodeFilter (idl: NodeFilter).
func (*TreeWalker) FirstChild ¶
func (_this *TreeWalker) FirstChild() (_result *Node)
func (*TreeWalker) JSValue ¶
func (_this *TreeWalker) JSValue() js.Value
func (*TreeWalker) LastChild ¶
func (_this *TreeWalker) LastChild() (_result *Node)
func (*TreeWalker) NextNode ¶
func (_this *TreeWalker) NextNode() (_result *Node)
func (*TreeWalker) NextSibling ¶
func (_this *TreeWalker) NextSibling() (_result *Node)
func (*TreeWalker) ParentNode ¶
func (_this *TreeWalker) ParentNode() (_result *Node)
func (*TreeWalker) PreviousNode ¶
func (_this *TreeWalker) PreviousNode() (_result *Node)
func (*TreeWalker) PreviousSibling ¶
func (_this *TreeWalker) PreviousSibling() (_result *Node)
func (*TreeWalker) Root ¶
func (_this *TreeWalker) Root() *Node
Root returning attribute 'root' with type Node (idl: Node).
func (*TreeWalker) SetCurrentNode ¶
func (_this *TreeWalker) SetCurrentNode(value *Node)
SetCurrentNode setting attribute 'currentNode' with type Node (idl: Node).
func (*TreeWalker) WhatToShow ¶
func (_this *TreeWalker) WhatToShow() uint
WhatToShow returning attribute 'whatToShow' with type uint (idl: unsigned long).
Directories ¶
Path | Synopsis |
---|---|
Pacakge domcore is shared DOM types Source: DOM Standard (https://dom.spec.whatwg.org/)
|
Pacakge domcore is shared DOM types Source: DOM Standard (https://dom.spec.whatwg.org/) |
Package geometry provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices.
|
Package geometry provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices. |
Package intersection is used to understand the visibility and position of DOM elements ("targets") relative to a containing element or to the top-level viewport ("root").
|
Package intersection is used to understand the visibility and position of DOM elements ("targets") relative to a containing element or to the top-level viewport ("root"). |
Package parser is for parsing and serializing of HTML and XML-based DOM nodes for web applications.
|
Package parser is for parsing and serializing of HTML and XML-based DOM nodes for web applications. |
Package permissions is a common infrastructure to interact with browser permissions.
|
Package permissions is a common infrastructure to interact with browser permissions. |
Package text is text encoding standard.
|
Package text is text encoding standard. |