dom

package module
v2.0.0-...-51f43a2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 5 Imported by: 31

Documentation

Rendered for js/wasm

Overview

Package dom provides Go bindings for the JavaScript DOM APIs.

This package is an in progress effort of providing idiomatic Go bindings for the DOM, wrapping the JavaScript DOM APIs. The API is neither complete nor frozen yet, but a great amount of the DOM is already usable.

While the package tries to be idiomatic Go, it also tries to stick closely to the JavaScript APIs, so that one does not need to learn a new set of APIs if one is already familiar with it.

One decision that hasn't been made yet is what parts exactly should be part of this package. It is, for example, possible that the canvas APIs will live in a separate package. On the other hand, types such as StorageEvent (the event that gets fired when the HTML5 storage area changes) will be part of this package, simply due to how the DOM is structured – even if the actual storage APIs might live in a separate package. This might require special care to avoid circular dependencies.

The documentation for some of the identifiers is based on the MDN Web Docs by Mozilla Contributors (https://developer.mozilla.org/en-US/docs/Web/API), licensed under CC-BY-SA 2.5 (https://creativecommons.org/licenses/by-sa/2.5/).

Getting started

The usual entry point of using the dom package is by using the GetWindow() function which will return a Window, from which you can get things such as the current Document.

Interfaces

The DOM has a big amount of different element and event types, but they all follow three interfaces. All functions that work on or return generic elements/events will return one of the three interfaces Element, HTMLElement or Event. In these interface values there will be concrete implementations, such as HTMLParagraphElement or FocusEvent. It's also not unusual that values of type Element also implement HTMLElement. In all cases, type assertions can be used.

Example:

el := dom.GetWindow().Document().QuerySelector(".some-element")
htmlEl := el.(dom.HTMLElement)
pEl := el.(*dom.HTMLParagraphElement)

Live collections

Several functions in the JavaScript DOM return "live" collections of elements, that is collections that will be automatically updated when elements get removed or added to the DOM. Our bindings, however, return static slices of elements that, once created, will not automatically reflect updates to the DOM. This is primarily done so that slices can actually be used, as opposed to a form of iterator, but also because we think that magically changing data isn't Go's nature and that snapshots of state are a lot easier to reason about.

This does not, however, mean that all objects are snapshots. Elements, events and generally objects that aren't slices or maps are simple wrappers around JavaScript objects, and as such attributes as well as method calls will always return the most current data. To reflect this behavior, these bindings use pointers to make the semantics clear. Consider the following example:

d := dom.GetWindow().Document()
e1 := d.GetElementByID("my-element")
e2 := d.GetElementByID("my-element")

e1.Class().SetString("some-class")
println(e1.Class().String() == e2.Class().String())

The above example will print `true`.

DOMTokenList

Some objects in the JS API have two versions of attributes, one that returns a string and one that returns a DOMTokenList to ease manipulation of string-delimited lists. Some other objects only provide DOMTokenList, sometimes DOMSettableTokenList. To simplify these bindings, only the DOMTokenList variant will be made available, by the type TokenList. In cases where the string attribute was the only way to completely replace the value, our TokenList will provide Set([]string) and SetString(string) methods, which will be able to accomplish the same. Additionally, our TokenList will provide methods to convert it to strings and slices.

Backwards compatibility

This package has a relatively stable API. However, there will be backwards incompatible changes from time to time. This is because the package isn't complete yet, as well as because the DOM is a moving target, and APIs do change sometimes.

While an attempt is made to reduce changing function signatures to a minimum, it can't always be guaranteed. Sometimes mistakes in the bindings are found that require changing arguments or return values.

Interfaces defined in this package may also change on a semi-regular basis, as new methods are added to them. This happens because the bindings aren't complete and can never really be, as new features are added to the DOM.

Index

Constants

View Source
const (
	DocumentPositionDisconnected           = 1
	DocumentPositionPreceding              = 2
	DocumentPositionFollowing              = 4
	DocumentPositionContains               = 8
	DocumentPositionContainedBy            = 16
	DocumentPositionImplementationSpecific = 32
)
View Source
const (
	EvPhaseNone      = 0
	EvPhaseCapturing = 1
	EvPhaseAtTarget  = 2
	EvPhaseBubbling  = 3
)
View Source
const (
	KeyLocationStandard = 0
	KeyLocationLeft     = 1
	KeyLocationRight    = 2
	KeyLocationNumpad   = 3
)
View Source
const (
	DeltaPixel = 0
	DeltaLine  = 1
	DeltaPage  = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimationEvent

type AnimationEvent struct{ *BasicEvent }

type AudioProcessingEvent

type AudioProcessingEvent struct{ *BasicEvent }

type BasicElement

type BasicElement struct {
	*BasicNode
}

Type BasicElement implements the Element interface and is embedded by concrete element types and HTML element types.

func (*BasicElement) Attributes

func (e *BasicElement) Attributes() map[string]string

func (*BasicElement) Class

func (e *BasicElement) Class() *TokenList

func (*BasicElement) Closest

func (e *BasicElement) Closest(s string) Element

func (*BasicElement) GetAttribute

func (e *BasicElement) GetAttribute(name string) string

func (*BasicElement) GetAttributeNS

func (e *BasicElement) GetAttributeNS(ns string, name string) string

func (*BasicElement) GetBoundingClientRect

func (e *BasicElement) GetBoundingClientRect() *Rect

func (*BasicElement) GetElementsByClassName

func (e *BasicElement) GetElementsByClassName(s string) []Element

func (*BasicElement) GetElementsByTagName

func (e *BasicElement) GetElementsByTagName(s string) []Element

func (*BasicElement) GetElementsByTagNameNS

func (e *BasicElement) GetElementsByTagNameNS(ns string, name string) []Element

func (*BasicElement) HasAttribute

func (e *BasicElement) HasAttribute(s string) bool

func (*BasicElement) HasAttributeNS

func (e *BasicElement) HasAttributeNS(ns string, name string) bool

func (*BasicElement) ID

func (e *BasicElement) ID() string

func (*BasicElement) InnerHTML

func (e *BasicElement) InnerHTML() string

func (*BasicElement) Matches

func (e *BasicElement) Matches(s string) bool

func (*BasicElement) NextElementSibling

func (e *BasicElement) NextElementSibling() Element

func (*BasicElement) OuterHTML

func (e *BasicElement) OuterHTML() string

func (*BasicElement) PreviousElementSibling

func (e *BasicElement) PreviousElementSibling() Element

func (*BasicElement) QuerySelector

func (e *BasicElement) QuerySelector(s string) Element

func (*BasicElement) QuerySelectorAll

func (e *BasicElement) QuerySelectorAll(s string) []Element

func (*BasicElement) Remove

func (e *BasicElement) Remove()

func (*BasicElement) RemoveAttribute

func (e *BasicElement) RemoveAttribute(s string)

func (*BasicElement) RemoveAttributeNS

func (e *BasicElement) RemoveAttributeNS(ns string, name string)

func (*BasicElement) SetAttribute

func (e *BasicElement) SetAttribute(name string, value string)

func (*BasicElement) SetAttributeNS

func (e *BasicElement) SetAttributeNS(ns string, name string, value string)

func (*BasicElement) SetClass

func (e *BasicElement) SetClass(s string)

SetClass sets the element's className attribute to s. Consider using the Class method instead.

func (*BasicElement) SetID

func (e *BasicElement) SetID(s string)

func (*BasicElement) SetInnerHTML

func (e *BasicElement) SetInnerHTML(s string)

func (*BasicElement) SetOuterHTML

func (e *BasicElement) SetOuterHTML(s string)

func (*BasicElement) TagName

func (e *BasicElement) TagName() string

type BasicEvent

type BasicEvent struct{ js.Value }

Type BasicEvent implements the Event interface and is embedded by concrete event types.

func CreateEvent

func CreateEvent(typ string, opts EventOptions) *BasicEvent

func (*BasicEvent) Bubbles

func (ev *BasicEvent) Bubbles() bool

func (*BasicEvent) Cancelable

func (ev *BasicEvent) Cancelable() bool

func (*BasicEvent) CurrentTarget

func (ev *BasicEvent) CurrentTarget() Element

func (*BasicEvent) DefaultPrevented

func (ev *BasicEvent) DefaultPrevented() bool

func (*BasicEvent) EventPhase

func (ev *BasicEvent) EventPhase() int

func (*BasicEvent) PreventDefault

func (ev *BasicEvent) PreventDefault()

func (*BasicEvent) StopImmediatePropagation

func (ev *BasicEvent) StopImmediatePropagation()

func (*BasicEvent) StopPropagation

func (ev *BasicEvent) StopPropagation()

func (*BasicEvent) Target

func (ev *BasicEvent) Target() Element

func (*BasicEvent) Timestamp

func (ev *BasicEvent) Timestamp() time.Time

func (*BasicEvent) Type

func (ev *BasicEvent) Type() string

func (*BasicEvent) Underlying

func (ev *BasicEvent) Underlying() js.Value

type BasicHTMLElement

type BasicHTMLElement struct {
	*BasicElement
}

Type BasicHTMLElement implements the HTMLElement interface and is embedded by concrete HTML element types.

func (*BasicHTMLElement) AccessKey

func (e *BasicHTMLElement) AccessKey() string

func (*BasicHTMLElement) AccessKeyLabel

func (e *BasicHTMLElement) AccessKeyLabel() string

func (*BasicHTMLElement) Blur

func (e *BasicHTMLElement) Blur()

func (*BasicHTMLElement) Click

func (e *BasicHTMLElement) Click()

func (*BasicHTMLElement) ContentEditable

func (e *BasicHTMLElement) ContentEditable() string

func (*BasicHTMLElement) Dataset

func (e *BasicHTMLElement) Dataset() map[string]string

func (*BasicHTMLElement) Dir

func (e *BasicHTMLElement) Dir() string

func (*BasicHTMLElement) Draggable

func (e *BasicHTMLElement) Draggable() bool

func (*BasicHTMLElement) Focus

func (e *BasicHTMLElement) Focus()

func (*BasicHTMLElement) IsContentEditable

func (e *BasicHTMLElement) IsContentEditable() bool

func (*BasicHTMLElement) Lang

func (e *BasicHTMLElement) Lang() string

func (*BasicHTMLElement) OffsetHeight

func (e *BasicHTMLElement) OffsetHeight() float64

func (*BasicHTMLElement) OffsetLeft

func (e *BasicHTMLElement) OffsetLeft() float64

func (*BasicHTMLElement) OffsetParent

func (e *BasicHTMLElement) OffsetParent() HTMLElement

func (*BasicHTMLElement) OffsetTop

func (e *BasicHTMLElement) OffsetTop() float64

func (*BasicHTMLElement) OffsetWidth

func (e *BasicHTMLElement) OffsetWidth() float64

func (*BasicHTMLElement) SetAccessKey

func (e *BasicHTMLElement) SetAccessKey(s string)

func (*BasicHTMLElement) SetAccessKeyLabel

func (e *BasicHTMLElement) SetAccessKeyLabel(s string)

func (*BasicHTMLElement) SetContentEditable

func (e *BasicHTMLElement) SetContentEditable(s string)

func (*BasicHTMLElement) SetDir

func (e *BasicHTMLElement) SetDir(s string)

func (*BasicHTMLElement) SetDraggable

func (e *BasicHTMLElement) SetDraggable(b bool)

func (*BasicHTMLElement) SetLang

func (e *BasicHTMLElement) SetLang(s string)

func (*BasicHTMLElement) SetTabIndex

func (e *BasicHTMLElement) SetTabIndex(i int)

func (*BasicHTMLElement) SetTitle

func (e *BasicHTMLElement) SetTitle(s string)

func (*BasicHTMLElement) Style

func (*BasicHTMLElement) TabIndex

func (e *BasicHTMLElement) TabIndex() int

func (*BasicHTMLElement) Title

func (e *BasicHTMLElement) Title() string

type BasicNode

type BasicNode struct {
	js.Value
}

Type BasicNode implements the Node interface and is embedded by concrete node types and element types.

func (*BasicNode) AddEventListener

func (n *BasicNode) AddEventListener(typ string, useCapture bool, listener func(Event)) js.Func

func (*BasicNode) AppendChild

func (n *BasicNode) AppendChild(newchild Node)

func (*BasicNode) BaseURI

func (n *BasicNode) BaseURI() string

func (*BasicNode) ChildNodes

func (n *BasicNode) ChildNodes() []Node

func (*BasicNode) CloneNode

func (n *BasicNode) CloneNode(deep bool) Node

func (*BasicNode) CompareDocumentPosition

func (n *BasicNode) CompareDocumentPosition(other Node) int

func (*BasicNode) Contains

func (n *BasicNode) Contains(other Node) bool

func (*BasicNode) DispatchEvent

func (n *BasicNode) DispatchEvent(event Event) bool

func (*BasicNode) FirstChild

func (n *BasicNode) FirstChild() Node

func (*BasicNode) HasChildNodes

func (n *BasicNode) HasChildNodes() bool

func (*BasicNode) InsertBefore

func (n *BasicNode) InsertBefore(which Node, before Node)

func (*BasicNode) IsDefaultNamespace

func (n *BasicNode) IsDefaultNamespace(s string) bool

func (*BasicNode) IsEqualNode

func (n *BasicNode) IsEqualNode(other Node) bool

func (*BasicNode) LastChild

func (n *BasicNode) LastChild() Node

func (*BasicNode) LookupNamespaceURI

func (n *BasicNode) LookupNamespaceURI(s string) string

func (*BasicNode) LookupPrefix

func (n *BasicNode) LookupPrefix() string

func (*BasicNode) NextSibling

func (n *BasicNode) NextSibling() Node

func (*BasicNode) NodeName

func (n *BasicNode) NodeName() string

func (*BasicNode) NodeType

func (n *BasicNode) NodeType() int

func (*BasicNode) NodeValue

func (n *BasicNode) NodeValue() string

func (*BasicNode) Normalize

func (n *BasicNode) Normalize()

func (*BasicNode) OwnerDocument

func (n *BasicNode) OwnerDocument() Document

func (*BasicNode) ParentElement

func (n *BasicNode) ParentElement() Element

func (*BasicNode) ParentNode

func (n *BasicNode) ParentNode() Node

func (*BasicNode) PreviousSibling

func (n *BasicNode) PreviousSibling() Node

func (*BasicNode) RemoveChild

func (n *BasicNode) RemoveChild(other Node)

func (*BasicNode) RemoveEventListener

func (n *BasicNode) RemoveEventListener(typ string, useCapture bool, listener js.Func)

func (*BasicNode) ReplaceChild

func (n *BasicNode) ReplaceChild(newChild, oldChild Node)

func (*BasicNode) SetNodeValue

func (n *BasicNode) SetNodeValue(s string)

func (*BasicNode) SetTextContent

func (n *BasicNode) SetTextContent(s string)

func (*BasicNode) TextContent

func (n *BasicNode) TextContent() string

func (*BasicNode) Underlying

func (n *BasicNode) Underlying() js.Value

type BeforeInputEvent

type BeforeInputEvent struct{ *BasicEvent }

type BeforeUnloadEvent

type BeforeUnloadEvent struct{ *BasicEvent }

type BlobEvent

type BlobEvent struct{ *BasicEvent }

type CSSFontFaceLoadEvent

type CSSFontFaceLoadEvent struct{ *BasicEvent }

type CSSStyleDeclaration

type CSSStyleDeclaration struct{ js.Value }

func (*CSSStyleDeclaration) GetPropertyPriority

func (css *CSSStyleDeclaration) GetPropertyPriority(name string) string

func (*CSSStyleDeclaration) GetPropertyValue

func (css *CSSStyleDeclaration) GetPropertyValue(name string) string

func (*CSSStyleDeclaration) Index

func (css *CSSStyleDeclaration) Index(idx int) string

func (*CSSStyleDeclaration) Length

func (css *CSSStyleDeclaration) Length() int

func (*CSSStyleDeclaration) RemoveProperty

func (css *CSSStyleDeclaration) RemoveProperty(name string)

func (*CSSStyleDeclaration) SetProperty

func (css *CSSStyleDeclaration) SetProperty(name, value, priority string)

func (*CSSStyleDeclaration) ToMap

func (css *CSSStyleDeclaration) ToMap() map[string]string

type CSSStyleSheet

type CSSStyleSheet interface{}

type CanvasGradient

type CanvasGradient struct {
	js.Value
}

CanvasGradient represents an opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.CreateLinearGradient or CanvasRenderingContext2D.CreateRadialGradient.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient.

func (*CanvasGradient) AddColorStop

func (cg *CanvasGradient) AddColorStop(offset float64, color string)

AddColorStop adds a new stop, defined by an offset and a color, to the gradient. It panics with *js.Error if the offset is not between 0 and 1, or if the color can't be parsed as a CSS <color>.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop.

type CanvasPattern

type CanvasPattern struct {
	js.Value
}

CanvasPattern represents an opaque object describing a pattern. It is based on an image, a canvas or a video, created by the CanvasRenderingContext2D.CreatePattern method.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern.

type CanvasRenderingContext2D

type CanvasRenderingContext2D struct {
	js.Value
}

func (*CanvasRenderingContext2D) Arc

func (ctx *CanvasRenderingContext2D) Arc(x, y, r, sAngle, eAngle float64, counterclockwise bool)

func (*CanvasRenderingContext2D) ArcTo

func (ctx *CanvasRenderingContext2D) ArcTo(x1, y1, x2, y2, r float64)

func (*CanvasRenderingContext2D) BeginPath

func (ctx *CanvasRenderingContext2D) BeginPath()

func (*CanvasRenderingContext2D) BezierCurveTo

func (ctx *CanvasRenderingContext2D) BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y float64)

func (*CanvasRenderingContext2D) ClearRect

func (ctx *CanvasRenderingContext2D) ClearRect(x, y, width, height float64)

func (*CanvasRenderingContext2D) Clip

func (ctx *CanvasRenderingContext2D) Clip()

func (*CanvasRenderingContext2D) ClosePath

func (ctx *CanvasRenderingContext2D) ClosePath()

func (*CanvasRenderingContext2D) CreateImageData

func (ctx *CanvasRenderingContext2D) CreateImageData(width, height int) *ImageData

func (*CanvasRenderingContext2D) CreateLinearGradient

func (ctx *CanvasRenderingContext2D) CreateLinearGradient(x0, y0, x1, y1 float64) *CanvasGradient

CreateLinearGradient creates a linear gradient along the line given by the coordinates represented by the parameters.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient.

func (*CanvasRenderingContext2D) CreatePattern

func (ctx *CanvasRenderingContext2D) CreatePattern(image Element, repetition string) *CanvasPattern

CreatePattern creates a pattern using the specified image (a CanvasImageSource). It repeats the source in the directions specified by the repetition argument.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern.

func (*CanvasRenderingContext2D) CreateRadialGradient

func (ctx *CanvasRenderingContext2D) CreateRadialGradient(x0, y0, r0, x1, y1, r1 float64) *CanvasGradient

CreateRadialGradient creates a radial gradient given by the coordinates of the two circles represented by the parameters.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createRadialGradient.

func (*CanvasRenderingContext2D) DrawFocusIfNeeded

func (ctx *CanvasRenderingContext2D) DrawFocusIfNeeded(element HTMLElement, path js.Value)

func (*CanvasRenderingContext2D) DrawImage

func (ctx *CanvasRenderingContext2D) DrawImage(image Element, dx, dy float64)

func (*CanvasRenderingContext2D) DrawImageWithDst

func (ctx *CanvasRenderingContext2D) DrawImageWithDst(image Element, dx, dy, dWidth, dHeight float64)

func (*CanvasRenderingContext2D) DrawImageWithSrcAndDst

func (ctx *CanvasRenderingContext2D) DrawImageWithSrcAndDst(image Element, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight float64)

func (*CanvasRenderingContext2D) Ellipse

func (ctx *CanvasRenderingContext2D) Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle float64, anticlockwise bool)

func (*CanvasRenderingContext2D) Fill

func (ctx *CanvasRenderingContext2D) Fill()

func (*CanvasRenderingContext2D) FillRect

func (ctx *CanvasRenderingContext2D) FillRect(x, y, width, height float64)

func (*CanvasRenderingContext2D) FillStyle

func (ctx *CanvasRenderingContext2D) FillStyle() string

func (*CanvasRenderingContext2D) FillText

func (ctx *CanvasRenderingContext2D) FillText(text string, x, y, maxWidth float64)

FillText fills a given text at the given (x, y) position. If the optional maxWidth parameter is not -1, the text will be scaled to fit that width.

func (*CanvasRenderingContext2D) Font

func (ctx *CanvasRenderingContext2D) Font() string

func (*CanvasRenderingContext2D) GetImageData

func (ctx *CanvasRenderingContext2D) GetImageData(sx, sy, sw, sh int) *ImageData

func (*CanvasRenderingContext2D) GetLineDash

func (ctx *CanvasRenderingContext2D) GetLineDash() []float64

func (*CanvasRenderingContext2D) GlobalAlpha

func (ctx *CanvasRenderingContext2D) GlobalAlpha() float64

func (*CanvasRenderingContext2D) GlobalCompositeOperation

func (ctx *CanvasRenderingContext2D) GlobalCompositeOperation() string

func (*CanvasRenderingContext2D) IsPointInPath

func (ctx *CanvasRenderingContext2D) IsPointInPath(x, y float64) bool

func (*CanvasRenderingContext2D) IsPointInStroke

func (ctx *CanvasRenderingContext2D) IsPointInStroke(path js.Value, x, y float64) bool

func (*CanvasRenderingContext2D) LineCap

func (ctx *CanvasRenderingContext2D) LineCap() string

func (*CanvasRenderingContext2D) LineJoin

func (ctx *CanvasRenderingContext2D) LineJoin() string

func (*CanvasRenderingContext2D) LineTo

func (ctx *CanvasRenderingContext2D) LineTo(x, y float64)

func (*CanvasRenderingContext2D) LineWidth

func (ctx *CanvasRenderingContext2D) LineWidth() int

func (*CanvasRenderingContext2D) MeasureText

func (ctx *CanvasRenderingContext2D) MeasureText(text string) *TextMetrics

func (*CanvasRenderingContext2D) MiterLimit

func (ctx *CanvasRenderingContext2D) MiterLimit() int

func (*CanvasRenderingContext2D) MoveTo

func (ctx *CanvasRenderingContext2D) MoveTo(x, y float64)

func (*CanvasRenderingContext2D) PutImageData

func (ctx *CanvasRenderingContext2D) PutImageData(imageData *ImageData, dx, dy float64)

func (*CanvasRenderingContext2D) PutImageDataDirty

func (ctx *CanvasRenderingContext2D) PutImageDataDirty(imageData *ImageData, dx, dy float64, dirtyX, dirtyY, dirtyWidth, dirtyHeight int)

func (*CanvasRenderingContext2D) QuadraticCurveTo

func (ctx *CanvasRenderingContext2D) QuadraticCurveTo(cpx, cpy, x, y float64)

func (*CanvasRenderingContext2D) Rect

func (ctx *CanvasRenderingContext2D) Rect(x, y, width, height float64)

func (*CanvasRenderingContext2D) ResetTransform

func (ctx *CanvasRenderingContext2D) ResetTransform()

func (*CanvasRenderingContext2D) Restore

func (ctx *CanvasRenderingContext2D) Restore()

func (*CanvasRenderingContext2D) Rotate

func (ctx *CanvasRenderingContext2D) Rotate(angle float64)

func (*CanvasRenderingContext2D) Save

func (ctx *CanvasRenderingContext2D) Save()

func (*CanvasRenderingContext2D) Scale

func (ctx *CanvasRenderingContext2D) Scale(scaleWidth, scaleHeight float64)

func (*CanvasRenderingContext2D) ScrollPathIntoView

func (ctx *CanvasRenderingContext2D) ScrollPathIntoView(path js.Value)

func (*CanvasRenderingContext2D) SetFillStyle

func (ctx *CanvasRenderingContext2D) SetFillStyle(v string)

func (*CanvasRenderingContext2D) SetFont

func (ctx *CanvasRenderingContext2D) SetFont(v string)

func (*CanvasRenderingContext2D) SetGlobalAlpha

func (ctx *CanvasRenderingContext2D) SetGlobalAlpha(v float64)

func (*CanvasRenderingContext2D) SetGlobalCompositeOperation

func (ctx *CanvasRenderingContext2D) SetGlobalCompositeOperation(v string)

func (*CanvasRenderingContext2D) SetLineCap

func (ctx *CanvasRenderingContext2D) SetLineCap(v string)

func (*CanvasRenderingContext2D) SetLineDash

func (ctx *CanvasRenderingContext2D) SetLineDash(dashes []float64)

func (*CanvasRenderingContext2D) SetLineJoin

func (ctx *CanvasRenderingContext2D) SetLineJoin(v string)

func (*CanvasRenderingContext2D) SetLineWidth

func (ctx *CanvasRenderingContext2D) SetLineWidth(v int)

func (*CanvasRenderingContext2D) SetMiterLimit

func (ctx *CanvasRenderingContext2D) SetMiterLimit(v int)

func (*CanvasRenderingContext2D) SetShadowBlur

func (ctx *CanvasRenderingContext2D) SetShadowBlur(v int)

func (*CanvasRenderingContext2D) SetShadowColor

func (ctx *CanvasRenderingContext2D) SetShadowColor(v string)

func (*CanvasRenderingContext2D) SetShadowOffsetX

func (ctx *CanvasRenderingContext2D) SetShadowOffsetX(v int)

func (*CanvasRenderingContext2D) SetShadowOffsetY

func (ctx *CanvasRenderingContext2D) SetShadowOffsetY(v int)

func (*CanvasRenderingContext2D) SetStrokeStyle

func (ctx *CanvasRenderingContext2D) SetStrokeStyle(v string)

func (*CanvasRenderingContext2D) SetTextAlign

func (ctx *CanvasRenderingContext2D) SetTextAlign(v string)

func (*CanvasRenderingContext2D) SetTextBaseline

func (ctx *CanvasRenderingContext2D) SetTextBaseline(v string)

func (*CanvasRenderingContext2D) SetTransform

func (ctx *CanvasRenderingContext2D) SetTransform(a, b, c, d, e, f float64)

func (*CanvasRenderingContext2D) ShadowBlur

func (ctx *CanvasRenderingContext2D) ShadowBlur() int

func (*CanvasRenderingContext2D) ShadowColor

func (ctx *CanvasRenderingContext2D) ShadowColor() string

func (*CanvasRenderingContext2D) ShadowOffsetX

func (ctx *CanvasRenderingContext2D) ShadowOffsetX() int

func (*CanvasRenderingContext2D) ShadowOffsetY

func (ctx *CanvasRenderingContext2D) ShadowOffsetY() int

func (*CanvasRenderingContext2D) Stroke

func (ctx *CanvasRenderingContext2D) Stroke()

func (*CanvasRenderingContext2D) StrokeRect

func (ctx *CanvasRenderingContext2D) StrokeRect(x, y, width, height float64)

func (*CanvasRenderingContext2D) StrokeStyle

func (ctx *CanvasRenderingContext2D) StrokeStyle() string

func (*CanvasRenderingContext2D) StrokeText

func (ctx *CanvasRenderingContext2D) StrokeText(text string, x, y, maxWidth float64)

StrokeText strokes a given text at the given (x, y) position. If the optional maxWidth parameter is not -1, the text will be scaled to fit that width.

func (*CanvasRenderingContext2D) TextAlign

func (ctx *CanvasRenderingContext2D) TextAlign() string

func (*CanvasRenderingContext2D) TextBaseline

func (ctx *CanvasRenderingContext2D) TextBaseline() string

func (*CanvasRenderingContext2D) Transform

func (ctx *CanvasRenderingContext2D) Transform(a, b, c, d, e, f float64)

func (*CanvasRenderingContext2D) Translate

func (ctx *CanvasRenderingContext2D) Translate(x, y float64)

type ChildNode

type ChildNode interface {
	PreviousElementSibling() Element
	NextElementSibling() Element
}

type ClipboardEvent

type ClipboardEvent struct{ *BasicEvent }

func (*ClipboardEvent) ClipboardData

func (ev *ClipboardEvent) ClipboardData() *DataTransfer

type CloseEvent

type CloseEvent struct {
	*BasicEvent
}

func (*CloseEvent) Code

func (ev *CloseEvent) Code() int

func (*CloseEvent) Reason

func (ev *CloseEvent) Reason() string

func (*CloseEvent) WasClean

func (ev *CloseEvent) WasClean() bool

type CompositionEvent

type CompositionEvent struct{ *BasicEvent }

type Console

type Console struct {
	js.Value
}

type Coordinates

type Coordinates struct {
	js.Value
}

func (*Coordinates) Accuracy

func (c *Coordinates) Accuracy() float64

func (*Coordinates) Altitude

func (c *Coordinates) Altitude() float64

func (*Coordinates) AltitudeAccuracy

func (c *Coordinates) AltitudeAccuracy() float64

func (*Coordinates) Heading

func (c *Coordinates) Heading() float64

func (*Coordinates) Latitude

func (c *Coordinates) Latitude() float64

func (*Coordinates) Longitude

func (c *Coordinates) Longitude() float64

func (*Coordinates) Speed

func (c *Coordinates) Speed() float64

type CustomEvent

type CustomEvent struct{ *BasicEvent }

type DOMImplementation

type DOMImplementation interface{}

type DOMTransactionEvent

type DOMTransactionEvent struct{ *BasicEvent }

type DataTransfer

type DataTransfer struct{ js.Value }

DataTransfer holds the data that is being dragged during a drag and drop operation.

func (*DataTransfer) GetData

func (dt *DataTransfer) GetData(format string) string

type DeviceLightEvent

type DeviceLightEvent struct{ *BasicEvent }

type DeviceMotionEvent

type DeviceMotionEvent struct{ *BasicEvent }

type DeviceOrientationEvent

type DeviceOrientationEvent struct{ *BasicEvent }

type DeviceProximityEvent

type DeviceProximityEvent struct{ *BasicEvent }

type Document

type Document interface {
	Node
	ParentNode

	Async() bool
	SetAsync(bool)
	Doctype() DocumentType
	DocumentElement() Element
	DocumentURI() string
	Implementation() DOMImplementation
	LastStyleSheetSet() string
	PreferredStyleSheetSet() string // TODO correct type?
	SelectedStyleSheetSet() string  // TODO correct type?
	StyleSheets() []StyleSheet      // TODO s/StyleSheet/Stylesheet/ ?
	StyleSheetSets() []StyleSheet   // TODO correct type?
	AdoptNode(node Node) Node
	ImportNode(node Node, deep bool) Node
	CreateElement(name string) Element
	CreateElementNS(namespace, name string) Element
	CreateTextNode(s string) *Text
	ElementFromPoint(x, y int) Element
	EnableStyleSheetsForSet(name string)
	GetElementsByClassName(name string) []Element
	GetElementsByTagName(name string) []Element
	GetElementsByTagNameNS(ns, name string) []Element
	GetElementByID(id string) Element
	QuerySelector(sel string) Element
	QuerySelectorAll(sel string) []Element

	CreateDocumentFragment() DocumentFragment
}

func WrapDocument

func WrapDocument(o js.Value) Document

type DocumentFragment

type DocumentFragment interface {
	Node
	ParentNode
	QuerySelector(sel string) Element
	QuerySelectorAll(sel string) []Element
	GetElementByID(id string) Element
}

func WrapDocumentFragment

func WrapDocumentFragment(o js.Value) DocumentFragment

type DocumentType

type DocumentType interface{}

type DragEvent

type DragEvent struct{ *BasicEvent }

type EditingBeforeInputEvent

type EditingBeforeInputEvent struct{ *BasicEvent }

type Element

type Element interface {
	Node
	ParentNode
	ChildNode

	Attributes() map[string]string
	Class() *TokenList
	Closest(string) Element
	ID() string
	SetID(string)
	TagName() string
	GetAttribute(string) string                   // TODO can attributes only be strings?
	GetAttributeNS(ns string, name string) string // can attributes only be strings?
	GetBoundingClientRect() *Rect
	GetElementsByClassName(string) []Element
	GetElementsByTagName(string) []Element
	GetElementsByTagNameNS(ns string, name string) []Element
	HasAttribute(string) bool
	HasAttributeNS(ns string, name string) bool
	Matches(string) bool
	QuerySelector(string) Element
	QuerySelectorAll(string) []Element
	Remove()
	RemoveAttribute(string)
	RemoveAttributeNS(ns string, name string)
	SetAttribute(name string, value string)
	SetAttributeNS(ns string, name string, value string)
	InnerHTML() string
	SetInnerHTML(string)
	OuterHTML() string
	SetOuterHTML(string)
}

func WrapElement

func WrapElement(o js.Value) Element

type ErrorEvent

type ErrorEvent struct{ *BasicEvent }

type Event

type Event interface {
	Bubbles() bool
	Cancelable() bool
	CurrentTarget() Element
	DefaultPrevented() bool
	EventPhase() int
	Target() Element
	Timestamp() time.Time
	Type() string
	PreventDefault()
	StopImmediatePropagation()
	StopPropagation()
	Underlying() js.Value
}

func WrapEvent

func WrapEvent(o js.Value) Event

type EventOptions

type EventOptions struct {
	Bubbles    bool
	Cancelable bool
}

type EventTarget

type EventTarget interface {
	// AddEventListener adds a new event listener and returns the
	// wrapper function it generated. If using RemoveEventListener,
	// that wrapper has to be used.
	AddEventListener(typ string, useCapture bool, listener func(Event)) js.Func
	RemoveEventListener(typ string, useCapture bool, listener js.Func)
	DispatchEvent(event Event) bool
}

type File

type File struct {
	js.Value
}

File represents files as can be obtained from file choosers or drag and drop. The dom package does not define any methods on File nor does it provide access to the blob or a way to read it.

type FocusEvent

type FocusEvent struct{ *BasicEvent }

func (*FocusEvent) RelatedTarget

func (ev *FocusEvent) RelatedTarget() Element

type GamepadEvent

type GamepadEvent struct{ *BasicEvent }

type Geolocation

type Geolocation interface {
	// TODO wrap PositionOptions into something that uses the JS
	// object
	CurrentPosition(success func(Position), err func(PositionError), opts PositionOptions) Position
	WatchPosition(success func(Position), err func(PositionError), opts PositionOptions) int
	ClearWatch(int)
}

type GlobalEventHandlers

type GlobalEventHandlers interface{}

type HTMLAnchorElement

type HTMLAnchorElement struct {
	*BasicHTMLElement
	*URLUtils
}

func (*HTMLAnchorElement) HrefLang

func (e *HTMLAnchorElement) HrefLang() string

func (*HTMLAnchorElement) Media

func (e *HTMLAnchorElement) Media() string

func (*HTMLAnchorElement) Rel

func (e *HTMLAnchorElement) Rel() *TokenList

func (*HTMLAnchorElement) SetHrefLang

func (e *HTMLAnchorElement) SetHrefLang(v string)

func (*HTMLAnchorElement) SetMedia

func (e *HTMLAnchorElement) SetMedia(v string)

func (*HTMLAnchorElement) SetTabIndex

func (e *HTMLAnchorElement) SetTabIndex(v int)

func (*HTMLAnchorElement) SetTarget

func (e *HTMLAnchorElement) SetTarget(v string)

func (*HTMLAnchorElement) SetText

func (e *HTMLAnchorElement) SetText(v string)

func (*HTMLAnchorElement) SetType

func (e *HTMLAnchorElement) SetType(v string)

func (*HTMLAnchorElement) TabIndex

func (e *HTMLAnchorElement) TabIndex() int

func (*HTMLAnchorElement) Target

func (e *HTMLAnchorElement) Target() string

func (*HTMLAnchorElement) Text

func (e *HTMLAnchorElement) Text() string

func (*HTMLAnchorElement) Type

func (e *HTMLAnchorElement) Type() string

type HTMLAppletElement

type HTMLAppletElement struct {
	*BasicHTMLElement
}

func (*HTMLAppletElement) Alt

func (e *HTMLAppletElement) Alt() string

func (*HTMLAppletElement) Coords

func (e *HTMLAppletElement) Coords() string

func (*HTMLAppletElement) HrefLang

func (e *HTMLAppletElement) HrefLang() string

func (*HTMLAppletElement) Media

func (e *HTMLAppletElement) Media() string

func (*HTMLAppletElement) Rel

func (e *HTMLAppletElement) Rel() *TokenList

func (*HTMLAppletElement) Search

func (e *HTMLAppletElement) Search() string

func (*HTMLAppletElement) SetAlt

func (e *HTMLAppletElement) SetAlt(v string)

func (*HTMLAppletElement) SetCoords

func (e *HTMLAppletElement) SetCoords(v string)

func (*HTMLAppletElement) SetHrefLang

func (e *HTMLAppletElement) SetHrefLang(v string)

func (*HTMLAppletElement) SetMedia

func (e *HTMLAppletElement) SetMedia(v string)

func (*HTMLAppletElement) SetSearch

func (e *HTMLAppletElement) SetSearch(v string)

func (*HTMLAppletElement) SetShape

func (e *HTMLAppletElement) SetShape(v string)

func (*HTMLAppletElement) SetTabIndex

func (e *HTMLAppletElement) SetTabIndex(v int)

func (*HTMLAppletElement) SetTarget

func (e *HTMLAppletElement) SetTarget(v string)

func (*HTMLAppletElement) SetType

func (e *HTMLAppletElement) SetType(v string)

func (*HTMLAppletElement) Shape

func (e *HTMLAppletElement) Shape() string

func (*HTMLAppletElement) TabIndex

func (e *HTMLAppletElement) TabIndex() int

func (*HTMLAppletElement) Target

func (e *HTMLAppletElement) Target() string

func (*HTMLAppletElement) Type

func (e *HTMLAppletElement) Type() string

type HTMLAreaElement

type HTMLAreaElement struct {
	*BasicHTMLElement
	*URLUtils
}

func (*HTMLAreaElement) Alt

func (e *HTMLAreaElement) Alt() string

func (*HTMLAreaElement) Coords

func (e *HTMLAreaElement) Coords() string

func (*HTMLAreaElement) HrefLang

func (e *HTMLAreaElement) HrefLang() string

func (*HTMLAreaElement) Media

func (e *HTMLAreaElement) Media() string

func (*HTMLAreaElement) Rel

func (e *HTMLAreaElement) Rel() *TokenList

func (*HTMLAreaElement) Search

func (e *HTMLAreaElement) Search() string

func (*HTMLAreaElement) SetAlt

func (e *HTMLAreaElement) SetAlt(v string)

func (*HTMLAreaElement) SetCoords

func (e *HTMLAreaElement) SetCoords(v string)

func (*HTMLAreaElement) SetHrefLang

func (e *HTMLAreaElement) SetHrefLang(v string)

func (*HTMLAreaElement) SetMedia

func (e *HTMLAreaElement) SetMedia(v string)

func (*HTMLAreaElement) SetSearch

func (e *HTMLAreaElement) SetSearch(v string)

func (*HTMLAreaElement) SetShape

func (e *HTMLAreaElement) SetShape(v string)

func (*HTMLAreaElement) SetTabIndex

func (e *HTMLAreaElement) SetTabIndex(v int)

func (*HTMLAreaElement) SetTarget

func (e *HTMLAreaElement) SetTarget(v string)

func (*HTMLAreaElement) SetType

func (e *HTMLAreaElement) SetType(v string)

func (*HTMLAreaElement) Shape

func (e *HTMLAreaElement) Shape() string

func (*HTMLAreaElement) TabIndex

func (e *HTMLAreaElement) TabIndex() int

func (*HTMLAreaElement) Target

func (e *HTMLAreaElement) Target() string

func (*HTMLAreaElement) Type

func (e *HTMLAreaElement) Type() string

type HTMLAudioElement

type HTMLAudioElement struct{ *HTMLMediaElement }

type HTMLBRElement

type HTMLBRElement struct{ *BasicHTMLElement }

type HTMLBaseElement

type HTMLBaseElement struct{ *BasicHTMLElement }

func (*HTMLBaseElement) Href

func (e *HTMLBaseElement) Href() string

func (*HTMLBaseElement) Target

func (e *HTMLBaseElement) Target() string

type HTMLBodyElement

type HTMLBodyElement struct{ *BasicHTMLElement }

type HTMLButtonElement

type HTMLButtonElement struct {
	*BasicHTMLElement
}

func (*HTMLButtonElement) AutoFocus

func (e *HTMLButtonElement) AutoFocus() bool

func (*HTMLButtonElement) CheckValidity

func (e *HTMLButtonElement) CheckValidity() bool

func (*HTMLButtonElement) Disabled

func (e *HTMLButtonElement) Disabled() bool

func (*HTMLButtonElement) Form

func (*HTMLButtonElement) FormAction

func (e *HTMLButtonElement) FormAction() string

func (*HTMLButtonElement) FormEncType

func (e *HTMLButtonElement) FormEncType() string

func (*HTMLButtonElement) FormMethod

func (e *HTMLButtonElement) FormMethod() string

func (*HTMLButtonElement) FormNoValidate

func (e *HTMLButtonElement) FormNoValidate() bool

func (*HTMLButtonElement) FormTarget

func (e *HTMLButtonElement) FormTarget() string

func (*HTMLButtonElement) Labels

func (e *HTMLButtonElement) Labels() []*HTMLLabelElement

func (*HTMLButtonElement) Name

func (e *HTMLButtonElement) Name() string

func (*HTMLButtonElement) SetAutoFocus

func (e *HTMLButtonElement) SetAutoFocus(v bool)

func (*HTMLButtonElement) SetCustomValidity

func (e *HTMLButtonElement) SetCustomValidity(s string)

func (*HTMLButtonElement) SetDisabled

func (e *HTMLButtonElement) SetDisabled(v bool)

func (*HTMLButtonElement) SetFormAction

func (e *HTMLButtonElement) SetFormAction(v string)

func (*HTMLButtonElement) SetFormEncType

func (e *HTMLButtonElement) SetFormEncType(v string)

func (*HTMLButtonElement) SetFormMethod

func (e *HTMLButtonElement) SetFormMethod(v string)

func (*HTMLButtonElement) SetFormNoValidate

func (e *HTMLButtonElement) SetFormNoValidate(v bool)

func (*HTMLButtonElement) SetFormTarget

func (e *HTMLButtonElement) SetFormTarget(v string)

func (*HTMLButtonElement) SetName

func (e *HTMLButtonElement) SetName(v string)

func (*HTMLButtonElement) SetTabIndex

func (e *HTMLButtonElement) SetTabIndex(v int)

func (*HTMLButtonElement) SetType

func (e *HTMLButtonElement) SetType(v string)

func (*HTMLButtonElement) SetValue

func (e *HTMLButtonElement) SetValue(v string)

func (*HTMLButtonElement) TabIndex

func (e *HTMLButtonElement) TabIndex() int

func (*HTMLButtonElement) Type

func (e *HTMLButtonElement) Type() string

func (*HTMLButtonElement) ValidationMessage

func (e *HTMLButtonElement) ValidationMessage() string

func (*HTMLButtonElement) Validity

func (e *HTMLButtonElement) Validity() *ValidityState

func (*HTMLButtonElement) Value

func (e *HTMLButtonElement) Value() string

func (*HTMLButtonElement) WillValidate

func (e *HTMLButtonElement) WillValidate() bool

type HTMLCanvasElement

type HTMLCanvasElement struct {
	*BasicHTMLElement
}

func (*HTMLCanvasElement) GetContext

func (e *HTMLCanvasElement) GetContext(param string) js.Value

func (*HTMLCanvasElement) GetContext2d

func (e *HTMLCanvasElement) GetContext2d() *CanvasRenderingContext2D

func (*HTMLCanvasElement) Height

func (e *HTMLCanvasElement) Height() int

func (*HTMLCanvasElement) SetHeight

func (e *HTMLCanvasElement) SetHeight(v int)

func (*HTMLCanvasElement) SetWidth

func (e *HTMLCanvasElement) SetWidth(v int)

func (*HTMLCanvasElement) Width

func (e *HTMLCanvasElement) Width() int

type HTMLDListElement

type HTMLDListElement struct{ *BasicHTMLElement }

type HTMLDataElement

type HTMLDataElement struct {
	*BasicHTMLElement
}

func (*HTMLDataElement) SetValue

func (e *HTMLDataElement) SetValue(v string)

func (*HTMLDataElement) Value

func (e *HTMLDataElement) Value() string

type HTMLDataListElement

type HTMLDataListElement struct{ *BasicHTMLElement }

func (*HTMLDataListElement) Options

func (e *HTMLDataListElement) Options() []*HTMLOptionElement

type HTMLDetailsElement

type HTMLDetailsElement struct {
	*BasicHTMLElement
}

func (*HTMLDetailsElement) Open

func (e *HTMLDetailsElement) Open() bool

func (*HTMLDetailsElement) SetOpen

func (e *HTMLDetailsElement) SetOpen(v bool)

type HTMLDirectoryElement

type HTMLDirectoryElement struct{ *BasicHTMLElement }

type HTMLDivElement

type HTMLDivElement struct{ *BasicHTMLElement }

type HTMLDocument

type HTMLDocument interface {
	Document

	ActiveElement() HTMLElement
	Body() HTMLElement
	Cookie() string
	SetCookie(string)
	DefaultView() Window
	DesignMode() bool
	SetDesignMode(bool)
	Domain() string
	SetDomain(string)
	Forms() []*HTMLFormElement
	Head() *HTMLHeadElement
	Images() []*HTMLImageElement
	LastModified() time.Time
	Links() []HTMLElement
	Location() *Location
	Plugins() []*HTMLEmbedElement
	ReadyState() string
	Referrer() string
	Scripts() []*HTMLScriptElement
	Title() string
	SetTitle(string)
	URL() string
}

type HTMLElement

type HTMLElement interface {
	Element
	GlobalEventHandlers

	AccessKey() string
	Dataset() map[string]string
	SetAccessKey(string)
	AccessKeyLabel() string
	SetAccessKeyLabel(string)
	ContentEditable() string
	SetContentEditable(string)
	IsContentEditable() bool
	Dir() string
	SetDir(string)
	Draggable() bool
	SetDraggable(bool)
	Lang() string
	SetLang(string)
	OffsetHeight() float64
	OffsetLeft() float64
	OffsetParent() HTMLElement
	OffsetTop() float64
	OffsetWidth() float64
	Style() *CSSStyleDeclaration
	Title() string
	SetTitle(string)
	Blur()
	Click()
	Focus()
}

func WrapHTMLElement

func WrapHTMLElement(o js.Value) HTMLElement

type HTMLEmbedElement

type HTMLEmbedElement struct {
	*BasicHTMLElement
}

func (*HTMLEmbedElement) Height

func (e *HTMLEmbedElement) Height() int

func (*HTMLEmbedElement) SetHeight

func (e *HTMLEmbedElement) SetHeight(v int)

func (*HTMLEmbedElement) SetSrc

func (e *HTMLEmbedElement) SetSrc(v string)

func (*HTMLEmbedElement) SetType

func (e *HTMLEmbedElement) SetType(v string)

func (*HTMLEmbedElement) SetWidth

func (e *HTMLEmbedElement) SetWidth(v int)

func (*HTMLEmbedElement) Src

func (e *HTMLEmbedElement) Src() string

func (*HTMLEmbedElement) Type

func (e *HTMLEmbedElement) Type() string

func (*HTMLEmbedElement) Width

func (e *HTMLEmbedElement) Width() int

type HTMLFieldSetElement

type HTMLFieldSetElement struct {
	*BasicHTMLElement
}

func (*HTMLFieldSetElement) CheckValidity

func (e *HTMLFieldSetElement) CheckValidity() bool

func (*HTMLFieldSetElement) Disabled

func (e *HTMLFieldSetElement) Disabled() bool

func (*HTMLFieldSetElement) Elements

func (e *HTMLFieldSetElement) Elements() []HTMLElement

func (*HTMLFieldSetElement) Form

func (*HTMLFieldSetElement) Name

func (e *HTMLFieldSetElement) Name() string

func (*HTMLFieldSetElement) SetCustomValidity

func (e *HTMLFieldSetElement) SetCustomValidity(s string)

func (*HTMLFieldSetElement) SetDisabled

func (e *HTMLFieldSetElement) SetDisabled(v bool)

func (*HTMLFieldSetElement) SetName

func (e *HTMLFieldSetElement) SetName(v string)

func (*HTMLFieldSetElement) SetValidationMessage

func (e *HTMLFieldSetElement) SetValidationMessage(v string)

func (*HTMLFieldSetElement) Type

func (e *HTMLFieldSetElement) Type() string

func (*HTMLFieldSetElement) ValidationMessage

func (e *HTMLFieldSetElement) ValidationMessage() string

func (*HTMLFieldSetElement) Validity

func (e *HTMLFieldSetElement) Validity() *ValidityState

func (*HTMLFieldSetElement) WillValidate

func (e *HTMLFieldSetElement) WillValidate() bool

type HTMLFontElement

type HTMLFontElement struct{ *BasicHTMLElement }

type HTMLFormElement

type HTMLFormElement struct {
	*BasicHTMLElement
}

func (*HTMLFormElement) AcceptCharset

func (e *HTMLFormElement) AcceptCharset() string

func (*HTMLFormElement) Action

func (e *HTMLFormElement) Action() string

func (*HTMLFormElement) Autocomplete

func (e *HTMLFormElement) Autocomplete() string

func (*HTMLFormElement) CheckValidity

func (e *HTMLFormElement) CheckValidity() bool

func (*HTMLFormElement) Elements

func (e *HTMLFormElement) Elements() []HTMLElement

func (*HTMLFormElement) Encoding

func (e *HTMLFormElement) Encoding() string

func (*HTMLFormElement) Enctype

func (e *HTMLFormElement) Enctype() string

func (*HTMLFormElement) Item

func (e *HTMLFormElement) Item(index int) HTMLElement

func (*HTMLFormElement) Length

func (e *HTMLFormElement) Length() int

func (*HTMLFormElement) Method

func (e *HTMLFormElement) Method() string

func (*HTMLFormElement) Name

func (e *HTMLFormElement) Name() string

func (*HTMLFormElement) NamedItem

func (e *HTMLFormElement) NamedItem(name string) HTMLElement

func (*HTMLFormElement) NoValidate

func (e *HTMLFormElement) NoValidate() bool

func (*HTMLFormElement) Reset

func (e *HTMLFormElement) Reset()

func (*HTMLFormElement) SetAcceptCharset

func (e *HTMLFormElement) SetAcceptCharset(v string)

func (*HTMLFormElement) SetAction

func (e *HTMLFormElement) SetAction(v string)

func (*HTMLFormElement) SetAutocomplete

func (e *HTMLFormElement) SetAutocomplete(v string)

func (*HTMLFormElement) SetEncoding

func (e *HTMLFormElement) SetEncoding(v string)

func (*HTMLFormElement) SetEnctype

func (e *HTMLFormElement) SetEnctype(v string)

func (*HTMLFormElement) SetMethod

func (e *HTMLFormElement) SetMethod(v string)

func (*HTMLFormElement) SetName

func (e *HTMLFormElement) SetName(v string)

func (*HTMLFormElement) SetNoValidate

func (e *HTMLFormElement) SetNoValidate(v bool)

func (*HTMLFormElement) SetTarget

func (e *HTMLFormElement) SetTarget(v string)

func (*HTMLFormElement) Submit

func (e *HTMLFormElement) Submit()

func (*HTMLFormElement) Target

func (e *HTMLFormElement) Target() string

type HTMLFrameElement

type HTMLFrameElement struct{ *BasicHTMLElement }

type HTMLFrameSetElement

type HTMLFrameSetElement struct{ *BasicHTMLElement }

type HTMLHRElement

type HTMLHRElement struct{ *BasicHTMLElement }

type HTMLHeadElement

type HTMLHeadElement struct{ *BasicHTMLElement }

type HTMLHeadingElement

type HTMLHeadingElement struct{ *BasicHTMLElement }

type HTMLHtmlElement

type HTMLHtmlElement struct{ *BasicHTMLElement }

type HTMLIFrameElement

type HTMLIFrameElement struct {
	*BasicHTMLElement
}

func (*HTMLIFrameElement) ContentDocument

func (e *HTMLIFrameElement) ContentDocument() Document

func (*HTMLIFrameElement) ContentWindow

func (e *HTMLIFrameElement) ContentWindow() Window

func (*HTMLIFrameElement) Height

func (e *HTMLIFrameElement) Height() string

func (*HTMLIFrameElement) Name

func (e *HTMLIFrameElement) Name() string

func (*HTMLIFrameElement) Seamless

func (e *HTMLIFrameElement) Seamless() bool

func (*HTMLIFrameElement) SetHeight

func (e *HTMLIFrameElement) SetHeight(v string)

func (*HTMLIFrameElement) SetName

func (e *HTMLIFrameElement) SetName(v string)

func (*HTMLIFrameElement) SetSeamless

func (e *HTMLIFrameElement) SetSeamless(v bool)

func (*HTMLIFrameElement) SetSrc

func (e *HTMLIFrameElement) SetSrc(v string)

func (*HTMLIFrameElement) SetSrcDoc

func (e *HTMLIFrameElement) SetSrcDoc(v string)

func (*HTMLIFrameElement) SetWidth

func (e *HTMLIFrameElement) SetWidth(v string)

func (*HTMLIFrameElement) Src

func (e *HTMLIFrameElement) Src() string

func (*HTMLIFrameElement) SrcDoc

func (e *HTMLIFrameElement) SrcDoc() string

func (*HTMLIFrameElement) Width

func (e *HTMLIFrameElement) Width() string

type HTMLImageElement

type HTMLImageElement struct {
	*BasicHTMLElement
}

func (*HTMLImageElement) Complete

func (e *HTMLImageElement) Complete() bool

func (*HTMLImageElement) CrossOrigin

func (e *HTMLImageElement) CrossOrigin() string

func (*HTMLImageElement) Height

func (e *HTMLImageElement) Height() int

func (*HTMLImageElement) IsMap

func (e *HTMLImageElement) IsMap() bool

func (*HTMLImageElement) NaturalHeight

func (e *HTMLImageElement) NaturalHeight() int

func (*HTMLImageElement) NaturalWidth

func (e *HTMLImageElement) NaturalWidth() int

func (*HTMLImageElement) SetCrossOrigin

func (e *HTMLImageElement) SetCrossOrigin(v string)

func (*HTMLImageElement) SetHeight

func (e *HTMLImageElement) SetHeight(v int)

func (*HTMLImageElement) SetIsMap

func (e *HTMLImageElement) SetIsMap(v bool)

func (*HTMLImageElement) SetSrc

func (e *HTMLImageElement) SetSrc(v string)

func (*HTMLImageElement) SetUseMap

func (e *HTMLImageElement) SetUseMap(v string)

func (*HTMLImageElement) SetWidth

func (e *HTMLImageElement) SetWidth(v int)

func (*HTMLImageElement) Src

func (e *HTMLImageElement) Src() string

func (*HTMLImageElement) UseMap

func (e *HTMLImageElement) UseMap() string

func (*HTMLImageElement) Width

func (e *HTMLImageElement) Width() int

type HTMLInputElement

type HTMLInputElement struct {
	*BasicHTMLElement
}

func (*HTMLInputElement) Accept

func (e *HTMLInputElement) Accept() string

func (*HTMLInputElement) Alt

func (e *HTMLInputElement) Alt() string

func (*HTMLInputElement) Autocomplete

func (e *HTMLInputElement) Autocomplete() string

func (*HTMLInputElement) Autofocus

func (e *HTMLInputElement) Autofocus() bool

func (*HTMLInputElement) CheckValidity

func (e *HTMLInputElement) CheckValidity() bool

func (*HTMLInputElement) Checked

func (e *HTMLInputElement) Checked() bool

func (*HTMLInputElement) DefaultChecked

func (e *HTMLInputElement) DefaultChecked() bool

func (*HTMLInputElement) DefaultValue

func (e *HTMLInputElement) DefaultValue() string

func (*HTMLInputElement) DirName

func (e *HTMLInputElement) DirName() string

func (*HTMLInputElement) Disabled

func (e *HTMLInputElement) Disabled() bool

func (*HTMLInputElement) Files

func (e *HTMLInputElement) Files() []*File

func (*HTMLInputElement) Form

func (e *HTMLInputElement) Form() *HTMLFormElement

func (*HTMLInputElement) FormAction

func (e *HTMLInputElement) FormAction() string

func (*HTMLInputElement) FormEncType

func (e *HTMLInputElement) FormEncType() string

func (*HTMLInputElement) FormMethod

func (e *HTMLInputElement) FormMethod() string

func (*HTMLInputElement) FormNoValidate

func (e *HTMLInputElement) FormNoValidate() bool

func (*HTMLInputElement) FormTarget

func (e *HTMLInputElement) FormTarget() string

func (*HTMLInputElement) Height

func (e *HTMLInputElement) Height() string

func (*HTMLInputElement) Indeterminate

func (e *HTMLInputElement) Indeterminate() bool

func (*HTMLInputElement) Labels

func (e *HTMLInputElement) Labels() []*HTMLLabelElement

func (*HTMLInputElement) List

func (*HTMLInputElement) Max

func (e *HTMLInputElement) Max() string

func (*HTMLInputElement) MaxLength

func (e *HTMLInputElement) MaxLength() int

func (*HTMLInputElement) Min

func (e *HTMLInputElement) Min() string

func (*HTMLInputElement) Multiple

func (e *HTMLInputElement) Multiple() bool

func (*HTMLInputElement) Name

func (e *HTMLInputElement) Name() string

func (*HTMLInputElement) Pattern

func (e *HTMLInputElement) Pattern() string

func (*HTMLInputElement) Placeholder

func (e *HTMLInputElement) Placeholder() string

func (*HTMLInputElement) ReadOnly

func (e *HTMLInputElement) ReadOnly() bool

func (*HTMLInputElement) Required

func (e *HTMLInputElement) Required() bool

func (*HTMLInputElement) Select

func (e *HTMLInputElement) Select()

func (*HTMLInputElement) SelectionDirection

func (e *HTMLInputElement) SelectionDirection() string

func (*HTMLInputElement) SelectionEnd

func (e *HTMLInputElement) SelectionEnd() int

func (*HTMLInputElement) SelectionStart

func (e *HTMLInputElement) SelectionStart() int

func (*HTMLInputElement) SetAccept

func (e *HTMLInputElement) SetAccept(v string)

func (*HTMLInputElement) SetAlt

func (e *HTMLInputElement) SetAlt(v string)

func (*HTMLInputElement) SetAutocomplete

func (e *HTMLInputElement) SetAutocomplete(v string)

func (*HTMLInputElement) SetAutofocus

func (e *HTMLInputElement) SetAutofocus(v bool)

func (*HTMLInputElement) SetChecked

func (e *HTMLInputElement) SetChecked(v bool)

func (*HTMLInputElement) SetCustomValidity

func (e *HTMLInputElement) SetCustomValidity(s string)

func (*HTMLInputElement) SetDefaultChecked

func (e *HTMLInputElement) SetDefaultChecked(v bool)

func (*HTMLInputElement) SetDefaultValue

func (e *HTMLInputElement) SetDefaultValue(v string)

func (*HTMLInputElement) SetDirName

func (e *HTMLInputElement) SetDirName(v string)

func (*HTMLInputElement) SetDisabled

func (e *HTMLInputElement) SetDisabled(v bool)

func (*HTMLInputElement) SetFormAction

func (e *HTMLInputElement) SetFormAction(v string)

func (*HTMLInputElement) SetFormEncType

func (e *HTMLInputElement) SetFormEncType(v string)

func (*HTMLInputElement) SetFormMethod

func (e *HTMLInputElement) SetFormMethod(v string)

func (*HTMLInputElement) SetFormNoValidate

func (e *HTMLInputElement) SetFormNoValidate(v bool)

func (*HTMLInputElement) SetFormTarget

func (e *HTMLInputElement) SetFormTarget(v string)

func (*HTMLInputElement) SetHeight

func (e *HTMLInputElement) SetHeight(v string)

func (*HTMLInputElement) SetMax

func (e *HTMLInputElement) SetMax(v string)

func (*HTMLInputElement) SetMaxLength

func (e *HTMLInputElement) SetMaxLength(v int)

func (*HTMLInputElement) SetMin

func (e *HTMLInputElement) SetMin(v string)

func (*HTMLInputElement) SetMultiple

func (e *HTMLInputElement) SetMultiple(v bool)

func (*HTMLInputElement) SetName

func (e *HTMLInputElement) SetName(v string)

func (*HTMLInputElement) SetPattern

func (e *HTMLInputElement) SetPattern(v string)

func (*HTMLInputElement) SetPlaceholder

func (e *HTMLInputElement) SetPlaceholder(v string)

func (*HTMLInputElement) SetReadOnly

func (e *HTMLInputElement) SetReadOnly(v bool)

func (*HTMLInputElement) SetRequired

func (e *HTMLInputElement) SetRequired(v bool)

func (*HTMLInputElement) SetSelectionDirection

func (e *HTMLInputElement) SetSelectionDirection(v string)

func (*HTMLInputElement) SetSelectionEnd

func (e *HTMLInputElement) SetSelectionEnd(v int)

func (*HTMLInputElement) SetSelectionRange

func (e *HTMLInputElement) SetSelectionRange(start, end int, direction string)

func (*HTMLInputElement) SetSelectionStart

func (e *HTMLInputElement) SetSelectionStart(v int)

func (*HTMLInputElement) SetSize

func (e *HTMLInputElement) SetSize(v int)

func (*HTMLInputElement) SetSrc

func (e *HTMLInputElement) SetSrc(v string)

func (*HTMLInputElement) SetStep

func (e *HTMLInputElement) SetStep(v string)

func (*HTMLInputElement) SetType

func (e *HTMLInputElement) SetType(v string)

func (*HTMLInputElement) SetValue

func (e *HTMLInputElement) SetValue(v string)

func (*HTMLInputElement) SetWidth

func (e *HTMLInputElement) SetWidth(v string)

func (*HTMLInputElement) SetWillValidate

func (e *HTMLInputElement) SetWillValidate(v bool)

func (*HTMLInputElement) Size

func (e *HTMLInputElement) Size() int

func (*HTMLInputElement) Src

func (e *HTMLInputElement) Src() string

func (*HTMLInputElement) Step

func (e *HTMLInputElement) Step() string

func (*HTMLInputElement) StepDown

func (e *HTMLInputElement) StepDown(n int) error

func (*HTMLInputElement) StepUp

func (e *HTMLInputElement) StepUp(n int) error

func (*HTMLInputElement) TabIndex

func (e *HTMLInputElement) TabIndex() int

func (*HTMLInputElement) Type

func (e *HTMLInputElement) Type() string

func (*HTMLInputElement) ValidationMessage

func (e *HTMLInputElement) ValidationMessage() string

func (*HTMLInputElement) Validity

func (e *HTMLInputElement) Validity() *ValidityState

func (*HTMLInputElement) Value

func (e *HTMLInputElement) Value() string

func (*HTMLInputElement) ValueAsDate

func (e *HTMLInputElement) ValueAsDate() time.Time

func (*HTMLInputElement) ValueAsNumber

func (e *HTMLInputElement) ValueAsNumber() float64

func (*HTMLInputElement) Width

func (e *HTMLInputElement) Width() string

func (*HTMLInputElement) WillValidate

func (e *HTMLInputElement) WillValidate() bool

type HTMLKeygenElement

type HTMLKeygenElement struct {
	*BasicHTMLElement
}

func (*HTMLKeygenElement) Autofocus

func (e *HTMLKeygenElement) Autofocus() bool

func (*HTMLKeygenElement) Challenge

func (e *HTMLKeygenElement) Challenge() string

func (*HTMLKeygenElement) CheckValidity

func (e *HTMLKeygenElement) CheckValidity() bool

func (*HTMLKeygenElement) Disabled

func (e *HTMLKeygenElement) Disabled() bool

func (*HTMLKeygenElement) Form

func (*HTMLKeygenElement) Keytype

func (e *HTMLKeygenElement) Keytype() string

func (*HTMLKeygenElement) Labels

func (e *HTMLKeygenElement) Labels() []*HTMLLabelElement

func (*HTMLKeygenElement) Name

func (e *HTMLKeygenElement) Name() string

func (*HTMLKeygenElement) SetAutofocus

func (e *HTMLKeygenElement) SetAutofocus(v bool)

func (*HTMLKeygenElement) SetChallenge

func (e *HTMLKeygenElement) SetChallenge(v string)

func (*HTMLKeygenElement) SetCustomValidity

func (e *HTMLKeygenElement) SetCustomValidity(s string)

func (*HTMLKeygenElement) SetDisabled

func (e *HTMLKeygenElement) SetDisabled(v bool)

func (*HTMLKeygenElement) SetKeytype

func (e *HTMLKeygenElement) SetKeytype(v string)

func (*HTMLKeygenElement) SetName

func (e *HTMLKeygenElement) SetName(v string)

func (*HTMLKeygenElement) Type

func (e *HTMLKeygenElement) Type() string

func (*HTMLKeygenElement) ValidationMessage

func (e *HTMLKeygenElement) ValidationMessage() string

func (*HTMLKeygenElement) Validity

func (e *HTMLKeygenElement) Validity() *ValidityState

func (*HTMLKeygenElement) WillValidate

func (e *HTMLKeygenElement) WillValidate() bool

type HTMLLIElement

type HTMLLIElement struct {
	*BasicHTMLElement
}

func (*HTMLLIElement) Value

func (e *HTMLLIElement) Value() int

type HTMLLabelElement

type HTMLLabelElement struct {
	*BasicHTMLElement
}

func (*HTMLLabelElement) Control

func (e *HTMLLabelElement) Control() HTMLElement

func (*HTMLLabelElement) For

func (e *HTMLLabelElement) For() string

func (*HTMLLabelElement) Form

func (e *HTMLLabelElement) Form() *HTMLFormElement

type HTMLLegendElement

type HTMLLegendElement struct{ *BasicHTMLElement }

func (*HTMLLegendElement) Form

type HTMLLinkElement

type HTMLLinkElement struct {
	*BasicHTMLElement
}

func (*HTMLLinkElement) Disabled

func (e *HTMLLinkElement) Disabled() bool

func (*HTMLLinkElement) Href

func (e *HTMLLinkElement) Href() string

func (*HTMLLinkElement) HrefLang

func (e *HTMLLinkElement) HrefLang() string

func (*HTMLLinkElement) Media

func (e *HTMLLinkElement) Media() string

func (*HTMLLinkElement) Rel

func (e *HTMLLinkElement) Rel() *TokenList

func (*HTMLLinkElement) SetDisabled

func (e *HTMLLinkElement) SetDisabled(v bool)

func (*HTMLLinkElement) SetHref

func (e *HTMLLinkElement) SetHref(v string)

func (*HTMLLinkElement) SetHrefLang

func (e *HTMLLinkElement) SetHrefLang(v string)

func (*HTMLLinkElement) SetMedia

func (e *HTMLLinkElement) SetMedia(v string)

func (*HTMLLinkElement) SetType

func (e *HTMLLinkElement) SetType(v string)

func (*HTMLLinkElement) Sheet

func (e *HTMLLinkElement) Sheet() StyleSheet

func (*HTMLLinkElement) Sizes

func (e *HTMLLinkElement) Sizes() *TokenList

func (*HTMLLinkElement) Type

func (e *HTMLLinkElement) Type() string

type HTMLMapElement

type HTMLMapElement struct {
	*BasicHTMLElement
}

func (*HTMLMapElement) Areas

func (e *HTMLMapElement) Areas() []*HTMLAreaElement

func (*HTMLMapElement) Images

func (e *HTMLMapElement) Images() []HTMLElement

func (*HTMLMapElement) Name

func (e *HTMLMapElement) Name() string

func (*HTMLMapElement) SetName

func (e *HTMLMapElement) SetName(v string)

type HTMLMediaElement

type HTMLMediaElement struct {
	*BasicHTMLElement
}

func (*HTMLMediaElement) Pause

func (e *HTMLMediaElement) Pause()

func (*HTMLMediaElement) Paused

func (e *HTMLMediaElement) Paused() bool

func (*HTMLMediaElement) Play

func (e *HTMLMediaElement) Play()

func (*HTMLMediaElement) SetPaused

func (e *HTMLMediaElement) SetPaused(v bool)

type HTMLMenuElement

type HTMLMenuElement struct{ *BasicHTMLElement }

type HTMLMetaElement

type HTMLMetaElement struct {
	*BasicHTMLElement
}

func (*HTMLMetaElement) Content

func (e *HTMLMetaElement) Content() string

func (*HTMLMetaElement) HTTPEquiv

func (e *HTMLMetaElement) HTTPEquiv() string

func (*HTMLMetaElement) Name

func (e *HTMLMetaElement) Name() string

func (*HTMLMetaElement) SetContent

func (e *HTMLMetaElement) SetContent(v string)

func (*HTMLMetaElement) SetHTTPEquiv

func (e *HTMLMetaElement) SetHTTPEquiv(v string)

func (*HTMLMetaElement) SetName

func (e *HTMLMetaElement) SetName(v string)

type HTMLMeterElement

type HTMLMeterElement struct {
	*BasicHTMLElement
}

func (*HTMLMeterElement) High

func (e *HTMLMeterElement) High() float64

func (HTMLMeterElement) Labels

func (e HTMLMeterElement) Labels() []*HTMLLabelElement

func (*HTMLMeterElement) Low

func (e *HTMLMeterElement) Low() float64

func (*HTMLMeterElement) Max

func (e *HTMLMeterElement) Max() float64

func (*HTMLMeterElement) Min

func (e *HTMLMeterElement) Min() float64

func (*HTMLMeterElement) Optimum

func (e *HTMLMeterElement) Optimum() float64

func (*HTMLMeterElement) SetHigh

func (e *HTMLMeterElement) SetHigh(v float64)

func (*HTMLMeterElement) SetLow

func (e *HTMLMeterElement) SetLow(v float64)

func (*HTMLMeterElement) SetMax

func (e *HTMLMeterElement) SetMax(v float64)

func (*HTMLMeterElement) SetMin

func (e *HTMLMeterElement) SetMin(v float64)

func (*HTMLMeterElement) SetOptimum

func (e *HTMLMeterElement) SetOptimum(v float64)

type HTMLModElement

type HTMLModElement struct {
	*BasicHTMLElement
}

func (*HTMLModElement) Cite

func (e *HTMLModElement) Cite() string

func (*HTMLModElement) DateTime

func (e *HTMLModElement) DateTime() string

func (*HTMLModElement) SetCite

func (e *HTMLModElement) SetCite(v string)

func (*HTMLModElement) SetDateTime

func (e *HTMLModElement) SetDateTime(v string)

type HTMLOListElement

type HTMLOListElement struct {
	*BasicHTMLElement
}

func (*HTMLOListElement) Reversed

func (e *HTMLOListElement) Reversed() bool

func (*HTMLOListElement) SetReversed

func (e *HTMLOListElement) SetReversed(v bool)

func (*HTMLOListElement) SetStart

func (e *HTMLOListElement) SetStart(v int)

func (*HTMLOListElement) SetType

func (e *HTMLOListElement) SetType(v string)

func (*HTMLOListElement) Start

func (e *HTMLOListElement) Start() int

func (*HTMLOListElement) Type

func (e *HTMLOListElement) Type() string

type HTMLObjectElement

type HTMLObjectElement struct {
	*BasicHTMLElement
}

func (*HTMLObjectElement) CheckValidity

func (e *HTMLObjectElement) CheckValidity() bool

func (*HTMLObjectElement) ContentDocument

func (e *HTMLObjectElement) ContentDocument() Document

func (*HTMLObjectElement) ContentWindow

func (e *HTMLObjectElement) ContentWindow() Window

func (*HTMLObjectElement) Data

func (e *HTMLObjectElement) Data() string

func (*HTMLObjectElement) Form

func (*HTMLObjectElement) Height

func (e *HTMLObjectElement) Height() string

func (*HTMLObjectElement) Name

func (e *HTMLObjectElement) Name() string

func (*HTMLObjectElement) SetCustomValidity

func (e *HTMLObjectElement) SetCustomValidity(s string)

func (*HTMLObjectElement) SetData

func (e *HTMLObjectElement) SetData(v string)

func (*HTMLObjectElement) SetHeight

func (e *HTMLObjectElement) SetHeight(v string)

func (*HTMLObjectElement) SetName

func (e *HTMLObjectElement) SetName(v string)

func (*HTMLObjectElement) SetTabIndex

func (e *HTMLObjectElement) SetTabIndex(v int)

func (*HTMLObjectElement) SetType

func (e *HTMLObjectElement) SetType(v string)

func (*HTMLObjectElement) SetTypeMustMatch

func (e *HTMLObjectElement) SetTypeMustMatch(v bool)

func (*HTMLObjectElement) SetUseMap

func (e *HTMLObjectElement) SetUseMap(v string)

func (*HTMLObjectElement) SetWith

func (e *HTMLObjectElement) SetWith(v string)

func (*HTMLObjectElement) TabIndex

func (e *HTMLObjectElement) TabIndex() int

func (*HTMLObjectElement) Type

func (e *HTMLObjectElement) Type() string

func (*HTMLObjectElement) TypeMustMatch

func (e *HTMLObjectElement) TypeMustMatch() bool

func (*HTMLObjectElement) UseMap

func (e *HTMLObjectElement) UseMap() string

func (*HTMLObjectElement) ValidationMessage

func (e *HTMLObjectElement) ValidationMessage() string

func (*HTMLObjectElement) Validity

func (e *HTMLObjectElement) Validity() *ValidityState

func (*HTMLObjectElement) WillValidate

func (e *HTMLObjectElement) WillValidate() bool

func (*HTMLObjectElement) With

func (e *HTMLObjectElement) With() string

type HTMLOptGroupElement

type HTMLOptGroupElement struct {
	*BasicHTMLElement
}

func (*HTMLOptGroupElement) Disabled

func (e *HTMLOptGroupElement) Disabled() bool

func (*HTMLOptGroupElement) Label

func (e *HTMLOptGroupElement) Label() string

func (*HTMLOptGroupElement) SetDisabled

func (e *HTMLOptGroupElement) SetDisabled(v bool)

func (*HTMLOptGroupElement) SetLabel

func (e *HTMLOptGroupElement) SetLabel(v string)

type HTMLOptionElement

type HTMLOptionElement struct {
	*BasicHTMLElement
}

func (*HTMLOptionElement) DefaultSelected

func (e *HTMLOptionElement) DefaultSelected() bool

func (*HTMLOptionElement) Disabled

func (e *HTMLOptionElement) Disabled() bool

func (*HTMLOptionElement) Form

func (*HTMLOptionElement) Index

func (e *HTMLOptionElement) Index() int

func (*HTMLOptionElement) Label

func (e *HTMLOptionElement) Label() string

func (*HTMLOptionElement) Selected

func (e *HTMLOptionElement) Selected() bool

func (*HTMLOptionElement) SetDefaultSelected

func (e *HTMLOptionElement) SetDefaultSelected(v bool)

func (*HTMLOptionElement) SetDisabled

func (e *HTMLOptionElement) SetDisabled(v bool)

func (*HTMLOptionElement) SetLabel

func (e *HTMLOptionElement) SetLabel(v string)

func (*HTMLOptionElement) SetSelected

func (e *HTMLOptionElement) SetSelected(v bool)

func (*HTMLOptionElement) SetText

func (e *HTMLOptionElement) SetText(v string)

func (*HTMLOptionElement) SetValue

func (e *HTMLOptionElement) SetValue(v string)

func (*HTMLOptionElement) Text

func (e *HTMLOptionElement) Text() string

func (*HTMLOptionElement) Value

func (e *HTMLOptionElement) Value() string

type HTMLOutputElement

type HTMLOutputElement struct {
	*BasicHTMLElement
}

func (*HTMLOutputElement) CheckValidity

func (e *HTMLOutputElement) CheckValidity() bool

func (*HTMLOutputElement) DefaultValue

func (e *HTMLOutputElement) DefaultValue() string

func (*HTMLOutputElement) For

func (e *HTMLOutputElement) For() *TokenList

func (*HTMLOutputElement) Form

func (*HTMLOutputElement) Labels

func (e *HTMLOutputElement) Labels() []*HTMLLabelElement

func (*HTMLOutputElement) Name

func (e *HTMLOutputElement) Name() string

func (*HTMLOutputElement) SetCustomValidity

func (e *HTMLOutputElement) SetCustomValidity(s string)

func (*HTMLOutputElement) SetDefaultValue

func (e *HTMLOutputElement) SetDefaultValue(v string)

func (*HTMLOutputElement) SetName

func (e *HTMLOutputElement) SetName(v string)

func (*HTMLOutputElement) SetValue

func (e *HTMLOutputElement) SetValue(v string)

func (*HTMLOutputElement) Type

func (e *HTMLOutputElement) Type() string

func (*HTMLOutputElement) ValidationMessage

func (e *HTMLOutputElement) ValidationMessage() string

func (*HTMLOutputElement) Validity

func (e *HTMLOutputElement) Validity() *ValidityState

func (*HTMLOutputElement) Value

func (e *HTMLOutputElement) Value() string

func (*HTMLOutputElement) WillValidate

func (e *HTMLOutputElement) WillValidate() bool

type HTMLParagraphElement

type HTMLParagraphElement struct{ *BasicHTMLElement }

type HTMLParamElement

type HTMLParamElement struct {
	*BasicHTMLElement
}

func (*HTMLParamElement) Name

func (e *HTMLParamElement) Name() string

func (*HTMLParamElement) SetName

func (e *HTMLParamElement) SetName(v string)

func (*HTMLParamElement) SetValue

func (e *HTMLParamElement) SetValue(v string)

func (*HTMLParamElement) Value

func (e *HTMLParamElement) Value() string

type HTMLPreElement

type HTMLPreElement struct{ *BasicHTMLElement }

type HTMLProgressElement

type HTMLProgressElement struct {
	*BasicHTMLElement
}

func (*HTMLProgressElement) Labels

func (e *HTMLProgressElement) Labels() []*HTMLLabelElement

func (*HTMLProgressElement) Max

func (e *HTMLProgressElement) Max() float64

func (*HTMLProgressElement) Position

func (e *HTMLProgressElement) Position() float64

func (*HTMLProgressElement) SetMax

func (e *HTMLProgressElement) SetMax(v float64)

func (*HTMLProgressElement) SetValue

func (e *HTMLProgressElement) SetValue(v float64)

func (*HTMLProgressElement) Value

func (e *HTMLProgressElement) Value() float64

type HTMLQuoteElement

type HTMLQuoteElement struct {
	*BasicHTMLElement
}

func (*HTMLQuoteElement) Cite

func (e *HTMLQuoteElement) Cite() string

type HTMLScriptElement

type HTMLScriptElement struct {
	*BasicHTMLElement
}

func (*HTMLScriptElement) Async

func (e *HTMLScriptElement) Async() bool

func (*HTMLScriptElement) Charset

func (e *HTMLScriptElement) Charset() string

func (*HTMLScriptElement) Defer

func (e *HTMLScriptElement) Defer() bool

func (*HTMLScriptElement) SetAsync

func (e *HTMLScriptElement) SetAsync(v bool)

func (*HTMLScriptElement) SetCharset

func (e *HTMLScriptElement) SetCharset(v string)

func (*HTMLScriptElement) SetDefer

func (e *HTMLScriptElement) SetDefer(v bool)

func (*HTMLScriptElement) SetSrc

func (e *HTMLScriptElement) SetSrc(v string)

func (*HTMLScriptElement) SetText

func (e *HTMLScriptElement) SetText(v string)

func (*HTMLScriptElement) SetType

func (e *HTMLScriptElement) SetType(v string)

func (*HTMLScriptElement) Src

func (e *HTMLScriptElement) Src() string

func (*HTMLScriptElement) Text

func (e *HTMLScriptElement) Text() string

func (*HTMLScriptElement) Type

func (e *HTMLScriptElement) Type() string

type HTMLSelectElement

type HTMLSelectElement struct {
	*BasicHTMLElement
}

func (*HTMLSelectElement) Autofocus

func (e *HTMLSelectElement) Autofocus() bool

func (*HTMLSelectElement) CheckValidity

func (e *HTMLSelectElement) CheckValidity() bool

func (*HTMLSelectElement) Disabled

func (e *HTMLSelectElement) Disabled() bool

func (*HTMLSelectElement) Form

func (*HTMLSelectElement) Item

func (e *HTMLSelectElement) Item(index int) *HTMLOptionElement

func (*HTMLSelectElement) Labels

func (e *HTMLSelectElement) Labels() []*HTMLLabelElement

func (*HTMLSelectElement) Length

func (e *HTMLSelectElement) Length() int

func (*HTMLSelectElement) Multiple

func (e *HTMLSelectElement) Multiple() bool

func (*HTMLSelectElement) Name

func (e *HTMLSelectElement) Name() string

func (*HTMLSelectElement) NamedItem

func (e *HTMLSelectElement) NamedItem(name string) *HTMLOptionElement

func (*HTMLSelectElement) Options

func (e *HTMLSelectElement) Options() []*HTMLOptionElement

func (*HTMLSelectElement) Required

func (e *HTMLSelectElement) Required() bool

func (*HTMLSelectElement) SelectedIndex

func (e *HTMLSelectElement) SelectedIndex() int

func (*HTMLSelectElement) SelectedOptions

func (e *HTMLSelectElement) SelectedOptions() []*HTMLOptionElement

func (*HTMLSelectElement) SetAutofocus

func (e *HTMLSelectElement) SetAutofocus(v bool)

func (*HTMLSelectElement) SetCustomValidity

func (e *HTMLSelectElement) SetCustomValidity(s string)

func (*HTMLSelectElement) SetDisabled

func (e *HTMLSelectElement) SetDisabled(v bool)

func (*HTMLSelectElement) SetLength

func (e *HTMLSelectElement) SetLength(v int)

func (*HTMLSelectElement) SetMultiple

func (e *HTMLSelectElement) SetMultiple(v bool)

func (*HTMLSelectElement) SetName

func (e *HTMLSelectElement) SetName(v string)

func (*HTMLSelectElement) SetRequired

func (e *HTMLSelectElement) SetRequired(v bool)

func (*HTMLSelectElement) SetSelectedIndex

func (e *HTMLSelectElement) SetSelectedIndex(v int)

func (*HTMLSelectElement) SetSize

func (e *HTMLSelectElement) SetSize(v int)

func (*HTMLSelectElement) SetValue

func (e *HTMLSelectElement) SetValue(v string)

func (*HTMLSelectElement) Size

func (e *HTMLSelectElement) Size() int

func (*HTMLSelectElement) Type

func (e *HTMLSelectElement) Type() string

func (*HTMLSelectElement) ValidationMessage

func (e *HTMLSelectElement) ValidationMessage() string

func (*HTMLSelectElement) Validity

func (e *HTMLSelectElement) Validity() *ValidityState

func (*HTMLSelectElement) Value

func (e *HTMLSelectElement) Value() string

func (*HTMLSelectElement) WillValidate

func (e *HTMLSelectElement) WillValidate() bool

type HTMLSourceElement

type HTMLSourceElement struct {
	*BasicHTMLElement
}

func (*HTMLSourceElement) Media

func (e *HTMLSourceElement) Media() string

func (*HTMLSourceElement) SetMedia

func (e *HTMLSourceElement) SetMedia(v string)

func (*HTMLSourceElement) SetSrc

func (e *HTMLSourceElement) SetSrc(v string)

func (*HTMLSourceElement) SetType

func (e *HTMLSourceElement) SetType(v string)

func (*HTMLSourceElement) Src

func (e *HTMLSourceElement) Src() string

func (*HTMLSourceElement) Type

func (e *HTMLSourceElement) Type() string

type HTMLSpanElement

type HTMLSpanElement struct{ *BasicHTMLElement }

type HTMLStyleElement

type HTMLStyleElement struct{ *BasicHTMLElement }

type HTMLTableCaptionElement

type HTMLTableCaptionElement struct{ *BasicHTMLElement }

type HTMLTableCellElement

type HTMLTableCellElement struct {
	*BasicHTMLElement
}

func (*HTMLTableCellElement) CellIndex

func (e *HTMLTableCellElement) CellIndex() int

func (*HTMLTableCellElement) ColSpan

func (e *HTMLTableCellElement) ColSpan() int

func (*HTMLTableCellElement) RowSpan

func (e *HTMLTableCellElement) RowSpan() int

func (*HTMLTableCellElement) SetColSpan

func (e *HTMLTableCellElement) SetColSpan(v int)

func (*HTMLTableCellElement) SetRowSpan

func (e *HTMLTableCellElement) SetRowSpan(v int)

type HTMLTableColElement

type HTMLTableColElement struct {
	*BasicHTMLElement
}

func (*HTMLTableColElement) SetSpan

func (e *HTMLTableColElement) SetSpan(v int)

func (*HTMLTableColElement) Span

func (e *HTMLTableColElement) Span() int

type HTMLTableDataCellElement

type HTMLTableDataCellElement struct{ *BasicHTMLElement }

type HTMLTableElement

type HTMLTableElement struct{ *BasicHTMLElement }

type HTMLTableHeaderCellElement

type HTMLTableHeaderCellElement struct {
	*BasicHTMLElement
}

func (*HTMLTableHeaderCellElement) Abbr

func (*HTMLTableHeaderCellElement) Scope

func (*HTMLTableHeaderCellElement) SetAbbr

func (e *HTMLTableHeaderCellElement) SetAbbr(v string)

func (*HTMLTableHeaderCellElement) SetScope

func (e *HTMLTableHeaderCellElement) SetScope(v string)

type HTMLTableRowElement

type HTMLTableRowElement struct {
	*BasicHTMLElement
}

func (*HTMLTableRowElement) Cells

func (*HTMLTableRowElement) DeleteCell

func (e *HTMLTableRowElement) DeleteCell(index int)

func (*HTMLTableRowElement) InsertCell

func (e *HTMLTableRowElement) InsertCell(index int) *HTMLTableCellElement

func (*HTMLTableRowElement) RowIndex

func (e *HTMLTableRowElement) RowIndex() int

func (*HTMLTableRowElement) SectionRowIndex

func (e *HTMLTableRowElement) SectionRowIndex() int

type HTMLTableSectionElement

type HTMLTableSectionElement struct{ *BasicHTMLElement }

func (*HTMLTableSectionElement) DeleteRow

func (e *HTMLTableSectionElement) DeleteRow(index int)

func (*HTMLTableSectionElement) InsertRow

func (e *HTMLTableSectionElement) InsertRow(index int) *HTMLTableRowElement

func (*HTMLTableSectionElement) Rows

type HTMLTemplateElement

type HTMLTemplateElement struct{ *BasicHTMLElement }

func (*HTMLTemplateElement) Content

type HTMLTextAreaElement

type HTMLTextAreaElement struct {
	*BasicHTMLElement
}

func (*HTMLTextAreaElement) Autocomplete

func (e *HTMLTextAreaElement) Autocomplete() string

func (*HTMLTextAreaElement) Autofocus

func (e *HTMLTextAreaElement) Autofocus() bool

func (*HTMLTextAreaElement) CheckValidity

func (e *HTMLTextAreaElement) CheckValidity() bool

func (*HTMLTextAreaElement) Cols

func (e *HTMLTextAreaElement) Cols() int

func (*HTMLTextAreaElement) DefaultValue

func (e *HTMLTextAreaElement) DefaultValue() string

func (*HTMLTextAreaElement) DirName

func (e *HTMLTextAreaElement) DirName() string

func (*HTMLTextAreaElement) Disabled

func (e *HTMLTextAreaElement) Disabled() bool

func (*HTMLTextAreaElement) Form

func (*HTMLTextAreaElement) Labels

func (e *HTMLTextAreaElement) Labels() []*HTMLLabelElement

func (*HTMLTextAreaElement) MaxLength

func (e *HTMLTextAreaElement) MaxLength() int

func (*HTMLTextAreaElement) Name

func (e *HTMLTextAreaElement) Name() string

func (*HTMLTextAreaElement) Placeholder

func (e *HTMLTextAreaElement) Placeholder() string

func (*HTMLTextAreaElement) ReadOnly

func (e *HTMLTextAreaElement) ReadOnly() bool

func (*HTMLTextAreaElement) Required

func (e *HTMLTextAreaElement) Required() bool

func (*HTMLTextAreaElement) Rows

func (e *HTMLTextAreaElement) Rows() int

func (*HTMLTextAreaElement) Select

func (e *HTMLTextAreaElement) Select()

func (*HTMLTextAreaElement) SelectionDirection

func (e *HTMLTextAreaElement) SelectionDirection() string

func (*HTMLTextAreaElement) SelectionEnd

func (e *HTMLTextAreaElement) SelectionEnd() int

func (*HTMLTextAreaElement) SelectionStart

func (e *HTMLTextAreaElement) SelectionStart() int

func (*HTMLTextAreaElement) SetAutocomplete

func (e *HTMLTextAreaElement) SetAutocomplete(v string)

func (*HTMLTextAreaElement) SetAutofocus

func (e *HTMLTextAreaElement) SetAutofocus(v bool)

func (*HTMLTextAreaElement) SetCols

func (e *HTMLTextAreaElement) SetCols(v int)

func (*HTMLTextAreaElement) SetCustomValidity

func (e *HTMLTextAreaElement) SetCustomValidity(s string)

func (*HTMLTextAreaElement) SetDefaultValue

func (e *HTMLTextAreaElement) SetDefaultValue(v string)

func (*HTMLTextAreaElement) SetDirName

func (e *HTMLTextAreaElement) SetDirName(v string)

func (*HTMLTextAreaElement) SetDisabled

func (e *HTMLTextAreaElement) SetDisabled(v bool)

func (*HTMLTextAreaElement) SetMaxLength

func (e *HTMLTextAreaElement) SetMaxLength(v int)

func (*HTMLTextAreaElement) SetName

func (e *HTMLTextAreaElement) SetName(v string)

func (*HTMLTextAreaElement) SetPlaceholder

func (e *HTMLTextAreaElement) SetPlaceholder(v string)

func (*HTMLTextAreaElement) SetReadOnly

func (e *HTMLTextAreaElement) SetReadOnly(v bool)

func (*HTMLTextAreaElement) SetRequired

func (e *HTMLTextAreaElement) SetRequired(v bool)

func (*HTMLTextAreaElement) SetRows

func (e *HTMLTextAreaElement) SetRows(v int)

func (*HTMLTextAreaElement) SetSelectionDirection

func (e *HTMLTextAreaElement) SetSelectionDirection(v string)

func (*HTMLTextAreaElement) SetSelectionEnd

func (e *HTMLTextAreaElement) SetSelectionEnd(v int)

func (*HTMLTextAreaElement) SetSelectionRange

func (e *HTMLTextAreaElement) SetSelectionRange(start, end int, direction string)

func (*HTMLTextAreaElement) SetSelectionStart

func (e *HTMLTextAreaElement) SetSelectionStart(v int)

func (*HTMLTextAreaElement) SetTabIndex

func (e *HTMLTextAreaElement) SetTabIndex(v int)

func (*HTMLTextAreaElement) SetValue

func (e *HTMLTextAreaElement) SetValue(v string)

func (*HTMLTextAreaElement) SetWrap

func (e *HTMLTextAreaElement) SetWrap(v string)

func (*HTMLTextAreaElement) TabIndex

func (e *HTMLTextAreaElement) TabIndex() int

func (*HTMLTextAreaElement) TextLength

func (e *HTMLTextAreaElement) TextLength() int

func (*HTMLTextAreaElement) Type

func (e *HTMLTextAreaElement) Type() string

func (*HTMLTextAreaElement) ValidationMessage

func (e *HTMLTextAreaElement) ValidationMessage() string

func (*HTMLTextAreaElement) Validity

func (e *HTMLTextAreaElement) Validity() *ValidityState

func (*HTMLTextAreaElement) Value

func (e *HTMLTextAreaElement) Value() string

func (*HTMLTextAreaElement) WillValidate

func (e *HTMLTextAreaElement) WillValidate() bool

func (*HTMLTextAreaElement) Wrap

func (e *HTMLTextAreaElement) Wrap() string

type HTMLTimeElement

type HTMLTimeElement struct {
	*BasicHTMLElement
}

func (*HTMLTimeElement) DateTime

func (e *HTMLTimeElement) DateTime() string

type HTMLTitleElement

type HTMLTitleElement struct {
	*BasicHTMLElement
}

func (*HTMLTitleElement) Text

func (e *HTMLTitleElement) Text() string

type HTMLTrackElement

type HTMLTrackElement struct {
	*BasicHTMLElement
}

func (*HTMLTrackElement) Default

func (e *HTMLTrackElement) Default() bool

func (*HTMLTrackElement) Kind

func (e *HTMLTrackElement) Kind() string

func (*HTMLTrackElement) Label

func (e *HTMLTrackElement) Label() string

func (*HTMLTrackElement) ReadyState

func (e *HTMLTrackElement) ReadyState() int

func (*HTMLTrackElement) SetDefault

func (e *HTMLTrackElement) SetDefault(v bool)

func (*HTMLTrackElement) SetKind

func (e *HTMLTrackElement) SetKind(v string)

func (*HTMLTrackElement) SetLabel

func (e *HTMLTrackElement) SetLabel(v string)

func (*HTMLTrackElement) SetSrc

func (e *HTMLTrackElement) SetSrc(v string)

func (*HTMLTrackElement) SetSrclang

func (e *HTMLTrackElement) SetSrclang(v string)

func (*HTMLTrackElement) Src

func (e *HTMLTrackElement) Src() string

func (*HTMLTrackElement) Srclang

func (e *HTMLTrackElement) Srclang() string

func (*HTMLTrackElement) Track

func (e *HTMLTrackElement) Track() *TextTrack

type HTMLUListElement

type HTMLUListElement struct{ *BasicHTMLElement }

type HTMLUnknownElement

type HTMLUnknownElement struct{ *BasicHTMLElement }

type HTMLVideoElement

type HTMLVideoElement struct{ *HTMLMediaElement }

type HashChangeEvent

type HashChangeEvent struct{ *BasicEvent }

type History

type History interface {
	Length() int
	State() interface{}
	Back()
	Forward()
	Go(offset int)
	PushState(state interface{}, title string, url string)
	ReplaceState(state interface{}, title string, url string)
}

type IDBVersionChangeEvent

type IDBVersionChangeEvent struct{ *BasicEvent }

type ImageData

type ImageData struct {
	js.Value
}

func (*ImageData) At

func (m *ImageData) At(x, y int) color.Color

func (*ImageData) Bounds

func (m *ImageData) Bounds() image.Rectangle

func (*ImageData) ColorModel

func (m *ImageData) ColorModel() color.Model

func (*ImageData) Data

func (m *ImageData) Data() js.Value

func (*ImageData) Height

func (m *ImageData) Height() int

func (*ImageData) NRGBAAt

func (m *ImageData) NRGBAAt(x, y int) color.NRGBA

func (*ImageData) Set

func (m *ImageData) Set(x, y int, c color.Color)

func (*ImageData) SetNRGBA

func (m *ImageData) SetNRGBA(x, y int, c color.NRGBA)

func (*ImageData) Width

func (m *ImageData) Width() int

type KeyboardEvent

type KeyboardEvent struct {
	*BasicEvent
}

func (*KeyboardEvent) AltKey

func (ev *KeyboardEvent) AltKey() bool

func (*KeyboardEvent) CharCode

func (ev *KeyboardEvent) CharCode() int

func (*KeyboardEvent) Code

func (ev *KeyboardEvent) Code() string

func (*KeyboardEvent) CtrlKey

func (ev *KeyboardEvent) CtrlKey() bool

func (*KeyboardEvent) Key

func (ev *KeyboardEvent) Key() string

func (*KeyboardEvent) KeyCode

func (ev *KeyboardEvent) KeyCode() int

func (*KeyboardEvent) KeyIdentifier

func (ev *KeyboardEvent) KeyIdentifier() string

func (*KeyboardEvent) KeyLocation

func (ev *KeyboardEvent) KeyLocation() int

func (*KeyboardEvent) Locale

func (ev *KeyboardEvent) Locale() string

func (*KeyboardEvent) Location

func (ev *KeyboardEvent) Location() int

func (*KeyboardEvent) MetaKey

func (ev *KeyboardEvent) MetaKey() bool

func (*KeyboardEvent) ModifierState

func (ev *KeyboardEvent) ModifierState(mod string) bool

func (*KeyboardEvent) Repeat

func (ev *KeyboardEvent) Repeat() bool

func (*KeyboardEvent) ShiftKey

func (ev *KeyboardEvent) ShiftKey() bool

type Location

type Location struct {
	js.Value
	*URLUtils
}

type MediaStreamEvent

type MediaStreamEvent struct{ *BasicEvent }

type MessageEvent

type MessageEvent struct {
	*BasicEvent
}

func (*MessageEvent) Data

func (ev *MessageEvent) Data() js.Value

type MouseEvent

type MouseEvent struct {
	*UIEvent
}

func (*MouseEvent) AltKey

func (ev *MouseEvent) AltKey() bool

func (*MouseEvent) Button

func (ev *MouseEvent) Button() int

func (*MouseEvent) Buttons

func (ev *MouseEvent) Buttons() int

func (*MouseEvent) ClientX

func (ev *MouseEvent) ClientX() int

func (*MouseEvent) ClientY

func (ev *MouseEvent) ClientY() int

func (*MouseEvent) CtrlKey

func (ev *MouseEvent) CtrlKey() bool

func (*MouseEvent) MetaKey

func (ev *MouseEvent) MetaKey() bool

func (*MouseEvent) ModifierState

func (ev *MouseEvent) ModifierState(mod string) bool

func (*MouseEvent) MovementX

func (ev *MouseEvent) MovementX() int

func (*MouseEvent) MovementY

func (ev *MouseEvent) MovementY() int

func (*MouseEvent) OffsetX

func (ev *MouseEvent) OffsetX() float64

func (*MouseEvent) OffsetY

func (ev *MouseEvent) OffsetY() float64

func (*MouseEvent) RelatedTarget

func (ev *MouseEvent) RelatedTarget() Element

func (*MouseEvent) ScreenX

func (ev *MouseEvent) ScreenX() int

func (*MouseEvent) ScreenY

func (ev *MouseEvent) ScreenY() int

func (*MouseEvent) ShiftKey

func (ev *MouseEvent) ShiftKey() bool

type MutationEvent

type MutationEvent struct{ *BasicEvent }
type Navigator interface {
	NavigatorID
	NavigatorLanguage
	NavigatorOnLine
	NavigatorGeolocation
	// NavigatorPlugins
	// NetworkInformation
	CookieEnabled() bool
	DoNotTrack() string
	RegisterProtocolHandler(protocol, uri, title string)
}
type NavigatorGeolocation interface {
	Geolocation() Geolocation
}
type NavigatorID interface {
	AppName() string
	AppVersion() string
	Platform() string
	Product() string
	UserAgent() string
}
type NavigatorLanguage interface {
	Language() string
}
type NavigatorOnLine interface {
	Online() bool
}

type Node

type Node interface {
	EventTarget

	Underlying() js.Value
	BaseURI() string
	ChildNodes() []Node
	FirstChild() Node
	LastChild() Node
	NextSibling() Node
	NodeName() string
	NodeType() int
	NodeValue() string
	SetNodeValue(string)
	OwnerDocument() Document
	ParentNode() Node
	ParentElement() Element
	PreviousSibling() Node
	TextContent() string
	SetTextContent(string)
	AppendChild(Node)
	CloneNode(deep bool) Node
	CompareDocumentPosition(Node) int
	Contains(Node) bool
	HasChildNodes() bool
	InsertBefore(which Node, before Node)
	IsDefaultNamespace(string) bool
	IsEqualNode(Node) bool
	LookupPrefix() string
	LookupNamespaceURI(string) string
	Normalize()
	RemoveChild(Node)
	ReplaceChild(newChild, oldChild Node)
}

func WrapNode

func WrapNode(o js.Value) Node

type OfflineAudioCompletionEvent

type OfflineAudioCompletionEvent struct{ *BasicEvent }

type PageTransitionEvent

type PageTransitionEvent struct{ *BasicEvent }

type ParentNode

type ParentNode interface {
}

type PointerEvent

type PointerEvent struct{ *MouseEvent }

type PopStateEvent

type PopStateEvent struct{ *BasicEvent }

type Position

type Position struct {
	Coords    *Coordinates
	Timestamp time.Time
}

type PositionError

type PositionError struct {
	js.Value
}

func (*PositionError) Code

func (err *PositionError) Code() int

func (*PositionError) Error

func (err *PositionError) Error() string

type PositionOptions

type PositionOptions struct {
	EnableHighAccuracy bool
	Timeout            time.Duration
	MaximumAge         time.Duration
}

type ProgressEvent

type ProgressEvent struct{ *BasicEvent }

type RTCPeerConnectionIceEvent

type RTCPeerConnectionIceEvent struct{ *BasicEvent }

type Rect

type Rect struct {
	js.Value
}

Rect represents a rectangle.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/DOMRect.

func (*Rect) Bottom

func (r *Rect) Bottom() float64

func (*Rect) Height

func (r *Rect) Height() float64

func (*Rect) Left

func (r *Rect) Left() float64

func (*Rect) Right

func (r *Rect) Right() float64

func (*Rect) SetBottom

func (r *Rect) SetBottom(v float64)

func (*Rect) SetHeight

func (r *Rect) SetHeight(v float64)

func (*Rect) SetLeft

func (r *Rect) SetLeft(v float64)

func (*Rect) SetRight

func (r *Rect) SetRight(v float64)

func (*Rect) SetTop

func (r *Rect) SetTop(v float64)

func (*Rect) SetWidth

func (r *Rect) SetWidth(v float64)

func (*Rect) SetX

func (r *Rect) SetX(v float64)

func (*Rect) SetY

func (r *Rect) SetY(v float64)

func (*Rect) Top

func (r *Rect) Top() float64

func (*Rect) Width

func (r *Rect) Width() float64

func (*Rect) X

func (r *Rect) X() float64

func (*Rect) Y

func (r *Rect) Y() float64

type RelatedEvent

type RelatedEvent struct{ *BasicEvent }

type SVGDocument

type SVGDocument interface{}

type SVGElement

type SVGElement interface {
	Element
}

type SVGEvent

type SVGEvent struct{ *BasicEvent }

type SVGZoomEvent

type SVGZoomEvent struct{ *BasicEvent }

type Screen

type Screen struct {
	js.Value
}

func (*Screen) AvailHeight

func (s *Screen) AvailHeight() int

func (*Screen) AvailLeft

func (s *Screen) AvailLeft() int

func (*Screen) AvailTop

func (s *Screen) AvailTop() int

func (*Screen) AvailWidth

func (s *Screen) AvailWidth() int

func (*Screen) ColorDepth

func (s *Screen) ColorDepth() int

func (*Screen) Height

func (s *Screen) Height() int

func (*Screen) Left

func (s *Screen) Left() int

func (*Screen) Orientation

func (s *Screen) Orientation() *ScreenOrientation

func (*Screen) PixelDepth

func (s *Screen) PixelDepth() int

func (*Screen) Top

func (s *Screen) Top() int

func (*Screen) Width

func (s *Screen) Width() int

type ScreenOrientation

type ScreenOrientation struct{ js.Value }

func (*ScreenOrientation) AddEventListener

func (so *ScreenOrientation) AddEventListener(typ string, useCapture bool, listener func(Event)) js.Func

func (*ScreenOrientation) DispatchEvent

func (so *ScreenOrientation) DispatchEvent(event Event) bool

func (*ScreenOrientation) RemoveEventListener

func (so *ScreenOrientation) RemoveEventListener(typ string, useCapture bool, listener js.Func)

type Selection

type Selection interface {
}

type SensorEvent

type SensorEvent struct{ *BasicEvent }

type StorageEvent

type StorageEvent struct{ *BasicEvent }

type StyleSheet

type StyleSheet interface{}

type Text

type Text struct {
	*BasicNode
}

type TextMetrics

type TextMetrics struct {
	js.Value
}

func (*TextMetrics) ActualBoundingBoxAscent

func (m *TextMetrics) ActualBoundingBoxAscent() float64

func (*TextMetrics) ActualBoundingBoxDescent

func (m *TextMetrics) ActualBoundingBoxDescent() float64

func (*TextMetrics) ActualBoundingBoxLeft

func (m *TextMetrics) ActualBoundingBoxLeft() float64

func (*TextMetrics) ActualBoundingBoxRight

func (m *TextMetrics) ActualBoundingBoxRight() float64

func (*TextMetrics) AlphabeticBaseline

func (m *TextMetrics) AlphabeticBaseline() float64

func (*TextMetrics) EmHeightAscent

func (m *TextMetrics) EmHeightAscent() float64

func (*TextMetrics) EmHeightDescent

func (m *TextMetrics) EmHeightDescent() float64

func (*TextMetrics) FontBoundingBoxAscent

func (m *TextMetrics) FontBoundingBoxAscent() float64

func (*TextMetrics) FontBoundingBoxDescent

func (m *TextMetrics) FontBoundingBoxDescent() float64

func (*TextMetrics) HangingBaseline

func (m *TextMetrics) HangingBaseline() float64

func (*TextMetrics) IdeographicBaseline

func (m *TextMetrics) IdeographicBaseline() float64

func (*TextMetrics) Width

func (m *TextMetrics) Width() float64

type TextTrack

type TextTrack struct{ js.Value }

TextTrack represents text track data for <track> elements. It does not currently provide any methods or attributes and it hasn't been decided yet whether they will be added to this package or a separate package.

type TimeEvent

type TimeEvent struct{ *BasicEvent }

type TokenList

type TokenList struct {
	// contains filtered or unexported fields
}

func (*TokenList) Add

func (tl *TokenList) Add(token string)

func (*TokenList) Contains

func (tl *TokenList) Contains(token string) bool

func (*TokenList) Item

func (tl *TokenList) Item(idx int) string

func (*TokenList) Length

func (tl *TokenList) Length() int

func (*TokenList) Remove

func (tl *TokenList) Remove(token string)

func (*TokenList) Set

func (tl *TokenList) Set(s []string)

Set sets the TokenList's value to the list of tokens in s.

Individual tokens in s shouldn't countain spaces.

func (*TokenList) SetString

func (tl *TokenList) SetString(s string)

SetString sets the TokenList's value to the space-separated list of tokens in s.

func (*TokenList) Slice

func (tl *TokenList) Slice() []string

func (*TokenList) String

func (tl *TokenList) String() string

func (*TokenList) Toggle

func (tl *TokenList) Toggle(token string)

type Touch

type Touch struct {
	js.Value
}

Touch represents a single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/Touch.

func (*Touch) ClientX

func (t *Touch) ClientX() float64

func (*Touch) ClientY

func (t *Touch) ClientY() float64

func (*Touch) Force

func (t *Touch) Force() float64

func (*Touch) Identifier

func (t *Touch) Identifier() int

func (*Touch) PageX

func (t *Touch) PageX() float64

func (*Touch) PageY

func (t *Touch) PageY() float64

func (*Touch) RadiusX

func (t *Touch) RadiusX() float64

func (*Touch) RadiusY

func (t *Touch) RadiusY() float64

func (*Touch) RotationAngle

func (t *Touch) RotationAngle() float64

func (*Touch) ScreenX

func (t *Touch) ScreenX() float64

func (*Touch) ScreenY

func (t *Touch) ScreenY() float64

func (*Touch) Target

func (t *Touch) Target() Element

Target returns the Element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/Touch/target.

type TouchEvent

type TouchEvent struct {
	*BasicEvent
}

TouchEvent represents an event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent.

func (*TouchEvent) AltKey

func (ev *TouchEvent) AltKey() bool

func (*TouchEvent) ChangedTouches

func (ev *TouchEvent) ChangedTouches() []*Touch

ChangedTouches lists all individual points of contact whose states changed between the previous touch event and this one.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/changedTouches.

func (*TouchEvent) CtrlKey

func (ev *TouchEvent) CtrlKey() bool

func (*TouchEvent) MetaKey

func (ev *TouchEvent) MetaKey() bool

func (*TouchEvent) ShiftKey

func (ev *TouchEvent) ShiftKey() bool

func (*TouchEvent) TargetTouches

func (ev *TouchEvent) TargetTouches() []*Touch

TargetTouches lists all points of contact that are both currently in contact with the touch surface and were also started on the same element that is the target of the event.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/targetTouches.

func (*TouchEvent) Touches

func (ev *TouchEvent) Touches() []*Touch

Touches lists all current points of contact with the surface, regardless of target or changed status.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/touches.

type TrackEvent

type TrackEvent struct{ *BasicEvent }

type TransitionEvent

type TransitionEvent struct{ *BasicEvent }

type UIEvent

type UIEvent struct{ *BasicEvent }

type URLUtils

type URLUtils struct {
	js.Value
}

func (*URLUtils) Hash

func (u *URLUtils) Hash() string

func (*URLUtils) Host

func (u *URLUtils) Host() string

func (*URLUtils) Hostname

func (u *URLUtils) Hostname() string

func (*URLUtils) Href

func (u *URLUtils) Href() string

func (*URLUtils) Origin

func (u *URLUtils) Origin() string

func (*URLUtils) Password

func (u *URLUtils) Password() string

func (*URLUtils) Pathname

func (u *URLUtils) Pathname() string

func (*URLUtils) Port

func (u *URLUtils) Port() string

func (*URLUtils) Protocol

func (u *URLUtils) Protocol() string

func (*URLUtils) Search

func (u *URLUtils) Search() string

func (*URLUtils) SetHash

func (u *URLUtils) SetHash(v string)

func (*URLUtils) SetHost

func (u *URLUtils) SetHost(v string)

func (*URLUtils) SetHostname

func (u *URLUtils) SetHostname(v string)

func (*URLUtils) SetHref

func (u *URLUtils) SetHref(v string)

func (*URLUtils) SetPassword

func (u *URLUtils) SetPassword(v string)

func (*URLUtils) SetPathname

func (u *URLUtils) SetPathname(v string)

func (*URLUtils) SetPort

func (u *URLUtils) SetPort(v string)

func (*URLUtils) SetProtocol

func (u *URLUtils) SetProtocol(v string)

func (*URLUtils) SetSearch

func (u *URLUtils) SetSearch(v string)

func (*URLUtils) SetUsername

func (u *URLUtils) SetUsername(v string)

func (*URLUtils) Username

func (u *URLUtils) Username() string

type UserProximityEvent

type UserProximityEvent struct{ *BasicEvent }

type ValidityState

type ValidityState struct {
	js.Value
}

func (*ValidityState) CustomError

func (s *ValidityState) CustomError() bool

func (*ValidityState) PatternMismatch

func (s *ValidityState) PatternMismatch() bool

func (*ValidityState) RangeOverflow

func (s *ValidityState) RangeOverflow() bool

func (*ValidityState) RangeUnderflow

func (s *ValidityState) RangeUnderflow() bool

func (*ValidityState) StepMismatch

func (s *ValidityState) StepMismatch() bool

func (*ValidityState) TooLong

func (s *ValidityState) TooLong() bool

func (*ValidityState) TypeMismatch

func (s *ValidityState) TypeMismatch() bool

func (*ValidityState) Valid

func (s *ValidityState) Valid() bool

func (*ValidityState) ValueMissing

func (s *ValidityState) ValueMissing() bool

type WheelEvent

type WheelEvent struct {
	*MouseEvent
}

func (*WheelEvent) DeltaMode

func (ev *WheelEvent) DeltaMode() int

func (*WheelEvent) DeltaX

func (ev *WheelEvent) DeltaX() float64

func (*WheelEvent) DeltaY

func (ev *WheelEvent) DeltaY() float64

func (*WheelEvent) DeltaZ

func (ev *WheelEvent) DeltaZ() float64

type Window

type Window interface {
	EventTarget

	Console() *Console
	Document() Document
	FrameElement() Element
	Location() *Location
	Name() string
	SetName(string)
	InnerHeight() int
	InnerWidth() int
	Length() int
	Opener() Window
	OuterHeight() int
	OuterWidth() int
	ScrollX() int
	ScrollY() int
	Parent() Window
	ScreenX() int
	ScreenY() int
	ScrollMaxX() int
	ScrollMaxY() int
	Top() Window
	History() History
	Navigator() Navigator
	Screen() *Screen
	Alert(string)
	Back()
	Blur()
	CancelAnimationFrame(int)
	ClearInterval(int)
	ClearTimeout(int)
	Close()
	Confirm(string) bool
	Focus()
	Forward()
	GetComputedStyle(el Element, pseudoElt string) *CSSStyleDeclaration
	GetSelection() Selection
	Home()
	MoveBy(dx, dy int)
	MoveTo(x, y int)
	Open(url, name, features string) Window
	OpenDialog(url, name, features string, args []interface{}) Window
	PostMessage(message string, target string, transfer []interface{})
	Print()
	Prompt(prompt string, initial string) string
	RequestAnimationFrame(callback func(time.Duration)) int
	ResizeBy(dw, dh int)
	ResizeTo(w, h int)
	Scroll(x, y int)
	ScrollBy(dx, dy int)
	ScrollByLines(int)
	ScrollTo(x, y int)
	SetCursor(name string)
	SetInterval(fn func(), delay int) int
	SetTimeout(fn func(), delay int) int
	Stop()
}

func GetWindow

func GetWindow() Window

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL