webapi: github.com/gowebapi/webapi/dom Index | Examples | Files | Directories

package dom

import "github.com/gowebapi/webapi/dom"

Package dom define DOM nodes and elements types.

Source: DOM Standard (https://dom.spec.whatwg.org/)

Index

Examples

Package Files

doc.go dom.go helper.go

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
)

type AbstractRange Uses

type AbstractRange struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AbstractRange

func AbstractRangeFromJS Uses

func AbstractRangeFromJS(value js.Wrapper) *AbstractRange

AbstractRangeFromJS is casting a js.Wrapper into AbstractRange.

func (*AbstractRange) Collapsed Uses

func (_this *AbstractRange) Collapsed() bool

Collapsed returning attribute 'collapsed' with type bool (idl: boolean).

func (*AbstractRange) EndContainer Uses

func (_this *AbstractRange) EndContainer() *Node

EndContainer returning attribute 'endContainer' with type Node (idl: Node).

func (*AbstractRange) EndOffset Uses

func (_this *AbstractRange) EndOffset() uint

EndOffset returning attribute 'endOffset' with type uint (idl: unsigned long).

func (*AbstractRange) JSValue Uses

func (_this *AbstractRange) JSValue() js.Value

func (*AbstractRange) StartContainer Uses

func (_this *AbstractRange) StartContainer() *Node

StartContainer returning attribute 'startContainer' with type Node (idl: Node).

func (*AbstractRange) StartOffset Uses

func (_this *AbstractRange) StartOffset() uint

StartOffset returning attribute 'startOffset' with type uint (idl: unsigned long).

type Attr Uses

type Attr struct {
    Node
}

class: Attr

func AttrFromJS Uses

func AttrFromJS(value js.Wrapper) *Attr

AttrFromJS is casting a js.Wrapper into Attr.

func (*Attr) LocalName Uses

func (_this *Attr) LocalName() string

LocalName returning attribute 'localName' with type string (idl: DOMString).

func (*Attr) Name Uses

func (_this *Attr) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*Attr) NamespaceURI Uses

func (_this *Attr) NamespaceURI() *string

NamespaceURI returning attribute 'namespaceURI' with type string (idl: DOMString).

func (*Attr) OwnerElement Uses

func (_this *Attr) OwnerElement() *Element

OwnerElement returning attribute 'ownerElement' with type Element (idl: Element).

func (*Attr) Prefix Uses

func (_this *Attr) Prefix() *string

Prefix returning attribute 'prefix' with type string (idl: DOMString).

func (*Attr) SetValue Uses

func (_this *Attr) SetValue(value string)

SetValue setting attribute 'value' with type string (idl: DOMString).

func (*Attr) Specified Uses

func (_this *Attr) Specified() bool

Specified returning attribute 'specified' with type bool (idl: boolean).

func (*Attr) Value Uses

func (_this *Attr) Value() string

Value returning attribute 'value' with type string (idl: DOMString).

type CDATASection Uses

type CDATASection struct {
    Text
}

class: CDATASection

func CDATASectionFromJS Uses

func CDATASectionFromJS(value js.Wrapper) *CDATASection

CDATASectionFromJS is casting a js.Wrapper into CDATASection.

type CharacterData Uses

type CharacterData struct {
    Node
}

class: CharacterData

func CharacterDataFromJS Uses

func CharacterDataFromJS(value js.Wrapper) *CharacterData

CharacterDataFromJS is casting a js.Wrapper into CharacterData.

func (*CharacterData) After Uses

func (_this *CharacterData) After(nodes ...*Union)

func (*CharacterData) AppendData Uses

func (_this *CharacterData) AppendData(data string)

func (*CharacterData) Before Uses

func (_this *CharacterData) Before(nodes ...*Union)

func (*CharacterData) Data Uses

func (_this *CharacterData) Data() string

Data returning attribute 'data' with type string (idl: DOMString).

func (*CharacterData) DeleteData Uses

func (_this *CharacterData) DeleteData(offset uint, count uint)

func (*CharacterData) InsertData Uses

func (_this *CharacterData) InsertData(offset uint, data string)

func (*CharacterData) Length Uses

func (_this *CharacterData) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*CharacterData) NextElementSibling Uses

func (_this *CharacterData) NextElementSibling() *Element

NextElementSibling returning attribute 'nextElementSibling' with type Element (idl: Element).

func (*CharacterData) PreviousElementSibling Uses

func (_this *CharacterData) PreviousElementSibling() *Element

PreviousElementSibling returning attribute 'previousElementSibling' with type Element (idl: Element).

func (*CharacterData) Remove Uses

func (_this *CharacterData) Remove()

func (*CharacterData) ReplaceData Uses

func (_this *CharacterData) ReplaceData(offset uint, count uint, data string)

func (*CharacterData) ReplaceWith Uses

func (_this *CharacterData) ReplaceWith(nodes ...*Union)

func (*CharacterData) SetData Uses

func (_this *CharacterData) SetData(value string)

SetData setting attribute 'data' with type string (idl: DOMString).

func (*CharacterData) SubstringData Uses

func (_this *CharacterData) SubstringData(offset uint, count uint) (_result string)

type Comment Uses

type Comment struct {
    CharacterData
}

class: Comment

func CommentFromJS Uses

func CommentFromJS(value js.Wrapper) *Comment

CommentFromJS is casting a js.Wrapper into Comment.

func NewComment Uses

func NewComment(data *string) (_result *Comment)

type DeadFragmentInformation Uses

type DeadFragmentInformation struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: DeadFragmentInformation

func DeadFragmentInformationFromJS Uses

func DeadFragmentInformationFromJS(value js.Wrapper) *DeadFragmentInformation

DeadFragmentInformationFromJS is casting a js.Wrapper into DeadFragmentInformation.

func (*DeadFragmentInformation) Children Uses

func (_this *DeadFragmentInformation) Children() *javascript.FrozenArray

Children returning attribute 'children' with type javascript.FrozenArray (idl: FrozenArray).

func (*DeadFragmentInformation) Height Uses

func (_this *DeadFragmentInformation) Height() float64

Height returning attribute 'height' with type float64 (idl: double).

func (*DeadFragmentInformation) IsOverflowed Uses

func (_this *DeadFragmentInformation) IsOverflowed() bool

IsOverflowed returning attribute 'isOverflowed' with type bool (idl: boolean).

func (*DeadFragmentInformation) JSValue Uses

func (_this *DeadFragmentInformation) JSValue() js.Value

func (*DeadFragmentInformation) Left Uses

func (_this *DeadFragmentInformation) Left() float64

Left returning attribute 'left' with type float64 (idl: double).

func (*DeadFragmentInformation) NextInBox Uses

func (_this *DeadFragmentInformation) NextInBox() *DeadFragmentInformation

NextInBox returning attribute 'nextInBox' with type DeadFragmentInformation (idl: DeadFragmentInformation).

func (*DeadFragmentInformation) NextSibling Uses

func (_this *DeadFragmentInformation) NextSibling() *DeadFragmentInformation

NextSibling returning attribute 'nextSibling' with type DeadFragmentInformation (idl: DeadFragmentInformation).

func (*DeadFragmentInformation) Node Uses

func (_this *DeadFragmentInformation) Node() *Node

Node returning attribute 'node' with type Node (idl: Node).

func (*DeadFragmentInformation) PreviousInBox Uses

func (_this *DeadFragmentInformation) PreviousInBox() *DeadFragmentInformation

PreviousInBox returning attribute 'previousInBox' with type DeadFragmentInformation (idl: DeadFragmentInformation).

func (*DeadFragmentInformation) PreviousSibling Uses

func (_this *DeadFragmentInformation) PreviousSibling() *DeadFragmentInformation

PreviousSibling returning attribute 'previousSibling' with type DeadFragmentInformation (idl: DeadFragmentInformation).

func (*DeadFragmentInformation) Top Uses

func (_this *DeadFragmentInformation) Top() float64

Top returning attribute 'top' with type float64 (idl: double).

func (*DeadFragmentInformation) Width Uses

func (_this *DeadFragmentInformation) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

type DocumentFragment Uses

type DocumentFragment struct {
    Node
}

class: DocumentFragment

func DocumentFragmentFromJS Uses

func DocumentFragmentFromJS(value js.Wrapper) *DocumentFragment

DocumentFragmentFromJS is casting a js.Wrapper into DocumentFragment.

func NewDocumentFragment Uses

func NewDocumentFragment() (_result *DocumentFragment)

func (*DocumentFragment) Append Uses

func (_this *DocumentFragment) Append(nodes ...*Union)

func (*DocumentFragment) ChildElementCount Uses

func (_this *DocumentFragment) ChildElementCount() uint

ChildElementCount returning attribute 'childElementCount' with type uint (idl: unsigned long).

func (*DocumentFragment) Children Uses

func (_this *DocumentFragment) Children() *HTMLCollection

Children returning attribute 'children' with type HTMLCollection (idl: HTMLCollection).

func (*DocumentFragment) FirstElementChild Uses

func (_this *DocumentFragment) FirstElementChild() *Element

FirstElementChild returning attribute 'firstElementChild' with type Element (idl: Element).

func (*DocumentFragment) GetElementById Uses

func (_this *DocumentFragment) GetElementById(elementId string) (_result *Element)

func (*DocumentFragment) LastElementChild Uses

func (_this *DocumentFragment) LastElementChild() *Element

LastElementChild returning attribute 'lastElementChild' with type Element (idl: Element).

func (*DocumentFragment) Prepend Uses

func (_this *DocumentFragment) Prepend(nodes ...*Union)

func (*DocumentFragment) QuerySelector Uses

func (_this *DocumentFragment) QuerySelector(selectors string) (_result *Element)

func (*DocumentFragment) QuerySelectorAll Uses

func (_this *DocumentFragment) QuerySelectorAll(selectors string) (_result *NodeList)

type DocumentType Uses

type DocumentType struct {
    Node
}

class: DocumentType

func DocumentTypeFromJS Uses

func DocumentTypeFromJS(value js.Wrapper) *DocumentType

DocumentTypeFromJS is casting a js.Wrapper into DocumentType.

func (*DocumentType) After Uses

func (_this *DocumentType) After(nodes ...*Union)

func (*DocumentType) Before Uses

func (_this *DocumentType) Before(nodes ...*Union)

func (*DocumentType) Name Uses

func (_this *DocumentType) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*DocumentType) PublicId Uses

func (_this *DocumentType) PublicId() string

PublicId returning attribute 'publicId' with type string (idl: DOMString).

func (*DocumentType) Remove Uses

func (_this *DocumentType) Remove()

func (*DocumentType) ReplaceWith Uses

func (_this *DocumentType) ReplaceWith(nodes ...*Union)

func (*DocumentType) SystemId Uses

func (_this *DocumentType) SystemId() string

SystemId returning attribute 'systemId' with type string (idl: DOMString).

type Element Uses

type Element struct {
    Node
}

class: Element

func ElementFromJS Uses

func ElementFromJS(value js.Wrapper) *Element

ElementFromJS is casting a js.Wrapper into Element.

func (*Element) AddEventFullscreenChange Uses

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 Uses

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

func (_this *Element) After(nodes ...*Union)

func (*Element) Animate Uses

func (_this *Element) Animate(keyframes *javascript.Object, options *Union) (_result *webani.Animation)

func (*Element) Append Uses

func (_this *Element) Append(nodes ...*Union)

func (*Element) AriaActiveDescendant Uses

func (_this *Element) AriaActiveDescendant() *string

AriaActiveDescendant returning attribute 'ariaActiveDescendant' with type string (idl: DOMString).

func (*Element) AriaAtomic Uses

func (_this *Element) AriaAtomic() *string

AriaAtomic returning attribute 'ariaAtomic' with type string (idl: DOMString).

func (*Element) AriaAutoComplete Uses

func (_this *Element) AriaAutoComplete() *string

AriaAutoComplete returning attribute 'ariaAutoComplete' with type string (idl: DOMString).

func (*Element) AriaBusy Uses

func (_this *Element) AriaBusy() *string

AriaBusy returning attribute 'ariaBusy' with type string (idl: DOMString).

func (*Element) AriaChecked Uses

func (_this *Element) AriaChecked() *string

AriaChecked returning attribute 'ariaChecked' with type string (idl: DOMString).

func (*Element) AriaColCount Uses

func (_this *Element) AriaColCount() *string

AriaColCount returning attribute 'ariaColCount' with type string (idl: DOMString).

func (*Element) AriaColIndex Uses

func (_this *Element) AriaColIndex() *string

AriaColIndex returning attribute 'ariaColIndex' with type string (idl: DOMString).

func (*Element) AriaColSpan Uses

func (_this *Element) AriaColSpan() *string

AriaColSpan returning attribute 'ariaColSpan' with type string (idl: DOMString).

func (*Element) AriaControls Uses

func (_this *Element) AriaControls() *string

AriaControls returning attribute 'ariaControls' with type string (idl: DOMString).

func (*Element) AriaCurrent Uses

func (_this *Element) AriaCurrent() *string

AriaCurrent returning attribute 'ariaCurrent' with type string (idl: DOMString).

func (*Element) AriaDescribedBy Uses

func (_this *Element) AriaDescribedBy() *string

AriaDescribedBy returning attribute 'ariaDescribedBy' with type string (idl: DOMString).

func (*Element) AriaDetails Uses

func (_this *Element) AriaDetails() *string

AriaDetails returning attribute 'ariaDetails' with type string (idl: DOMString).

func (*Element) AriaDisabled Uses

func (_this *Element) AriaDisabled() *string

AriaDisabled returning attribute 'ariaDisabled' with type string (idl: DOMString).

func (*Element) AriaErrorMessage Uses

func (_this *Element) AriaErrorMessage() *string

AriaErrorMessage returning attribute 'ariaErrorMessage' with type string (idl: DOMString).

func (*Element) AriaExpanded Uses

func (_this *Element) AriaExpanded() *string

AriaExpanded returning attribute 'ariaExpanded' with type string (idl: DOMString).

func (*Element) AriaFlowTo Uses

func (_this *Element) AriaFlowTo() *string

AriaFlowTo returning attribute 'ariaFlowTo' with type string (idl: DOMString).

func (*Element) AriaHasPopup Uses

func (_this *Element) AriaHasPopup() *string

AriaHasPopup returning attribute 'ariaHasPopup' with type string (idl: DOMString).

func (*Element) AriaHidden Uses

func (_this *Element) AriaHidden() *string

AriaHidden returning attribute 'ariaHidden' with type string (idl: DOMString).

func (*Element) AriaInvalid Uses

func (_this *Element) AriaInvalid() *string

AriaInvalid returning attribute 'ariaInvalid' with type string (idl: DOMString).

func (*Element) AriaKeyShortcuts Uses

func (_this *Element) AriaKeyShortcuts() *string

AriaKeyShortcuts returning attribute 'ariaKeyShortcuts' with type string (idl: DOMString).

func (*Element) AriaLabel Uses

func (_this *Element) AriaLabel() *string

AriaLabel returning attribute 'ariaLabel' with type string (idl: DOMString).

func (*Element) AriaLabelledBy Uses

func (_this *Element) AriaLabelledBy() *string

AriaLabelledBy returning attribute 'ariaLabelledBy' with type string (idl: DOMString).

func (*Element) AriaLevel Uses

func (_this *Element) AriaLevel() *string

AriaLevel returning attribute 'ariaLevel' with type string (idl: DOMString).

func (*Element) AriaLive Uses

func (_this *Element) AriaLive() *string

AriaLive returning attribute 'ariaLive' with type string (idl: DOMString).

func (*Element) AriaModal Uses

func (_this *Element) AriaModal() *string

AriaModal returning attribute 'ariaModal' with type string (idl: DOMString).

func (*Element) AriaMultiLine Uses

func (_this *Element) AriaMultiLine() *string

AriaMultiLine returning attribute 'ariaMultiLine' with type string (idl: DOMString).

func (*Element) AriaMultiSelectable Uses

func (_this *Element) AriaMultiSelectable() *string

AriaMultiSelectable returning attribute 'ariaMultiSelectable' with type string (idl: DOMString).

func (*Element) AriaOrientation Uses

func (_this *Element) AriaOrientation() *string

AriaOrientation returning attribute 'ariaOrientation' with type string (idl: DOMString).

func (*Element) AriaOwns Uses

func (_this *Element) AriaOwns() *string

AriaOwns returning attribute 'ariaOwns' with type string (idl: DOMString).

func (*Element) AriaPlaceholder Uses

func (_this *Element) AriaPlaceholder() *string

AriaPlaceholder returning attribute 'ariaPlaceholder' with type string (idl: DOMString).

func (*Element) AriaPosInSet Uses

func (_this *Element) AriaPosInSet() *string

AriaPosInSet returning attribute 'ariaPosInSet' with type string (idl: DOMString).

func (*Element) AriaPressed Uses

func (_this *Element) AriaPressed() *string

AriaPressed returning attribute 'ariaPressed' with type string (idl: DOMString).

func (*Element) AriaReadOnly Uses

func (_this *Element) AriaReadOnly() *string

AriaReadOnly returning attribute 'ariaReadOnly' with type string (idl: DOMString).

func (*Element) AriaRelevant Uses

func (_this *Element) AriaRelevant() *string

AriaRelevant returning attribute 'ariaRelevant' with type string (idl: DOMString).

func (*Element) AriaRequired Uses

func (_this *Element) AriaRequired() *string

AriaRequired returning attribute 'ariaRequired' with type string (idl: DOMString).

func (*Element) AriaRoleDescription Uses

func (_this *Element) AriaRoleDescription() *string

AriaRoleDescription returning attribute 'ariaRoleDescription' with type string (idl: DOMString).

func (*Element) AriaRowCount Uses

func (_this *Element) AriaRowCount() *string

AriaRowCount returning attribute 'ariaRowCount' with type string (idl: DOMString).

func (*Element) AriaRowIndex Uses

func (_this *Element) AriaRowIndex() *string

AriaRowIndex returning attribute 'ariaRowIndex' with type string (idl: DOMString).

func (*Element) AriaRowSpan Uses

func (_this *Element) AriaRowSpan() *string

AriaRowSpan returning attribute 'ariaRowSpan' with type string (idl: DOMString).

func (*Element) AriaSelected Uses

func (_this *Element) AriaSelected() *string

AriaSelected returning attribute 'ariaSelected' with type string (idl: DOMString).

func (*Element) AriaSetSize Uses

func (_this *Element) AriaSetSize() *string

AriaSetSize returning attribute 'ariaSetSize' with type string (idl: DOMString).

func (*Element) AriaSort Uses

func (_this *Element) AriaSort() *string

AriaSort returning attribute 'ariaSort' with type string (idl: DOMString).

func (*Element) AriaValueMax Uses

func (_this *Element) AriaValueMax() *string

AriaValueMax returning attribute 'ariaValueMax' with type string (idl: DOMString).

func (*Element) AriaValueMin Uses

func (_this *Element) AriaValueMin() *string

AriaValueMin returning attribute 'ariaValueMin' with type string (idl: DOMString).

func (*Element) AriaValueNow Uses

func (_this *Element) AriaValueNow() *string

AriaValueNow returning attribute 'ariaValueNow' with type string (idl: DOMString).

func (*Element) AriaValueText Uses

func (_this *Element) AriaValueText() *string

AriaValueText returning attribute 'ariaValueText' with type string (idl: DOMString).

func (*Element) AssignedSlot Uses

func (_this *Element) AssignedSlot() js.Value

AssignedSlot returning attribute 'assignedSlot' with type js.Value (idl: HTMLSlotElement).

Code:

var element *dom.Element

// cast to correct type
value := html.HTMLSlotElementFromJS(element.AssignedSlot())

// do something with value
_ = value

func (*Element) AttachShadow Uses

func (_this *Element) AttachShadow(init *ShadowRootInit) (_result *ShadowRoot)

func (*Element) Attributes Uses

func (_this *Element) Attributes() *NamedNodeMap

Attributes returning attribute 'attributes' with type NamedNodeMap (idl: NamedNodeMap).

func (*Element) Before Uses

func (_this *Element) Before(nodes ...*Union)

func (*Element) ChildElementCount Uses

func (_this *Element) ChildElementCount() uint

ChildElementCount returning attribute 'childElementCount' with type uint (idl: unsigned long).

func (*Element) Children Uses

func (_this *Element) Children() *HTMLCollection

Children returning attribute 'children' with type HTMLCollection (idl: HTMLCollection).

func (*Element) ClassList Uses

func (_this *Element) ClassList() *domcore.DOMTokenList

ClassList returning attribute 'classList' with type domcore.DOMTokenList (idl: DOMTokenList).

func (*Element) ClassName Uses

func (_this *Element) ClassName() string

ClassName returning attribute 'className' with type string (idl: DOMString).

func (*Element) ClientHeight Uses

func (_this *Element) ClientHeight() int

ClientHeight returning attribute 'clientHeight' with type int (idl: long).

func (*Element) ClientLeft Uses

func (_this *Element) ClientLeft() int

ClientLeft returning attribute 'clientLeft' with type int (idl: long).

func (*Element) ClientTop Uses

func (_this *Element) ClientTop() int

ClientTop returning attribute 'clientTop' with type int (idl: long).

func (*Element) ClientWidth Uses

func (_this *Element) ClientWidth() int

ClientWidth returning attribute 'clientWidth' with type int (idl: long).

func (*Element) Closest Uses

func (_this *Element) Closest(selectors string) (_result *Element)

func (*Element) ComputedStyleMap Uses

func (_this *Element) ComputedStyleMap() (_result *typedom.StylePropertyMapReadOnly)

func (*Element) ConvertPointFromNode Uses

func (_this *Element) ConvertPointFromNode(point *geometry.DOMPointInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMPoint)

func (*Element) ConvertQuadFromNode Uses

func (_this *Element) ConvertQuadFromNode(quad *geometry.DOMQuadInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)

func (*Element) ConvertRectFromNode Uses

func (_this *Element) ConvertRectFromNode(rect *geometry.DOMRectReadOnly, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)

func (*Element) FirstElementChild Uses

func (_this *Element) FirstElementChild() *Element

FirstElementChild returning attribute 'firstElementChild' with type Element (idl: Element).

func (*Element) GetAnimations Uses

func (_this *Element) GetAnimations() (_result []*webani.Animation)

func (*Element) GetAttribute Uses

func (_this *Element) GetAttribute(qualifiedName string) (_result *string)

func (*Element) GetAttributeNS Uses

func (_this *Element) GetAttributeNS(namespace *string, localName string) (_result *string)

func (*Element) GetAttributeNames Uses

func (_this *Element) GetAttributeNames() (_result []string)

func (*Element) GetAttributeNode Uses

func (_this *Element) GetAttributeNode(qualifiedName string) (_result *Attr)

func (*Element) GetAttributeNodeNS Uses

func (_this *Element) GetAttributeNodeNS(namespace *string, localName string) (_result *Attr)

func (*Element) GetBoundingClientRect Uses

func (_this *Element) GetBoundingClientRect() (_result *geometry.DOMRect)

func (*Element) GetBoxQuads Uses

func (_this *Element) GetBoxQuads(options *view.BoxQuadOptions) (_result []*geometry.DOMQuad)

func (*Element) GetClientRects Uses

func (_this *Element) GetClientRects() (_result *geometry.DOMRectList)

func (*Element) GetElementsByClassName Uses

func (_this *Element) GetElementsByClassName(classNames string) (_result *HTMLCollection)

func (*Element) GetElementsByTagName Uses

func (_this *Element) GetElementsByTagName(qualifiedName string) (_result *HTMLCollection)

func (*Element) GetElementsByTagNameNS Uses

func (_this *Element) GetElementsByTagNameNS(namespace *string, localName string) (_result *HTMLCollection)

func (*Element) GetFragmentInformation Uses

func (_this *Element) GetFragmentInformation(filter FragmentFilter) (_result *PromiseDeadFragmentInformation)

func (*Element) HasAttribute Uses

func (_this *Element) HasAttribute(qualifiedName string) (_result bool)

func (*Element) HasAttributeNS Uses

func (_this *Element) HasAttributeNS(namespace *string, localName string) (_result bool)

func (*Element) HasAttributes Uses

func (_this *Element) HasAttributes() (_result bool)

func (*Element) HasPointerCapture Uses

func (_this *Element) HasPointerCapture(pointerId int) (_result bool)

func (*Element) Id Uses

func (_this *Element) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*Element) InnerHTML Uses

func (_this *Element) InnerHTML() string

InnerHTML returning attribute 'innerHTML' with type string (idl: DOMString).

func (*Element) InsertAdjacentElement Uses

func (_this *Element) InsertAdjacentElement(where string, element *Element) (_result *Element)

func (*Element) InsertAdjacentHTML Uses

func (_this *Element) InsertAdjacentHTML(position string, text string)

func (*Element) InsertAdjacentText Uses

func (_this *Element) InsertAdjacentText(where string, data string)

func (*Element) LastElementChild Uses

func (_this *Element) LastElementChild() *Element

LastElementChild returning attribute 'lastElementChild' with type Element (idl: Element).

func (*Element) LocalName Uses

func (_this *Element) LocalName() string

LocalName returning attribute 'localName' with type string (idl: DOMString).

func (*Element) Matches Uses

func (_this *Element) Matches(selectors string) (_result bool)

func (*Element) NamespaceURI Uses

func (_this *Element) NamespaceURI() *string

NamespaceURI returning attribute 'namespaceURI' with type string (idl: DOMString).

func (*Element) NextElementSibling Uses

func (_this *Element) NextElementSibling() *Element

NextElementSibling returning attribute 'nextElementSibling' with type Element (idl: Element).

func (*Element) OnFullscreenChange Uses

func (_this *Element) OnFullscreenChange() domcore.EventHandlerFunc

OnFullscreenChange returning attribute 'onfullscreenchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Element) OnFullscreenError Uses

func (_this *Element) OnFullscreenError() domcore.EventHandlerFunc

OnFullscreenError returning attribute 'onfullscreenerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Element) OuterHTML Uses

func (_this *Element) OuterHTML() string

OuterHTML returning attribute 'outerHTML' with type string (idl: DOMString).

func (*Element) Prefix Uses

func (_this *Element) Prefix() *string

Prefix returning attribute 'prefix' with type string (idl: DOMString).

func (*Element) Prepend Uses

func (_this *Element) Prepend(nodes ...*Union)

func (*Element) PreviousElementSibling Uses

func (_this *Element) PreviousElementSibling() *Element

PreviousElementSibling returning attribute 'previousElementSibling' with type Element (idl: Element).

func (*Element) QuerySelector Uses

func (_this *Element) QuerySelector(selectors string) (_result *Element)

func (*Element) QuerySelectorAll Uses

func (_this *Element) QuerySelectorAll(selectors string) (_result *NodeList)

func (*Element) ReleasePointerCapture Uses

func (_this *Element) ReleasePointerCapture(pointerId int)

func (*Element) Remove Uses

func (_this *Element) Remove()

func (*Element) RemoveAttribute Uses

func (_this *Element) RemoveAttribute(qualifiedName string)

func (*Element) RemoveAttributeNS Uses

func (_this *Element) RemoveAttributeNS(namespace *string, localName string)

func (*Element) RemoveAttributeNode Uses

func (_this *Element) RemoveAttributeNode(attr *Attr) (_result *Attr)

func (*Element) ReplaceWith Uses

func (_this *Element) ReplaceWith(nodes ...*Union)

func (*Element) RequestFullscreen Uses

func (_this *Element) RequestFullscreen(options *FullscreenOptions) (_result *javascript.PromiseVoid)

func (*Element) RequestFullscreenByBrowser Uses

func (t *Element) RequestFullscreenByBrowser()

RequestFullscreenByBrowser is an alternative way to request fullscreen that is taking different browser into accound

func (*Element) RequestPointerLock Uses

func (_this *Element) RequestPointerLock()

func (*Element) Role Uses

func (_this *Element) Role() *string

Role returning attribute 'role' with type string (idl: DOMString).

func (*Element) Scroll Uses

func (_this *Element) Scroll(options *view.ScrollToOptions)

func (*Element) Scroll2 Uses

func (_this *Element) Scroll2(x float64, y float64)

func (*Element) ScrollBy Uses

func (_this *Element) ScrollBy(options *view.ScrollToOptions)

func (*Element) ScrollBy2 Uses

func (_this *Element) ScrollBy2(x float64, y float64)

func (*Element) ScrollHeight Uses

func (_this *Element) ScrollHeight() int

ScrollHeight returning attribute 'scrollHeight' with type int (idl: long).

func (*Element) ScrollIntoView Uses

func (_this *Element) ScrollIntoView(arg *Union)

func (*Element) ScrollLeft Uses

func (_this *Element) ScrollLeft() float64

ScrollLeft returning attribute 'scrollLeft' with type float64 (idl: unrestricted double).

func (*Element) ScrollTo Uses

func (_this *Element) ScrollTo(options *view.ScrollToOptions)

func (*Element) ScrollTo2 Uses

func (_this *Element) ScrollTo2(x float64, y float64)

func (*Element) ScrollTop Uses

func (_this *Element) ScrollTop() float64

ScrollTop returning attribute 'scrollTop' with type float64 (idl: unrestricted double).

func (*Element) ScrollWidth Uses

func (_this *Element) ScrollWidth() int

ScrollWidth returning attribute 'scrollWidth' with type int (idl: long).

func (*Element) SetAriaActiveDescendant Uses

func (_this *Element) SetAriaActiveDescendant(value *string)

SetAriaActiveDescendant setting attribute 'ariaActiveDescendant' with type string (idl: DOMString).

func (*Element) SetAriaAtomic Uses

func (_this *Element) SetAriaAtomic(value *string)

SetAriaAtomic setting attribute 'ariaAtomic' with type string (idl: DOMString).

func (*Element) SetAriaAutoComplete Uses

func (_this *Element) SetAriaAutoComplete(value *string)

SetAriaAutoComplete setting attribute 'ariaAutoComplete' with type string (idl: DOMString).

func (*Element) SetAriaBusy Uses

func (_this *Element) SetAriaBusy(value *string)

SetAriaBusy setting attribute 'ariaBusy' with type string (idl: DOMString).

func (*Element) SetAriaChecked Uses

func (_this *Element) SetAriaChecked(value *string)

SetAriaChecked setting attribute 'ariaChecked' with type string (idl: DOMString).

func (*Element) SetAriaColCount Uses

func (_this *Element) SetAriaColCount(value *string)

SetAriaColCount setting attribute 'ariaColCount' with type string (idl: DOMString).

func (*Element) SetAriaColIndex Uses

func (_this *Element) SetAriaColIndex(value *string)

SetAriaColIndex setting attribute 'ariaColIndex' with type string (idl: DOMString).

func (*Element) SetAriaColSpan Uses

func (_this *Element) SetAriaColSpan(value *string)

SetAriaColSpan setting attribute 'ariaColSpan' with type string (idl: DOMString).

func (*Element) SetAriaControls Uses

func (_this *Element) SetAriaControls(value *string)

SetAriaControls setting attribute 'ariaControls' with type string (idl: DOMString).

func (*Element) SetAriaCurrent Uses

func (_this *Element) SetAriaCurrent(value *string)

SetAriaCurrent setting attribute 'ariaCurrent' with type string (idl: DOMString).

func (*Element) SetAriaDescribedBy Uses

func (_this *Element) SetAriaDescribedBy(value *string)

SetAriaDescribedBy setting attribute 'ariaDescribedBy' with type string (idl: DOMString).

func (*Element) SetAriaDetails Uses

func (_this *Element) SetAriaDetails(value *string)

SetAriaDetails setting attribute 'ariaDetails' with type string (idl: DOMString).

func (*Element) SetAriaDisabled Uses

func (_this *Element) SetAriaDisabled(value *string)

SetAriaDisabled setting attribute 'ariaDisabled' with type string (idl: DOMString).

func (*Element) SetAriaErrorMessage Uses

func (_this *Element) SetAriaErrorMessage(value *string)

SetAriaErrorMessage setting attribute 'ariaErrorMessage' with type string (idl: DOMString).

func (*Element) SetAriaExpanded Uses

func (_this *Element) SetAriaExpanded(value *string)

SetAriaExpanded setting attribute 'ariaExpanded' with type string (idl: DOMString).

func (*Element) SetAriaFlowTo Uses

func (_this *Element) SetAriaFlowTo(value *string)

SetAriaFlowTo setting attribute 'ariaFlowTo' with type string (idl: DOMString).

func (*Element) SetAriaHasPopup Uses

func (_this *Element) SetAriaHasPopup(value *string)

SetAriaHasPopup setting attribute 'ariaHasPopup' with type string (idl: DOMString).

func (*Element) SetAriaHidden Uses

func (_this *Element) SetAriaHidden(value *string)

SetAriaHidden setting attribute 'ariaHidden' with type string (idl: DOMString).

func (*Element) SetAriaInvalid Uses

func (_this *Element) SetAriaInvalid(value *string)

SetAriaInvalid setting attribute 'ariaInvalid' with type string (idl: DOMString).

func (*Element) SetAriaKeyShortcuts Uses

func (_this *Element) SetAriaKeyShortcuts(value *string)

SetAriaKeyShortcuts setting attribute 'ariaKeyShortcuts' with type string (idl: DOMString).

func (*Element) SetAriaLabel Uses

func (_this *Element) SetAriaLabel(value *string)

SetAriaLabel setting attribute 'ariaLabel' with type string (idl: DOMString).

func (*Element) SetAriaLabelledBy Uses

func (_this *Element) SetAriaLabelledBy(value *string)

SetAriaLabelledBy setting attribute 'ariaLabelledBy' with type string (idl: DOMString).

func (*Element) SetAriaLevel Uses

func (_this *Element) SetAriaLevel(value *string)

SetAriaLevel setting attribute 'ariaLevel' with type string (idl: DOMString).

func (*Element) SetAriaLive Uses

func (_this *Element) SetAriaLive(value *string)

SetAriaLive setting attribute 'ariaLive' with type string (idl: DOMString).

func (*Element) SetAriaModal Uses

func (_this *Element) SetAriaModal(value *string)

SetAriaModal setting attribute 'ariaModal' with type string (idl: DOMString).

func (*Element) SetAriaMultiLine Uses

func (_this *Element) SetAriaMultiLine(value *string)

SetAriaMultiLine setting attribute 'ariaMultiLine' with type string (idl: DOMString).

func (*Element) SetAriaMultiSelectable Uses

func (_this *Element) SetAriaMultiSelectable(value *string)

SetAriaMultiSelectable setting attribute 'ariaMultiSelectable' with type string (idl: DOMString).

func (*Element) SetAriaOrientation Uses

func (_this *Element) SetAriaOrientation(value *string)

SetAriaOrientation setting attribute 'ariaOrientation' with type string (idl: DOMString).

func (*Element) SetAriaOwns Uses

func (_this *Element) SetAriaOwns(value *string)

SetAriaOwns setting attribute 'ariaOwns' with type string (idl: DOMString).

func (*Element) SetAriaPlaceholder Uses

func (_this *Element) SetAriaPlaceholder(value *string)

SetAriaPlaceholder setting attribute 'ariaPlaceholder' with type string (idl: DOMString).

func (*Element) SetAriaPosInSet Uses

func (_this *Element) SetAriaPosInSet(value *string)

SetAriaPosInSet setting attribute 'ariaPosInSet' with type string (idl: DOMString).

func (*Element) SetAriaPressed Uses

func (_this *Element) SetAriaPressed(value *string)

SetAriaPressed setting attribute 'ariaPressed' with type string (idl: DOMString).

func (*Element) SetAriaReadOnly Uses

func (_this *Element) SetAriaReadOnly(value *string)

SetAriaReadOnly setting attribute 'ariaReadOnly' with type string (idl: DOMString).

func (*Element) SetAriaRelevant Uses

func (_this *Element) SetAriaRelevant(value *string)

SetAriaRelevant setting attribute 'ariaRelevant' with type string (idl: DOMString).

func (*Element) SetAriaRequired Uses

func (_this *Element) SetAriaRequired(value *string)

SetAriaRequired setting attribute 'ariaRequired' with type string (idl: DOMString).

func (*Element) SetAriaRoleDescription Uses

func (_this *Element) SetAriaRoleDescription(value *string)

SetAriaRoleDescription setting attribute 'ariaRoleDescription' with type string (idl: DOMString).

func (*Element) SetAriaRowCount Uses

func (_this *Element) SetAriaRowCount(value *string)

SetAriaRowCount setting attribute 'ariaRowCount' with type string (idl: DOMString).

func (*Element) SetAriaRowIndex Uses

func (_this *Element) SetAriaRowIndex(value *string)

SetAriaRowIndex setting attribute 'ariaRowIndex' with type string (idl: DOMString).

func (*Element) SetAriaRowSpan Uses

func (_this *Element) SetAriaRowSpan(value *string)

SetAriaRowSpan setting attribute 'ariaRowSpan' with type string (idl: DOMString).

func (*Element) SetAriaSelected Uses

func (_this *Element) SetAriaSelected(value *string)

SetAriaSelected setting attribute 'ariaSelected' with type string (idl: DOMString).

func (*Element) SetAriaSetSize Uses

func (_this *Element) SetAriaSetSize(value *string)

SetAriaSetSize setting attribute 'ariaSetSize' with type string (idl: DOMString).

func (*Element) SetAriaSort Uses

func (_this *Element) SetAriaSort(value *string)

SetAriaSort setting attribute 'ariaSort' with type string (idl: DOMString).

func (*Element) SetAriaValueMax Uses

func (_this *Element) SetAriaValueMax(value *string)

SetAriaValueMax setting attribute 'ariaValueMax' with type string (idl: DOMString).

func (*Element) SetAriaValueMin Uses

func (_this *Element) SetAriaValueMin(value *string)

SetAriaValueMin setting attribute 'ariaValueMin' with type string (idl: DOMString).

func (*Element) SetAriaValueNow Uses

func (_this *Element) SetAriaValueNow(value *string)

SetAriaValueNow setting attribute 'ariaValueNow' with type string (idl: DOMString).

func (*Element) SetAriaValueText Uses

func (_this *Element) SetAriaValueText(value *string)

SetAriaValueText setting attribute 'ariaValueText' with type string (idl: DOMString).

func (*Element) SetAttribute Uses

func (_this *Element) SetAttribute(qualifiedName string, value string)

func (*Element) SetAttributeNS Uses

func (_this *Element) SetAttributeNS(namespace *string, qualifiedName string, value string)

func (*Element) SetAttributeNode Uses

func (_this *Element) SetAttributeNode(attr *Attr) (_result *Attr)

func (*Element) SetAttributeNodeNS Uses

func (_this *Element) SetAttributeNodeNS(attr *Attr) (_result *Attr)

func (*Element) SetClassName Uses

func (_this *Element) SetClassName(value string)

SetClassName setting attribute 'className' with type string (idl: DOMString).

func (*Element) SetId Uses

func (_this *Element) SetId(value string)

SetId setting attribute 'id' with type string (idl: DOMString).

func (*Element) SetInnerHTML Uses

func (_this *Element) SetInnerHTML(value string)

SetInnerHTML setting attribute 'innerHTML' with type string (idl: DOMString).

func (*Element) SetOnFullscreenChange Uses

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 Uses

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 Uses

func (_this *Element) SetOuterHTML(value string)

SetOuterHTML setting attribute 'outerHTML' with type string (idl: DOMString).

func (*Element) SetPointerCapture Uses

func (_this *Element) SetPointerCapture(pointerId int)

func (*Element) SetRole Uses

func (_this *Element) SetRole(value *string)

SetRole setting attribute 'role' with type string (idl: DOMString).

func (*Element) SetScrollLeft Uses

func (_this *Element) SetScrollLeft(value float64)

SetScrollLeft setting attribute 'scrollLeft' with type float64 (idl: unrestricted double).

func (*Element) SetScrollTop Uses

func (_this *Element) SetScrollTop(value float64)

SetScrollTop setting attribute 'scrollTop' with type float64 (idl: unrestricted double).

func (*Element) SetSlot Uses

func (_this *Element) SetSlot(value string)

SetSlot setting attribute 'slot' with type string (idl: DOMString).

func (*Element) ShadowRoot Uses

func (_this *Element) ShadowRoot() *ShadowRoot

ShadowRoot returning attribute 'shadowRoot' with type ShadowRoot (idl: ShadowRoot).

func (*Element) Slot Uses

func (_this *Element) Slot() string

Slot returning attribute 'slot' with type string (idl: DOMString).

func (*Element) TagName Uses

func (_this *Element) TagName() string

TagName returning attribute 'tagName' with type string (idl: DOMString).

func (*Element) ToggleAttribute Uses

func (_this *Element) ToggleAttribute(qualifiedName string, force *bool) (_result bool)

func (*Element) WebkitMatchesSelector Uses

func (_this *Element) WebkitMatchesSelector(selectors string) (_result bool)

type FragmentFilter Uses

type FragmentFilter int

enum: FragmentFilter

const (
    DirectFragmentsOnlyFragmentFilter FragmentFilter = iota
    FragmentHierarchyFragmentFilter
)

func FragmentFilterFromJS Uses

func FragmentFilterFromJS(value js.Value) FragmentFilter

FragmentFilterFromJS is converting a javascript value into a FragmentFilter enum value.

func (*FragmentFilter) JSValue Uses

func (this *FragmentFilter) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FragmentFilter) Value Uses

func (this FragmentFilter) Value() string

Value is converting this into javascript defined string value

type FullscreenNavigationUI Uses

type FullscreenNavigationUI int

enum: FullscreenNavigationUI

const (
    AutoFullscreenNavigationUI FullscreenNavigationUI = iota
    ShowFullscreenNavigationUI
    HideFullscreenNavigationUI
)

func FullscreenNavigationUIFromJS Uses

func FullscreenNavigationUIFromJS(value js.Value) FullscreenNavigationUI

FullscreenNavigationUIFromJS is converting a javascript value into a FullscreenNavigationUI enum value.

func (*FullscreenNavigationUI) JSValue Uses

func (this *FullscreenNavigationUI) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FullscreenNavigationUI) Value Uses

func (this FullscreenNavigationUI) Value() string

Value is converting this into javascript defined string value

type FullscreenOptions Uses

type FullscreenOptions struct {
    NavigationUI FullscreenNavigationUI
}

dictionary: FullscreenOptions

func FullscreenOptionsFromJS Uses

func FullscreenOptionsFromJS(value js.Wrapper) *FullscreenOptions

FullscreenOptionsFromJS is allocating a new FullscreenOptions object and copy all values from input javascript object

func (*FullscreenOptions) JSValue Uses

func (_this *FullscreenOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type GetRootNodeOptions Uses

type GetRootNodeOptions struct {
    Composed bool
}

dictionary: GetRootNodeOptions

func GetRootNodeOptionsFromJS Uses

func GetRootNodeOptionsFromJS(value js.Wrapper) *GetRootNodeOptions

GetRootNodeOptionsFromJS is allocating a new GetRootNodeOptions object and copy all values from input javascript object

func (*GetRootNodeOptions) JSValue Uses

func (_this *GetRootNodeOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type HTMLCollection Uses

type HTMLCollection struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: HTMLCollection

func HTMLCollectionFromJS Uses

func HTMLCollectionFromJS(value js.Wrapper) *HTMLCollection

HTMLCollectionFromJS is casting a js.Wrapper into HTMLCollection.

func (*HTMLCollection) Get Uses

func (_this *HTMLCollection) Get(name string) (_result *Element)

func (*HTMLCollection) Index Uses

func (_this *HTMLCollection) Index(index uint) (_result *Element)

func (*HTMLCollection) Item Uses

func (_this *HTMLCollection) Item(index uint) (_result *Element)

func (*HTMLCollection) JSValue Uses

func (_this *HTMLCollection) JSValue() js.Value

func (*HTMLCollection) Length Uses

func (_this *HTMLCollection) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*HTMLCollection) NamedItem Uses

func (_this *HTMLCollection) NamedItem(name string) (_result *Element)

type NamedNodeMap Uses

type NamedNodeMap struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: NamedNodeMap

func NamedNodeMapFromJS Uses

func NamedNodeMapFromJS(value js.Wrapper) *NamedNodeMap

NamedNodeMapFromJS is casting a js.Wrapper into NamedNodeMap.

func (*NamedNodeMap) Get Uses

func (_this *NamedNodeMap) Get(qualifiedName string) (_result *Attr)

func (*NamedNodeMap) GetNamedItem Uses

func (_this *NamedNodeMap) GetNamedItem(qualifiedName string) (_result *Attr)

func (*NamedNodeMap) GetNamedItemNS Uses

func (_this *NamedNodeMap) GetNamedItemNS(namespace *string, localName string) (_result *Attr)

func (*NamedNodeMap) Index Uses

func (_this *NamedNodeMap) Index(index uint) (_result *Attr)

func (*NamedNodeMap) Item Uses

func (_this *NamedNodeMap) Item(index uint) (_result *Attr)

func (*NamedNodeMap) JSValue Uses

func (_this *NamedNodeMap) JSValue() js.Value

func (*NamedNodeMap) Length Uses

func (_this *NamedNodeMap) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*NamedNodeMap) RemoveNamedItem Uses

func (_this *NamedNodeMap) RemoveNamedItem(qualifiedName string) (_result *Attr)

func (*NamedNodeMap) RemoveNamedItemNS Uses

func (_this *NamedNodeMap) RemoveNamedItemNS(namespace *string, localName string) (_result *Attr)

func (*NamedNodeMap) SetNamedItem Uses

func (_this *NamedNodeMap) SetNamedItem(attr *Attr) (_result *Attr)

func (*NamedNodeMap) SetNamedItemNS Uses

func (_this *NamedNodeMap) SetNamedItemNS(attr *Attr) (_result *Attr)

type Node Uses

type Node struct {
    domcore.EventTarget
}

class: Node

func NodeFromJS Uses

func NodeFromJS(value js.Wrapper) *Node

NodeFromJS is casting a js.Wrapper into Node.

func (*Node) AppendChild Uses

func (_this *Node) AppendChild(node *Node) (_result *Node)

func (*Node) BaseURI Uses

func (_this *Node) BaseURI() string

BaseURI returning attribute 'baseURI' with type string (idl: USVString).

func (*Node) ChildNodes Uses

func (_this *Node) ChildNodes() *NodeList

ChildNodes returning attribute 'childNodes' with type NodeList (idl: NodeList).

func (*Node) CloneNode Uses

func (_this *Node) CloneNode(deep *bool) (_result *Node)

func (*Node) CompareDocumentPosition Uses

func (_this *Node) CompareDocumentPosition(other *Node) (_result int)

func (*Node) Contains Uses

func (_this *Node) Contains(other *Node) (_result bool)

func (*Node) FirstChild Uses

func (_this *Node) FirstChild() *Node

FirstChild returning attribute 'firstChild' with type Node (idl: Node).

func (*Node) GetRootNode Uses

func (_this *Node) GetRootNode(options *GetRootNodeOptions) (_result *Node)

func (*Node) HasChildNodes Uses

func (_this *Node) HasChildNodes() (_result bool)

func (*Node) InsertBefore Uses

func (_this *Node) InsertBefore(node *Node, child *Node) (_result *Node)

func (*Node) IsConnected Uses

func (_this *Node) IsConnected() bool

IsConnected returning attribute 'isConnected' with type bool (idl: boolean).

func (*Node) IsDefaultNamespace Uses

func (_this *Node) IsDefaultNamespace(namespace *string) (_result bool)

func (*Node) IsEqualNode Uses

func (_this *Node) IsEqualNode(otherNode *Node) (_result bool)

func (*Node) IsSameNode Uses

func (_this *Node) IsSameNode(otherNode *Node) (_result bool)

func (*Node) LastChild Uses

func (_this *Node) LastChild() *Node

LastChild returning attribute 'lastChild' with type Node (idl: Node).

func (*Node) LookupNamespaceURI Uses

func (_this *Node) LookupNamespaceURI(prefix *string) (_result *string)

func (*Node) LookupPrefix Uses

func (_this *Node) LookupPrefix(namespace *string) (_result *string)

func (*Node) NextSibling Uses

func (_this *Node) NextSibling() *Node

NextSibling returning attribute 'nextSibling' with type Node (idl: Node).

func (*Node) NodeName Uses

func (_this *Node) NodeName() string

NodeName returning attribute 'nodeName' with type string (idl: DOMString).

func (*Node) NodeType Uses

func (_this *Node) NodeType() int

NodeType returning attribute 'nodeType' with type int (idl: unsigned short).

func (*Node) NodeValue Uses

func (_this *Node) NodeValue() *string

NodeValue returning attribute 'nodeValue' with type string (idl: DOMString).

func (*Node) Normalize Uses

func (_this *Node) Normalize()

func (*Node) OwnerDocument Uses

func (_this *Node) OwnerDocument() js.Value

OwnerDocument returning attribute 'ownerDocument' with type js.Value (idl: Document).

Code:

var node *dom.Node

// cast to correct type
value := webapi.DocumentFromJS(node.OwnerDocument())

// do something with value
_ = value

func (*Node) ParentElement Uses

func (_this *Node) ParentElement() *Element

ParentElement returning attribute 'parentElement' with type Element (idl: Element).

func (*Node) ParentNode Uses

func (_this *Node) ParentNode() *Node

ParentNode returning attribute 'parentNode' with type Node (idl: Node).

func (*Node) PreviousSibling Uses

func (_this *Node) PreviousSibling() *Node

PreviousSibling returning attribute 'previousSibling' with type Node (idl: Node).

func (*Node) RemoveChild Uses

func (_this *Node) RemoveChild(child *Node) (_result *Node)

func (*Node) ReplaceChild Uses

func (_this *Node) ReplaceChild(node *Node, child *Node) (_result *Node)

func (*Node) SetNodeValue Uses

func (_this *Node) SetNodeValue(value *string)

SetNodeValue setting attribute 'nodeValue' with type string (idl: DOMString).

func (*Node) SetTextContent Uses

func (_this *Node) SetTextContent(value *string)

SetTextContent setting attribute 'textContent' with type string (idl: DOMString).

func (*Node) TextContent Uses

func (_this *Node) TextContent() *string

TextContent returning attribute 'textContent' with type string (idl: DOMString).

type NodeFilter Uses

type NodeFilter interface {
    AcceptNode(node *Node) (_result int)
}

NodeFilter is a callback interface.

type NodeFilterValue Uses

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 Uses

func NewNodeFilter(callback NodeFilter) *NodeFilterValue

NewNodeFilter is allocating a new javascript object that implements NodeFilter.

func NewNodeFilterFunc Uses

func NewNodeFilterFunc(f func(node *Node) (_result int)) *NodeFilterValue

NewNodeFilterFunc is allocating a new javascript function is implements NodeFilter interface.

func NodeFilterFromJS Uses

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 Uses

func (_this *NodeFilterValue) AcceptNode(node *Node) (_result int)

func (*NodeFilterValue) JSValue Uses

func (t *NodeFilterValue) JSValue() js.Value

JSValue is returning the javascript object that implements this callback interface

func (*NodeFilterValue) Release Uses

func (t *NodeFilterValue) Release()

Release is releasing all resources that is allocated.

type NodeIterator Uses

type NodeIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: NodeIterator

func NodeIteratorFromJS Uses

func NodeIteratorFromJS(value js.Wrapper) *NodeIterator

NodeIteratorFromJS is casting a js.Wrapper into NodeIterator.

func (*NodeIterator) Detach Uses

func (_this *NodeIterator) Detach()

func (*NodeIterator) Filter Uses

func (_this *NodeIterator) Filter() NodeFilter

Filter returning attribute 'filter' with type NodeFilter (idl: NodeFilter).

func (*NodeIterator) JSValue Uses

func (_this *NodeIterator) JSValue() js.Value

func (*NodeIterator) NextNode Uses

func (_this *NodeIterator) NextNode() (_result *Node)

func (*NodeIterator) PointerBeforeReferenceNode Uses

func (_this *NodeIterator) PointerBeforeReferenceNode() bool

PointerBeforeReferenceNode returning attribute 'pointerBeforeReferenceNode' with type bool (idl: boolean).

func (*NodeIterator) PreviousNode Uses

func (_this *NodeIterator) PreviousNode() (_result *Node)

func (*NodeIterator) ReferenceNode Uses

func (_this *NodeIterator) ReferenceNode() *Node

ReferenceNode returning attribute 'referenceNode' with type Node (idl: Node).

func (*NodeIterator) Root Uses

func (_this *NodeIterator) Root() *Node

Root returning attribute 'root' with type Node (idl: Node).

func (*NodeIterator) WhatToShow Uses

func (_this *NodeIterator) WhatToShow() uint

WhatToShow returning attribute 'whatToShow' with type uint (idl: unsigned long).

type NodeList Uses

type NodeList struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: NodeList

func NodeListFromJS Uses

func NodeListFromJS(value js.Wrapper) *NodeList

NodeListFromJS is casting a js.Wrapper into NodeList.

func (*NodeList) Entries Uses

func (_this *NodeList) Entries() (_result *NodeListEntryIterator)

func (*NodeList) ForEach Uses

func (_this *NodeList) ForEach(callback *NodeListForEach, optionalThisForCallbackArgument interface{})

func (*NodeList) Index Uses

func (_this *NodeList) Index(index uint) (_result *Node)

func (*NodeList) Item Uses

func (_this *NodeList) Item(index uint) (_result *Node)

func (*NodeList) JSValue Uses

func (_this *NodeList) JSValue() js.Value

func (*NodeList) Keys Uses

func (_this *NodeList) Keys() (_result *NodeListKeyIterator)

func (*NodeList) Length Uses

func (_this *NodeList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*NodeList) Values Uses

func (_this *NodeList) Values() (_result *NodeListValueIterator)

type NodeListEntryIterator Uses

type NodeListEntryIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: NodeListEntryIterator

func NodeListEntryIteratorFromJS Uses

func NodeListEntryIteratorFromJS(value js.Wrapper) *NodeListEntryIterator

NodeListEntryIteratorFromJS is casting a js.Wrapper into NodeListEntryIterator.

func (*NodeListEntryIterator) JSValue Uses

func (_this *NodeListEntryIterator) JSValue() js.Value

func (*NodeListEntryIterator) Next Uses

func (_this *NodeListEntryIterator) Next() (_result *NodeListEntryIteratorValue)

type NodeListEntryIteratorValue Uses

type NodeListEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: NodeListEntryIteratorValue

func NodeListEntryIteratorValueFromJS Uses

func NodeListEntryIteratorValueFromJS(value js.Wrapper) *NodeListEntryIteratorValue

NodeListEntryIteratorValueFromJS is allocating a new NodeListEntryIteratorValue object and copy all values from input javascript object

func (*NodeListEntryIteratorValue) JSValue Uses

func (_this *NodeListEntryIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type NodeListForEach Uses

type NodeListForEach js.Func

NodeListForEach is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func NodeListForEachToJS Uses

func NodeListForEachToJS(callback NodeListForEachFunc) *NodeListForEach

type NodeListForEachFunc Uses

type NodeListForEachFunc func(currentValue *Node, currentIndex int, listObj *NodeList)

callback: NodeListForEach

func NodeListForEachFromJS Uses

func NodeListForEachFromJS(_value js.Value) NodeListForEachFunc

type NodeListKeyIterator Uses

type NodeListKeyIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: NodeListKeyIterator

func NodeListKeyIteratorFromJS Uses

func NodeListKeyIteratorFromJS(value js.Wrapper) *NodeListKeyIterator

NodeListKeyIteratorFromJS is casting a js.Wrapper into NodeListKeyIterator.

func (*NodeListKeyIterator) JSValue Uses

func (_this *NodeListKeyIterator) JSValue() js.Value

func (*NodeListKeyIterator) Next Uses

func (_this *NodeListKeyIterator) Next() (_result *NodeListKeyIteratorValue)

type NodeListKeyIteratorValue Uses

type NodeListKeyIteratorValue struct {
    Value uint
    Done  bool
}

dictionary: NodeListKeyIteratorValue

func NodeListKeyIteratorValueFromJS Uses

func NodeListKeyIteratorValueFromJS(value js.Wrapper) *NodeListKeyIteratorValue

NodeListKeyIteratorValueFromJS is allocating a new NodeListKeyIteratorValue object and copy all values from input javascript object

func (*NodeListKeyIteratorValue) JSValue Uses

func (_this *NodeListKeyIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type NodeListValueIterator Uses

type NodeListValueIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: NodeListValueIterator

func NodeListValueIteratorFromJS Uses

func NodeListValueIteratorFromJS(value js.Wrapper) *NodeListValueIterator

NodeListValueIteratorFromJS is casting a js.Wrapper into NodeListValueIterator.

func (*NodeListValueIterator) JSValue Uses

func (_this *NodeListValueIterator) JSValue() js.Value

func (*NodeListValueIterator) Next Uses

func (_this *NodeListValueIterator) Next() (_result *NodeListValueIteratorValue)

type NodeListValueIteratorValue Uses

type NodeListValueIteratorValue struct {
    Value *Node
    Done  bool
}

dictionary: NodeListValueIteratorValue

func NodeListValueIteratorValueFromJS Uses

func NodeListValueIteratorValueFromJS(value js.Wrapper) *NodeListValueIteratorValue

NodeListValueIteratorValueFromJS is allocating a new NodeListValueIteratorValue object and copy all values from input javascript object

func (*NodeListValueIteratorValue) JSValue Uses

func (_this *NodeListValueIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ProcessingInstruction Uses

type ProcessingInstruction struct {
    CharacterData
}

class: ProcessingInstruction

func ProcessingInstructionFromJS Uses

func ProcessingInstructionFromJS(value js.Wrapper) *ProcessingInstruction

ProcessingInstructionFromJS is casting a js.Wrapper into ProcessingInstruction.

func (*ProcessingInstruction) Sheet Uses

func (_this *ProcessingInstruction) Sheet() *cssom.CSSStyleSheet

Sheet returning attribute 'sheet' with type cssom.CSSStyleSheet (idl: CSSStyleSheet).

func (*ProcessingInstruction) Target Uses

func (_this *ProcessingInstruction) Target() string

Target returning attribute 'target' with type string (idl: DOMString).

type PromiseDeadFragmentInformation Uses

type PromiseDeadFragmentInformation struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseDeadFragmentInformationFromJS Uses

func PromiseDeadFragmentInformationFromJS(value js.Wrapper) *PromiseDeadFragmentInformation

PromiseDeadFragmentInformationFromJS is casting a js.Wrapper into PromiseDeadFragmentInformation.

func (*PromiseDeadFragmentInformation) Catch Uses

func (_this *PromiseDeadFragmentInformation) Catch(onRejected *PromiseDeadFragmentInformationOnRejected) (_result *PromiseDeadFragmentInformation)

func (*PromiseDeadFragmentInformation) Finally Uses

func (_this *PromiseDeadFragmentInformation) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseDeadFragmentInformation)

func (*PromiseDeadFragmentInformation) JSValue Uses

func (_this *PromiseDeadFragmentInformation) JSValue() js.Value

func (*PromiseDeadFragmentInformation) Then Uses

func (_this *PromiseDeadFragmentInformation) Then(onFulfilled *PromiseDeadFragmentInformationOnFulfilled, onRejected *PromiseDeadFragmentInformationOnRejected) (_result *PromiseDeadFragmentInformation)

type PromiseDeadFragmentInformationOnFulfilled Uses

type PromiseDeadFragmentInformationOnFulfilled js.Func

PromiseDeadFragmentInformationOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseDeadFragmentInformationOnFulfilledToJS Uses

func PromiseDeadFragmentInformationOnFulfilledToJS(callback PromiseDeadFragmentInformationOnFulfilledFunc) *PromiseDeadFragmentInformationOnFulfilled

type PromiseDeadFragmentInformationOnFulfilledFunc Uses

type PromiseDeadFragmentInformationOnFulfilledFunc func(value *DeadFragmentInformation)

callback: PromiseTemplateOnFulfilled

func PromiseDeadFragmentInformationOnFulfilledFromJS Uses

func PromiseDeadFragmentInformationOnFulfilledFromJS(_value js.Value) PromiseDeadFragmentInformationOnFulfilledFunc

type PromiseDeadFragmentInformationOnRejected Uses

type PromiseDeadFragmentInformationOnRejected js.Func

PromiseDeadFragmentInformationOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseDeadFragmentInformationOnRejectedToJS Uses

func PromiseDeadFragmentInformationOnRejectedToJS(callback PromiseDeadFragmentInformationOnRejectedFunc) *PromiseDeadFragmentInformationOnRejected

type PromiseDeadFragmentInformationOnRejectedFunc Uses

type PromiseDeadFragmentInformationOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseDeadFragmentInformationOnRejectedFromJS Uses

func PromiseDeadFragmentInformationOnRejectedFromJS(_value js.Value) PromiseDeadFragmentInformationOnRejectedFunc

type Range Uses

type Range struct {
    AbstractRange
}

class: Range

func NewRange Uses

func NewRange() (_result *Range)

func RangeFromJS Uses

func RangeFromJS(value js.Wrapper) *Range

RangeFromJS is casting a js.Wrapper into Range.

func (*Range) CloneContents Uses

func (_this *Range) CloneContents() (_result *DocumentFragment)

func (*Range) CloneRange Uses

func (_this *Range) CloneRange() (_result *Range)

func (*Range) Collapse Uses

func (_this *Range) Collapse(toStart *bool)

func (*Range) CommonAncestorContainer Uses

func (_this *Range) CommonAncestorContainer() *Node

CommonAncestorContainer returning attribute 'commonAncestorContainer' with type Node (idl: Node).

func (*Range) CompareBoundaryPoints Uses

func (_this *Range) CompareBoundaryPoints(how int, sourceRange *Range) (_result int)

func (*Range) ComparePoint Uses

func (_this *Range) ComparePoint(node *Node, offset uint) (_result int)

func (*Range) CreateContextualFragment Uses

func (_this *Range) CreateContextualFragment(fragment string) (_result *DocumentFragment)

func (*Range) DeleteContents Uses

func (_this *Range) DeleteContents()

func (*Range) Detach Uses

func (_this *Range) Detach()

func (*Range) ExtractContents Uses

func (_this *Range) ExtractContents() (_result *DocumentFragment)

func (*Range) GetBoundingClientRect Uses

func (_this *Range) GetBoundingClientRect() (_result *geometry.DOMRect)

func (*Range) GetClientRects Uses

func (_this *Range) GetClientRects() (_result *geometry.DOMRectList)

func (*Range) InsertNode Uses

func (_this *Range) InsertNode(node *Node)

func (*Range) IntersectsNode Uses

func (_this *Range) IntersectsNode(node *Node) (_result bool)

func (*Range) IsPointInRange Uses

func (_this *Range) IsPointInRange(node *Node, offset uint) (_result bool)

func (*Range) SelectNode Uses

func (_this *Range) SelectNode(node *Node)

func (*Range) SelectNodeContents Uses

func (_this *Range) SelectNodeContents(node *Node)

func (*Range) SetEnd Uses

func (_this *Range) SetEnd(node *Node, offset uint)

func (*Range) SetEndAfter Uses

func (_this *Range) SetEndAfter(node *Node)

func (*Range) SetEndBefore Uses

func (_this *Range) SetEndBefore(node *Node)

func (*Range) SetStart Uses

func (_this *Range) SetStart(node *Node, offset uint)

func (*Range) SetStartAfter Uses

func (_this *Range) SetStartAfter(node *Node)

func (*Range) SetStartBefore Uses

func (_this *Range) SetStartBefore(node *Node)

func (*Range) SurroundContents Uses

func (_this *Range) SurroundContents(newParent *Node)

func (*Range) ToString Uses

func (_this *Range) ToString() (_result string)

type ShadowRoot Uses

type ShadowRoot struct {
    DocumentFragment
}

class: ShadowRoot

func ShadowRootFromJS Uses

func ShadowRootFromJS(value js.Wrapper) *ShadowRoot

ShadowRootFromJS is casting a js.Wrapper into ShadowRoot.

func (*ShadowRoot) FullscreenElement Uses

func (_this *ShadowRoot) FullscreenElement() *Element

FullscreenElement returning attribute 'fullscreenElement' with type Element (idl: Element).

func (*ShadowRoot) Host Uses

func (_this *ShadowRoot) Host() *Element

Host returning attribute 'host' with type Element (idl: Element).

func (*ShadowRoot) Mode Uses

func (_this *ShadowRoot) Mode() ShadowRootMode

Mode returning attribute 'mode' with type ShadowRootMode (idl: ShadowRootMode).

func (*ShadowRoot) PictureInPictureElement Uses

func (_this *ShadowRoot) PictureInPictureElement() *Element

PictureInPictureElement returning attribute 'pictureInPictureElement' with type Element (idl: Element).

func (*ShadowRoot) PointerLockElement Uses

func (_this *ShadowRoot) PointerLockElement() *Element

PointerLockElement returning attribute 'pointerLockElement' with type Element (idl: Element).

func (*ShadowRoot) StyleSheets Uses

func (_this *ShadowRoot) StyleSheets() *cssom.StyleSheetList

StyleSheets returning attribute 'styleSheets' with type cssom.StyleSheetList (idl: StyleSheetList).

type ShadowRootInit Uses

type ShadowRootInit struct {
    Mode ShadowRootMode
}

dictionary: ShadowRootInit

func ShadowRootInitFromJS Uses

func ShadowRootInitFromJS(value js.Wrapper) *ShadowRootInit

ShadowRootInitFromJS is allocating a new ShadowRootInit object and copy all values from input javascript object

func (*ShadowRootInit) JSValue Uses

func (_this *ShadowRootInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ShadowRootMode Uses

type ShadowRootMode int

enum: ShadowRootMode

const (
    OpenShadowRootMode ShadowRootMode = iota
    ClosedShadowRootMode
)

func ShadowRootModeFromJS Uses

func ShadowRootModeFromJS(value js.Value) ShadowRootMode

ShadowRootModeFromJS is converting a javascript value into a ShadowRootMode enum value.

func (*ShadowRootMode) JSValue Uses

func (this *ShadowRootMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ShadowRootMode) Value Uses

func (this ShadowRootMode) Value() string

Value is converting this into javascript defined string value

type StaticRange Uses

type StaticRange struct {
    AbstractRange
}

class: StaticRange

func StaticRangeFromJS Uses

func StaticRangeFromJS(value js.Wrapper) *StaticRange

StaticRangeFromJS is casting a js.Wrapper into StaticRange.

type Text Uses

type Text struct {
    CharacterData
}

class: Text

func NewText Uses

func NewText(data *string) (_result *Text)

func TextFromJS Uses

func TextFromJS(value js.Wrapper) *Text

TextFromJS is casting a js.Wrapper into Text.

func (*Text) AssignedSlot Uses

func (_this *Text) AssignedSlot() js.Value

AssignedSlot returning attribute 'assignedSlot' with type js.Value (idl: HTMLSlotElement).

Code:

var text *dom.Text

// cast to correct type
value := html.HTMLSlotElementFromJS(text.AssignedSlot())

// do something with value
_ = value

func (*Text) ConvertPointFromNode Uses

func (_this *Text) ConvertPointFromNode(point *geometry.DOMPointInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMPoint)

func (*Text) ConvertQuadFromNode Uses

func (_this *Text) ConvertQuadFromNode(quad *geometry.DOMQuadInit, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)

func (*Text) ConvertRectFromNode Uses

func (_this *Text) ConvertRectFromNode(rect *geometry.DOMRectReadOnly, from *Union, options *view.ConvertCoordinateOptions) (_result *geometry.DOMQuad)

func (*Text) GetBoxQuads Uses

func (_this *Text) GetBoxQuads(options *view.BoxQuadOptions) (_result []*geometry.DOMQuad)

func (*Text) SplitText Uses

func (_this *Text) SplitText(offset uint) (_result *Text)

func (*Text) WholeText Uses

func (_this *Text) WholeText() string

WholeText returning attribute 'wholeText' with type string (idl: DOMString).

type TreeWalker Uses

type TreeWalker struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: TreeWalker

func TreeWalkerFromJS Uses

func TreeWalkerFromJS(value js.Wrapper) *TreeWalker

TreeWalkerFromJS is casting a js.Wrapper into TreeWalker.

func (*TreeWalker) CurrentNode Uses

func (_this *TreeWalker) CurrentNode() *Node

CurrentNode returning attribute 'currentNode' with type Node (idl: Node).

func (*TreeWalker) Filter Uses

func (_this *TreeWalker) Filter() NodeFilter

Filter returning attribute 'filter' with type NodeFilter (idl: NodeFilter).

func (*TreeWalker) FirstChild Uses

func (_this *TreeWalker) FirstChild() (_result *Node)

func (*TreeWalker) JSValue Uses

func (_this *TreeWalker) JSValue() js.Value

func (*TreeWalker) LastChild Uses

func (_this *TreeWalker) LastChild() (_result *Node)

func (*TreeWalker) NextNode Uses

func (_this *TreeWalker) NextNode() (_result *Node)

func (*TreeWalker) NextSibling Uses

func (_this *TreeWalker) NextSibling() (_result *Node)

func (*TreeWalker) ParentNode Uses

func (_this *TreeWalker) ParentNode() (_result *Node)

func (*TreeWalker) PreviousNode Uses

func (_this *TreeWalker) PreviousNode() (_result *Node)

func (*TreeWalker) PreviousSibling Uses

func (_this *TreeWalker) PreviousSibling() (_result *Node)

func (*TreeWalker) Root Uses

func (_this *TreeWalker) Root() *Node

Root returning attribute 'root' with type Node (idl: Node).

func (*TreeWalker) SetCurrentNode Uses

func (_this *TreeWalker) SetCurrentNode(value *Node)

SetCurrentNode setting attribute 'currentNode' with type Node (idl: Node).

func (*TreeWalker) WhatToShow Uses

func (_this *TreeWalker) WhatToShow() uint

WhatToShow returning attribute 'whatToShow' with type uint (idl: unsigned long).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Directories

PathSynopsis
domcorePacakge domcore is shared DOM types
geometryPackage geometry provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices.
intersectionPackage 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").
parserPackage parser is for parsing and serializing of HTML and XML-based DOM nodes for web applications.
permissionsPackage permissions is a common infrastructure to interact with browser permissions.
textPackage text is text encoding standard.

Package dom imports 8 packages (graph) and is imported by 15 packages. Updated 2019-09-20. Refresh now. Tools for package owners.