dom

package
Version: v0.0.0-...-724c8d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package dom define DOM nodes and elements types.

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

Index

Examples

Constants

View Source
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
)
View Source
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
)
View Source
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

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

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

func AttrFromJS(value js.Wrapper) *Attr

AttrFromJS is casting a js.Wrapper into Attr.

func (*Attr) LocalName

func (_this *Attr) LocalName() string

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

func (*Attr) Name

func (_this *Attr) Name() string

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

func (*Attr) NamespaceURI

func (_this *Attr) NamespaceURI() *string

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

func (*Attr) OwnerElement

func (_this *Attr) OwnerElement() *Element

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

func (*Attr) Prefix

func (_this *Attr) Prefix() *string

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

func (*Attr) SetValue

func (_this *Attr) SetValue(value string)

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

func (*Attr) Specified

func (_this *Attr) Specified() bool

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

func (*Attr) Value

func (_this *Attr) Value() string

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

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

func CommentFromJS(value js.Wrapper) *Comment

CommentFromJS is casting a js.Wrapper into Comment.

func NewComment

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

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

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

func ElementFromJS(value js.Wrapper) *Element

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

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

func (*Element) Animate

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

func (*Element) Append

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

func (*Element) AriaActiveDescendant

func (_this *Element) AriaActiveDescendant() *string

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

func (*Element) AriaAtomic

func (_this *Element) AriaAtomic() *string

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

func (*Element) AriaAutoComplete

func (_this *Element) AriaAutoComplete() *string

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

func (*Element) AriaBusy

func (_this *Element) AriaBusy() *string

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

func (*Element) AriaChecked

func (_this *Element) AriaChecked() *string

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

func (*Element) AriaColCount

func (_this *Element) AriaColCount() *string

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

func (*Element) AriaColIndex

func (_this *Element) AriaColIndex() *string

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

func (*Element) AriaColSpan

func (_this *Element) AriaColSpan() *string

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

func (*Element) AriaControls

func (_this *Element) AriaControls() *string

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

func (*Element) AriaCurrent

func (_this *Element) AriaCurrent() *string

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

func (*Element) AriaDescribedBy

func (_this *Element) AriaDescribedBy() *string

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

func (*Element) AriaDetails

func (_this *Element) AriaDetails() *string

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

func (*Element) AriaDisabled

func (_this *Element) AriaDisabled() *string

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

func (*Element) AriaErrorMessage

func (_this *Element) AriaErrorMessage() *string

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

func (*Element) AriaExpanded

func (_this *Element) AriaExpanded() *string

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

func (*Element) AriaFlowTo

func (_this *Element) AriaFlowTo() *string

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

func (*Element) AriaHasPopup

func (_this *Element) AriaHasPopup() *string

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

func (*Element) AriaHidden

func (_this *Element) AriaHidden() *string

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

func (*Element) AriaInvalid

func (_this *Element) AriaInvalid() *string

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

func (*Element) AriaKeyShortcuts

func (_this *Element) AriaKeyShortcuts() *string

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

func (*Element) AriaLabel

func (_this *Element) AriaLabel() *string

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

func (*Element) AriaLabelledBy

func (_this *Element) AriaLabelledBy() *string

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

func (*Element) AriaLevel

func (_this *Element) AriaLevel() *string

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

func (*Element) AriaLive

func (_this *Element) AriaLive() *string

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

func (*Element) AriaModal

func (_this *Element) AriaModal() *string

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

func (*Element) AriaMultiLine

func (_this *Element) AriaMultiLine() *string

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

func (*Element) AriaMultiSelectable

func (_this *Element) AriaMultiSelectable() *string

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

func (*Element) AriaOrientation

func (_this *Element) AriaOrientation() *string

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

func (*Element) AriaOwns

func (_this *Element) AriaOwns() *string

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

func (*Element) AriaPlaceholder

func (_this *Element) AriaPlaceholder() *string

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

func (*Element) AriaPosInSet

func (_this *Element) AriaPosInSet() *string

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

func (*Element) AriaPressed

func (_this *Element) AriaPressed() *string

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

func (*Element) AriaReadOnly

func (_this *Element) AriaReadOnly() *string

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

func (*Element) AriaRelevant

func (_this *Element) AriaRelevant() *string

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

func (*Element) AriaRequired

func (_this *Element) AriaRequired() *string

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

func (*Element) AriaRoleDescription

func (_this *Element) AriaRoleDescription() *string

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

func (*Element) AriaRowCount

func (_this *Element) AriaRowCount() *string

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

func (*Element) AriaRowIndex

func (_this *Element) AriaRowIndex() *string

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

func (*Element) AriaRowSpan

func (_this *Element) AriaRowSpan() *string

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

func (*Element) AriaSelected

func (_this *Element) AriaSelected() *string

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

func (*Element) AriaSetSize

func (_this *Element) AriaSetSize() *string

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

func (*Element) AriaSort

func (_this *Element) AriaSort() *string

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

func (*Element) AriaValueMax

func (_this *Element) AriaValueMax() *string

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

func (*Element) AriaValueMin

func (_this *Element) AriaValueMin() *string

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

func (*Element) AriaValueNow

func (_this *Element) AriaValueNow() *string

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

func (*Element) AriaValueText

func (_this *Element) AriaValueText() *string

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

func (*Element) AssignedSlot

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

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

Example
package main

import (
	"github.com/Programmerino/webapi/dom"
	"github.com/Programmerino/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) Before

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

func (*Element) ChildElementCount

func (_this *Element) ChildElementCount() uint

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

func (_this *Element) ClassName() string

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

func (*Element) ClientHeight

func (_this *Element) ClientHeight() int

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

func (*Element) ClientLeft

func (_this *Element) ClientLeft() int

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

func (*Element) ClientTop

func (_this *Element) ClientTop() int

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

func (*Element) ClientWidth

func (_this *Element) ClientWidth() int

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

func (*Element) Closest

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

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

func (_this *Element) FirstElementChild() *Element

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

func (*Element) GetAnimations

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

func (*Element) GetAttribute

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

func (*Element) GetAttributeNS

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

func (*Element) GetAttributeNames

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

func (*Element) GetAttributeNode

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

func (*Element) GetAttributeNodeNS

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

func (*Element) GetBoundingClientRect

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

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 (_this *Element) HasAttribute(qualifiedName string) (_result bool)

func (*Element) HasAttributeNS

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

func (*Element) HasAttributes

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

func (*Element) HasPointerCapture

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

func (*Element) Id

func (_this *Element) Id() string

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

func (*Element) InnerHTML

func (_this *Element) InnerHTML() string

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

func (*Element) InsertAdjacentElement

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

func (*Element) InsertAdjacentHTML

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

func (*Element) InsertAdjacentText

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

func (*Element) LastElementChild

func (_this *Element) LastElementChild() *Element

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

func (*Element) LocalName

func (_this *Element) LocalName() string

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

func (*Element) Matches

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

func (*Element) NamespaceURI

func (_this *Element) NamespaceURI() *string

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

func (*Element) NextElementSibling

func (_this *Element) NextElementSibling() *Element

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

func (_this *Element) OuterHTML() string

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

func (*Element) Prefix

func (_this *Element) Prefix() *string

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

func (*Element) Prepend

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

func (*Element) PreviousElementSibling

func (_this *Element) PreviousElementSibling() *Element

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

func (*Element) QuerySelector

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

func (*Element) QuerySelectorAll

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

func (*Element) ReleasePointerCapture

func (_this *Element) ReleasePointerCapture(pointerId int)

func (*Element) Remove

func (_this *Element) Remove()

func (*Element) RemoveAttribute

func (_this *Element) RemoveAttribute(qualifiedName string)

func (*Element) RemoveAttributeNS

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

func (*Element) RemoveAttributeNode

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

func (*Element) ReplaceWith

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

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) Role

func (_this *Element) Role() *string

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

func (*Element) Scroll

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

func (*Element) Scroll2

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

func (*Element) ScrollBy

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

func (*Element) ScrollBy2

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

func (*Element) ScrollHeight

func (_this *Element) ScrollHeight() int

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

func (*Element) ScrollIntoView

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

func (*Element) ScrollLeft

func (_this *Element) ScrollLeft() float64

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

func (*Element) ScrollTo

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

func (*Element) ScrollTo2

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

func (*Element) ScrollTop

func (_this *Element) ScrollTop() float64

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

func (*Element) ScrollWidth

func (_this *Element) ScrollWidth() int

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

func (*Element) SetAriaActiveDescendant

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

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

func (*Element) SetAriaAtomic

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

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

func (*Element) SetAriaAutoComplete

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

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

func (*Element) SetAriaBusy

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

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

func (*Element) SetAriaChecked

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

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

func (*Element) SetAriaColCount

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

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

func (*Element) SetAriaColIndex

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

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

func (*Element) SetAriaColSpan

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

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

func (*Element) SetAriaControls

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

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

func (*Element) SetAriaCurrent

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

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

func (*Element) SetAriaDescribedBy

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

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

func (*Element) SetAriaDetails

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

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

func (*Element) SetAriaDisabled

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

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

func (*Element) SetAriaErrorMessage

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

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

func (*Element) SetAriaExpanded

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

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

func (*Element) SetAriaFlowTo

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

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

func (*Element) SetAriaHasPopup

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

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

func (*Element) SetAriaHidden

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

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

func (*Element) SetAriaInvalid

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

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

func (*Element) SetAriaKeyShortcuts

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

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

func (*Element) SetAriaLabel

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

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

func (*Element) SetAriaLabelledBy

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

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

func (*Element) SetAriaLevel

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

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

func (*Element) SetAriaLive

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

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

func (*Element) SetAriaModal

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

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

func (*Element) SetAriaMultiLine

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

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

func (*Element) SetAriaMultiSelectable

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

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

func (*Element) SetAriaOrientation

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

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

func (*Element) SetAriaOwns

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

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

func (*Element) SetAriaPlaceholder

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

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

func (*Element) SetAriaPosInSet

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

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

func (*Element) SetAriaPressed

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

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

func (*Element) SetAriaReadOnly

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

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

func (*Element) SetAriaRelevant

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

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

func (*Element) SetAriaRequired

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

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

func (*Element) SetAriaRoleDescription

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

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

func (*Element) SetAriaRowCount

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

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

func (*Element) SetAriaRowIndex

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

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

func (*Element) SetAriaRowSpan

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

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

func (*Element) SetAriaSelected

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

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

func (*Element) SetAriaSetSize

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

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

func (*Element) SetAriaSort

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

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

func (*Element) SetAriaValueMax

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

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

func (*Element) SetAriaValueMin

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

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

func (*Element) SetAriaValueNow

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

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

func (*Element) SetAriaValueText

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

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

func (*Element) SetAttribute

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

func (*Element) SetAttributeNS

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

func (*Element) SetAttributeNode

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

func (*Element) SetAttributeNodeNS

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

func (*Element) SetClassName

func (_this *Element) SetClassName(value string)

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

func (*Element) SetId

func (_this *Element) SetId(value string)

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

func (*Element) SetInnerHTML

func (_this *Element) SetInnerHTML(value string)

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

func (_this *Element) SetOuterHTML(value string)

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

func (*Element) SetPointerCapture

func (_this *Element) SetPointerCapture(pointerId int)

func (*Element) SetRole

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

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

func (*Element) SetScrollLeft

func (_this *Element) SetScrollLeft(value float64)

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

func (*Element) SetScrollTop

func (_this *Element) SetScrollTop(value float64)

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

func (*Element) SetSlot

func (_this *Element) SetSlot(value string)

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

func (*Element) ShadowRoot

func (_this *Element) ShadowRoot() *ShadowRoot

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

func (*Element) Slot

func (_this *Element) Slot() string

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

func (*Element) TagName

func (_this *Element) TagName() string

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

func (*Element) ToggleAttribute

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

func (*Element) WebkitMatchesSelector

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

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 (
	AutoFullscreenNavigationUI FullscreenNavigationUI = iota
	ShowFullscreenNavigationUI
	HideFullscreenNavigationUI
)

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 {
	NavigationUI FullscreenNavigationUI
}

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

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

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

func NodeFromJS(value js.Wrapper) *Node

NodeFromJS is casting a js.Wrapper into Node.

func (*Node) AppendChild

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

func (*Node) BaseURI

func (_this *Node) BaseURI() string

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

func (*Node) ChildNodes

func (_this *Node) ChildNodes() *NodeList

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

func (*Node) CloneNode

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

func (*Node) CompareDocumentPosition

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

func (*Node) Contains

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

func (*Node) FirstChild

func (_this *Node) FirstChild() *Node

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

func (*Node) GetRootNode

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

func (*Node) HasChildNodes

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

func (*Node) InsertBefore

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

func (*Node) IsConnected

func (_this *Node) IsConnected() bool

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

func (*Node) IsDefaultNamespace

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

func (*Node) IsEqualNode

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

func (*Node) IsSameNode

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

func (*Node) LastChild

func (_this *Node) LastChild() *Node

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

func (*Node) LookupNamespaceURI

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

func (*Node) LookupPrefix

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

func (*Node) NextSibling

func (_this *Node) NextSibling() *Node

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

func (*Node) NodeName

func (_this *Node) NodeName() string

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

func (*Node) NodeType

func (_this *Node) NodeType() int

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

func (*Node) NodeValue

func (_this *Node) NodeValue() *string

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

func (*Node) Normalize

func (_this *Node) Normalize()

func (*Node) OwnerDocument

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

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

Example
package main

import (
	"github.com/Programmerino/webapi"
	"github.com/Programmerino/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

func (_this *Node) ParentElement() *Element

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

func (*Node) ParentNode

func (_this *Node) ParentNode() *Node

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

func (*Node) PreviousSibling

func (_this *Node) PreviousSibling() *Node

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

func (*Node) RemoveChild

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

func (*Node) ReplaceChild

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

func (*Node) SetNodeValue

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

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

func (*Node) SetTextContent

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

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

func (*Node) TextContent

func (_this *Node) TextContent() *string

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

type NodeFilter

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

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

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

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

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

class: NodeList

func NodeListFromJS

func NodeListFromJS(value js.Wrapper) *NodeList

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) Index

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

func (*NodeList) Item

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

func (*NodeList) JSValue

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

func (*NodeList) Keys

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

func (*NodeList) Length

func (_this *NodeList) Length() uint

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

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

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

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

type NodeListForEach js.Func

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

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

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

type NodeListKeyIteratorValue struct {
	Value uint
	Done  bool
}

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

type NodeListValueIteratorValue struct {
	Value *Node
	Done  bool
}

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 (*PromiseDeadFragmentInformation) Finally

func (*PromiseDeadFragmentInformation) JSValue

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

func (*PromiseDeadFragmentInformation) Then

type PromiseDeadFragmentInformationOnFulfilled

type PromiseDeadFragmentInformationOnFulfilled js.Func

PromiseDeadFragmentInformationOnFulfilled is a javascript function type.

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

type PromiseDeadFragmentInformationOnFulfilledFunc

type PromiseDeadFragmentInformationOnFulfilledFunc func(value *DeadFragmentInformation)

callback: PromiseTemplateOnFulfilled

func PromiseDeadFragmentInformationOnFulfilledFromJS

func PromiseDeadFragmentInformationOnFulfilledFromJS(_value js.Value) PromiseDeadFragmentInformationOnFulfilledFunc

type PromiseDeadFragmentInformationOnRejected

type PromiseDeadFragmentInformationOnRejected js.Func

PromiseDeadFragmentInformationOnRejected is a javascript function type.

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

type PromiseDeadFragmentInformationOnRejectedFunc

type PromiseDeadFragmentInformationOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseDeadFragmentInformationOnRejectedFromJS

func PromiseDeadFragmentInformationOnRejectedFromJS(_value js.Value) PromiseDeadFragmentInformationOnRejectedFunc

type Range

type Range struct {
	AbstractRange
}

class: Range

func NewRange

func NewRange() (_result *Range)

func RangeFromJS

func RangeFromJS(value js.Wrapper) *Range

RangeFromJS is casting a js.Wrapper into Range.

func (*Range) CloneContents

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

func (*Range) CloneRange

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

func (*Range) Collapse

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

func (*Range) CommonAncestorContainer

func (_this *Range) CommonAncestorContainer() *Node

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

func (*Range) CompareBoundaryPoints

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

func (*Range) ComparePoint

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

func (*Range) CreateContextualFragment

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

func (*Range) DeleteContents

func (_this *Range) DeleteContents()

func (*Range) Detach

func (_this *Range) Detach()

func (*Range) ExtractContents

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

func (*Range) GetBoundingClientRect

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

func (*Range) GetClientRects

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

func (*Range) InsertNode

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

func (*Range) IntersectsNode

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

func (*Range) IsPointInRange

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

func (*Range) SelectNode

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

func (*Range) SelectNodeContents

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

func (*Range) SetEnd

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

func (*Range) SetEndAfter

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

func (*Range) SetEndBefore

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

func (*Range) SetStart

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

func (*Range) SetStartAfter

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

func (*Range) SetStartBefore

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

func (*Range) SurroundContents

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

func (*Range) ToString

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

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 NewText

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

func TextFromJS

func TextFromJS(value js.Wrapper) *Text

TextFromJS is casting a js.Wrapper into Text.

func (*Text) AssignedSlot

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

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

Example
package main

import (
	"github.com/Programmerino/webapi/dom"
	"github.com/Programmerino/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)

func (*Text) SplitText

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

func (*Text) WholeText

func (_this *Text) WholeText() string

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

type TreeWalker

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

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).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL