wasm

package module
v0.0.0-...-5b0952c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

README

wasm

Golang wasm library for browser based applications

Attention

Golang's WebAssembly port is EXPERIMENTAL thus this project

Requires Go 1.12

Examples

for usage and examples look https://github.com/sternix/wasm_examples

Documentation

Rendered for js/wasm

Overview

https://w3c.github.io/clipboard-apis/#idl-index

https://drafts.csswg.org/cssom-view/

https://encoding.spec.whatwg.org/#idl-index

https://www.w3.org/TR/IndexedDB

https://w3c.github.io/mediacapture-main

https://w3c.github.io/permissions/#idl-index

https://w3c.github.io/touch-events/

https://www.khronos.org/registry/webgl/specs/latest/1.0/

http://w3c.github.io/webrtc-pc/

https://www.w3.org/TR/webrtc-stats

https://w3c.github.io/workers/

Index

Constants

View Source
const (
	GlobalCompositeOperationSourceAtop      string = "source-atop"
	GlobalCompositeOperationSourceIn        string = "source-in"
	GlobalCompositeOperationSourceAout      string = "source-out"
	GlobalCompositeOperationSourceOver      string = "source-over"
	GlobalCompositeOperationDestinationAtop string = "destination-atop"
	GlobalCompositeOperationDestinationIn   string = "destination-in"
	GlobalCompositeOperationDestinationOut  string = "destination-out"
	GlobalCompositeOperationDestinationOver string = "destination-over"
	GlobalCompositeOperationLighter         string = "lighter"
	GlobalCompositeOperationCopy            string = "copy"
	GlobalCompositeOperationXor             string = "xor"
)
View Source
const (
	KeyAlt        = "Alt"
	KeyAltGraph   = "AltGraph"
	KeyCapsLock   = "CapsLock"
	KeyControl    = "Control"
	KeyFn         = "Fn"
	KeyFnLock     = "FnLock"
	KeyMeta       = "Meta"
	KeyNumLock    = "NumLock"
	KeyScrollLock = "ScrollLock"
	KeyShift      = "Shift"
	KeySymbol     = "Symbol"
	KeySymbolLock = "SymbolLock"
)

Modifier Keys https://www.w3.org/TR/uievents-key/#keys-modifier

View Source
const (
	KeyEnter = "Enter"
	KeyTab   = "Tab"
	KeySpace = " "
)

Whitespace Keys https://www.w3.org/TR/uievents-key/#keys-whitespace

View Source
const (
	KeyArrowDown  = "ArrowDown"
	KeyArrowLeft  = "ArrowLeft"
	KeyArrowRight = "ArrowRight"
	KeyArrowUp    = "ArrowUp"
	KeyEnd        = "End"
	KeyHome       = "Home"
	KeyPageDown   = "PageDown"
	KeyPageUp     = "PageUp"
)

Navigation Keys https://www.w3.org/TR/uievents-key/#keys-navigation

View Source
const (
	KeyBackspace = "Backspace"
	KeyClear     = "Clear"
	KeyCopy      = "Copy"
	KeyCrSel     = "CrSel"
	KeyCut       = "Cut"
	KeyDelete    = "Delete"
	KeyEraseEof  = "EraseEof"
	KeyExSel     = "ExSel"
	KeyInsert    = "Insert"
	KeyPaste     = "Paste"
	KeyRedo      = "Redo"
	KeyUndo      = "Undo"
)

Editing keys https://www.w3.org/TR/uievents-key/#keys-editing

View Source
const (
	KeyAccept      = "Accept"
	KeyAgain       = "Again"
	KeyAttn        = "Attn"
	KeyCancel      = "Cancel"
	KeyContextMenu = "ContextMenu"
	KeyEscape      = "Escape"
	KeyExecute     = "Execute"
	KeyFind        = "Find"
	KeyHelp        = "Help"
	KeyPause       = "Pause"
	KeyPlay        = "Play"
	KeyProps       = "Props"
	KeySelect      = "Select"
	KeyZoomIn      = "ZoomIn"
	KeyZoomOut     = "ZoomOut"
)

UI Keys https://www.w3.org/TR/uievents-key/#keys-ui

View Source
const (
	KeyBrightnessDown = "BrightnessDown"
	KeyBrightnessUp   = "BrightnessUp"
	KeyEject          = "Eject"
	KeyLogOff         = "LogOff"
	KeyPower          = "Power"
	KeyPowerOff       = "PowerOff"
	KeyPrintScreen    = "PrintScreen"
	KeyHibernate      = "Hibernate"
	KeyStandby        = "Standby"
	KeyWakeUp         = "WakeUp"
)

Device Keys https://www.w3.org/TR/uievents-key/#keys-device

View Source
const (
	KeyAllCandidates     = "AllCandidates"
	KeyAlphanumeric      = "Alphanumeric"
	KeyCodeInput         = "CodeInput"
	KeyCompose           = "Compose"
	KeyConvert           = "Convert"
	KeyDead              = "Dead"
	KeyFinalMode         = "FinalMode"
	KeyGroupFirst        = "GroupFirst"
	KeyGroupLast         = "GroupLast"
	KeyGroupNext         = "GroupNext"
	KeyGroupPrevious     = "GroupPrevious"
	KeyModeChange        = "ModeChange"
	KeyNextCandidate     = "NextCandidate"
	KeyNonConvert        = "NonConvert"
	KeyPreviousCandidate = "PreviousCandidate"
	KeyProcess           = "Process"
	KeySingleCandidate   = "SingleCandidate"
	KeyHangulMode        = "HangulMode"
	KeyHanjaMode         = "HanjaMode"
	KeyJunjaMode         = "JunjaMode"
	KeyEisu              = "Eisu"
	KeyHankaku           = "Hankaku"
	KeyHiragana          = "Hiragana"
	KeyHiraganaKatakana  = "HiraganaKatakana"
	KeyKanaMode          = "KanaMode"
	KeyKanjiMode         = "KanjiMode"
	KeyKatakana          = "Katakana"
	KeyRomaji            = "Romaji"
	KeyZenkaku           = "Zenkaku"
	KeyZenkakuHankaku    = "ZenkakuHankaku"
)

IME and Composition Keys https://www.w3.org/TR/uievents-key/#keys-composition

View Source
const (
	KeyF1    = "F1"
	KeyF2    = "F2"
	KeyF3    = "F3"
	KeyF4    = "F4"
	KeyF5    = "F5"
	KeyF6    = "F6"
	KeyF7    = "F7"
	KeyF8    = "F8"
	KeyF9    = "F9"
	KeyF10   = "F10"
	KeyF11   = "F11"
	KeyF12   = "F12"
	KeySoft1 = "Soft1"
	KeySoft2 = "Soft2"
	KeySoft3 = "Soft3"
	KeySoft4 = "Soft4"
)

General-Purpose Function Keys https://www.w3.org/TR/uievents-key/#keys-function

View Source
const (
	KeyChannelDown        = "ChannelDown"
	KeyChannelUp          = "ChannelUp"
	KeyClose              = "Close"
	KeyMailForward        = "MailForward"
	KeyMailReply          = "MailReply"
	KeyMailSend           = "MailSend"
	KeyMediaClose         = "MediaClose"
	KeyMediaFastForward   = "MediaFastForward"
	KeyMediaPause         = "MediaPause"
	KeyMediaPlay          = "MediaPlay"
	KeyMediaPlayPause     = "MediaPlayPause"
	KeyMediaRecord        = "MediaRecord"
	KeyMediaRewind        = "MediaRewind"
	KeyMediaStop          = "MediaStop"
	KeyMediaTrackNext     = "MediaTrackNext"
	KeyMediaTrackPrevious = "MediaTrackPrevious"
	KeyNew                = "New"
	KeyOpen               = "Open"
	KeyPrint              = "Print"
	KeySave               = "Save"
	KeySpellCheck         = "SpellCheck"
)

Multimedia Keys https://www.w3.org/TR/uievents-key/#keys-multimedia

View Source
const (
	KeyKey11 = "Key11"
	KeyKey12 = "Key12"
)

Multimedia Numpad Keys https://www.w3.org/TR/uievents-key/#keys-multimedia-numpad

View Source
const (
	KeyAudioBalanceLeft      = "AudioBalanceLeft"
	KeyAudioBalanceRight     = "AudioBalanceRight"
	KeyAudioBassBoostDown    = "AudioBassBoostDown"
	KeyAudioBassBoostToggle  = "AudioBassBoostToggle"
	KeyAudioBassBoostUp      = "AudioBassBoostUp"
	KeyAudioFaderFront       = "AudioFaderFront"
	KeyAudioFaderRear        = "AudioFaderRear"
	KeyAudioSurroundModeNext = "AudioSurroundModeNext"
	KeyAudioTrebleDown       = "AudioTrebleDown"
	KeyAudioTrebleUp         = "AudioTrebleUp"
	KeyAudioVolumeDown       = "AudioVolumeDown"
	KeyAudioVolumeUp         = "AudioVolumeUp"
	KeyAudioVolumeMute       = "AudioVolumeMute"
	KeyMicrophoneToggle      = "MicrophoneToggle"
	KeyMicrophoneVolumeDown  = "MicrophoneVolumeDown"
	KeyMicrophoneVolumeUp    = "MicrophoneVolumeUp"
	KeyMicrophoneVolumeMute  = "MicrophoneVolumeMute"
)

Audio Keys https://www.w3.org/TR/uievents-key/#keys-audio

View Source
const (
	KeySpeechCorrectionList = "SpeechCorrectionList"
	KeySpeechInputToggle    = "SpeechInputToggle"
)

Speech Keys https://www.w3.org/TR/uievents-key/#keys-speech

View Source
const (
	KeyLaunchApplication1  = "LaunchApplication1"
	KeyLaunchApplication2  = "LaunchApplication2"
	KeyLaunchCalendar      = "LaunchCalendar"
	KeyLaunchContacts      = "LaunchContacts"
	KeyLaunchMail          = "LaunchMail"
	KeyLaunchMediaPlayer   = "LaunchMediaPlayer"
	KeyLaunchMusicPlayer   = "LaunchMusicPlayer"
	KeyLaunchPhone         = "LaunchPhone"
	KeyLaunchScreenSaver   = "LaunchScreenSaver"
	KeyLaunchSpreadsheet   = "LaunchSpreadsheet"
	KeyLaunchWebBrowser    = "LaunchWebBrowser"
	KeyLaunchWebCam        = "LaunchWebCam"
	KeyLaunchWordProcessor = "LaunchWordProcessor"
)

Application Keys https://www.w3.org/TR/uievents-key/#keys-apps

View Source
const (
	KeyBrowserBack      = "BrowserBack"
	KeyBrowserFavorites = "BrowserFavorites"
	KeyBrowserForward   = "BrowserForward"
	KeyBrowserHome      = "BrowserHome"
	KeyBrowserRefresh   = "BrowserRefresh"
	KeyBrowserSearch    = "BrowserSearch"
	KeyBrowserStop      = "BrowserStop"
)

Browser Keys https://www.w3.org/TR/uievents-key/#keys-browser

View Source
const (
	KeyAppSwitch        = "AppSwitch"
	KeyCall             = "Call"
	KeyCamera           = "Camera"
	KeyCameraFocus      = "CameraFocus"
	KeyEndCall          = "EndCall"
	KeyGoBack           = "GoBack"
	KeyGoHome           = "GoHome"
	KeyHeadsetHook      = "HeadsetHook"
	KeyLastNumberRedial = "LastNumberRedial"
	KeyNotification     = "Notification"
	KeyMannerMode       = "MannerMode"
	KeyVoiceDial        = "VoiceDial"
)

Mobile Phone Keys https://www.w3.org/TR/uievents-key/#keys-mobile

View Source
const (
	KeyTV                        = "TV"
	KeyTV3DMode                  = "TV3DMode"
	KeyTVAntennaCable            = "TVAntennaCable"
	KeyTVAudioDescription        = "TVAudioDescription"
	KeyTVAudioDescriptionMixDown = "TVAudioDescriptionMixDown"
	KeyTVAudioDescriptionMixUp   = "TVAudioDescriptionMixUp"
	KeyTVContentsMenu            = "TVContentsMenu"
	KeyTVDataService             = "TVDataService"
	KeyTVInput                   = "TVInput"
	KeyTVInputComponent1         = "TVInputComponent1"
	KeyTVInputComponent2         = "TVInputComponent2"
	KeyTVInputComposite1         = "TVInputComposite1"
	KeyTVInputComposite2         = "TVInputComposite2"
	KeyTVInputHDMI1              = "TVInputHDMI1"
	KeyTVInputHDMI2              = "TVInputHDMI2"
	KeyTVInputHDMI3              = "TVInputHDMI3"
	KeyTVInputHDMI4              = "TVInputHDMI4"
	KeyTVInputVGA1               = "TVInputVGA1"
	KeyTVMediaContext            = "TVMediaContext"
	KeyTVNetwork                 = "TVNetwork"
	KeyTVNumberEntry             = "TVNumberEntry"
	KeyTVPower                   = "TVPower"
	KeyTVRadioService            = "TVRadioService"
	KeyTVSatellite               = "TVSatellite"
	KeyTVSatelliteBS             = "TVSatelliteBS"
	KeyTVSatelliteCS             = "TVSatelliteCS"
	KeyTVSatelliteToggle         = "TVSatelliteToggle"
	KeyTVTerrestrialAnalog       = "TVTerrestrialAnalog"
	KeyTVTerrestrialDigital      = "TVTerrestrialDigital"
	KeyTVTimer                   = "TVTimer"
)

TV Keys https://www.w3.org/TR/uievents-key/#keys-tv

View Source
const (
	KeyAVRInput            = "AVRInput"
	KeyAVRPower            = "AVRPower"
	KeyColorF0Red          = "ColorF0Red"
	KeyColorF1Green        = "ColorF1Green"
	KeyColorF2Yellow       = "ColorF2Yellow"
	KeyColorF3Blue         = "ColorF3Blue"
	KeyColorF4Grey         = "ColorF4Grey"
	KeyColorF5Brown        = "ColorF5Brown"
	KeyClosedCaptionToggle = "ClosedCaptionToggle"
	KeyDimmer              = "Dimmer"
	KeyDisplaySwap         = "DisplaySwap"
	KeyDVR                 = "DVR"
	KeyExit                = "Exit"
	KeyFavoriteClear0      = "FavoriteClear0"
	KeyFavoriteClear1      = "FavoriteClear1"
	KeyFavoriteClear2      = "FavoriteClear2"
	KeyFavoriteClear3      = "FavoriteClear3"
	KeyFavoriteRecall0     = "FavoriteRecall0"
	KeyFavoriteRecall1     = "FavoriteRecall1"
	KeyFavoriteRecall2     = "FavoriteRecall2"
	KeyFavoriteRecall3     = "FavoriteRecall3"
	KeyFavoriteStore0      = "FavoriteStore0"
	KeyFavoriteStore1      = "FavoriteStore1"
	KeyFavoriteStore2      = "FavoriteStore2"
	KeyFavoriteStore3      = "FavoriteStore3"
	KeyGuide               = "Guide"
	KeyGuideNextDay        = "GuideNextDay"
	KeyGuidePreviousDay    = "GuidePreviousDay"
	KeyInfo                = "Info"
	KeyInstantReplay       = "InstantReplay"
	KeyLink                = "Link"
	KeyListProgram         = "ListProgram"
	KeyLiveContent         = "LiveContent"
	KeyLock                = "Lock"
	KeyMediaApps           = "MediaApps"
	KeyMediaAudioTrack     = "MediaAudioTrack"
	KeyMediaLast           = "MediaLast"
	KeyMediaSkipBackward   = "MediaSkipBackward"
	KeyMediaSkipForward    = "MediaSkipForward"
	KeyMediaStepBackward   = "MediaStepBackward"
	KeyMediaStepForward    = "MediaStepForward"
	KeyMediaTopMenu        = "MediaTopMenu"
	KeyNavigateIn          = "NavigateIn"
	KeyNavigateNext        = "NavigateNext"
	KeyNavigateOut         = "NavigateOut"
	KeyNavigatePrevious    = "NavigatePrevious"
	KeyNextFavoriteChannel = "NextFavoriteChannel"
	KeyNextUserProfile     = "NextUserProfile"
	KeyOnDemand            = "OnDemand"
	KeyPairing             = "Pairing"
	KeyPinPDown            = "PinPDown"
	KeyPinPMove            = "PinPMove"
	KeyPinPToggle          = "PinPToggle"
	KeyPinPUp              = "PinPUp"
	KeyPlaySpeedDown       = "PlaySpeedDown"
	KeyPlaySpeedReset      = "PlaySpeedReset"
	KeyPlaySpeedUp         = "PlaySpeedUp"
	KeyRandomToggle        = "RandomToggle"
	KeyRcLowBattery        = "RcLowBattery"
	KeyRecordSpeedNext     = "RecordSpeedNext"
	KeyRfBypass            = "RfBypass"
	KeyScanChannelsToggle  = "ScanChannelsToggle"
	KeyScreenModeNext      = "ScreenModeNext"
	KeySettings            = "Settings"
	KeySplitScreenToggle   = "SplitScreenToggle"
	KeySTBInput            = "STBInput"
	KeySTBPower            = "STBPower"
	KeySubtitle            = "Subtitle"
	KeyTeletext            = "Teletext"
	KeyVideoModeNext       = "VideoModeNext"
	KeyWink                = "Wink"
	KeyZoomToggle          = "ZoomToggle"
	KeyMediaNextTrack      = "MediaNextTrack"
	KeyMediaPreviousTrack  = "MediaPreviousTrack"
)

Media Controller Keys https://www.w3.org/TR/uievents-key/#keys-media-controller

View Source
const (
	TypeUndefined = js.TypeUndefined
	TypeNull      = js.TypeNull
	TypeBoolean   = js.TypeBoolean
	TypeNumber    = js.TypeNumber
	TypeString    = js.TypeString
	TypeSymbol    = js.TypeSymbol
	TypeObject    = js.TypeObject
	TypeFunction  = js.TypeFunction
)
View Source
const (
	KeyUnidentified = "Unidentified"
)

Special Keys https://www.w3.org/TR/uievents-key/#keys-special

Variables

This section is empty.

Functions

func CreateObjectURL

func CreateObjectURL(source interface{}) (string, error)

func Equal

func Equal(x interface{}, y interface{}) bool

func Exit

func Exit()

func JSValueOf

func JSValueOf(x interface{}) jsValue

func Loop

func Loop()

func RevokeObjectURL

func RevokeObjectURL(objectURL string)

func ToIfaceSlice

func ToIfaceSlice(t interface{}) []interface{}

expects a go slice with any type, returns new []interface{} slice with given slice's values

func ToJSArray

func ToJSArray(t interface{}) jsValue

expects a go slice and returns JavaScript Array with the slice values

func Wrap

func Wrap(v Value) interface{}

it wraps known types TODO remove mixins and non js types TODO Array types TODO ByteString

Types

type AbortController

type AbortController interface {
	Signal() AbortSignal
	Abort()
}

https://dom.spec.whatwg.org/#abortcontroller

func NewAbortController

func NewAbortController() AbortController

type AbortSignal

type AbortSignal interface {
	EventTarget

	Aborted() bool
	OnAbort(func(Event)) EventHandler
}

https://dom.spec.whatwg.org/#abortsignal

type AbstractRange

type AbstractRange interface {
	StartContainer() Node
	StartOffset() uint
	EndContainer() Node
	EndOffset() uint
	Collapsed() bool
}

https://dom.spec.whatwg.org/#abstractrange

type AbstractWorker

type AbstractWorker interface {
	OnError(func(Event)) EventHandler
}

https://w3c.github.io/workers/#abstractworker

type AppendMode

type AppendMode string

https://www.w3.org/TR/media-source/#idl-def-appendmode

const (
	AppendModeSegments AppendMode = "segments"
	AppendModeSequence AppendMode = "sequence"
)

type ApplicationCache

type ApplicationCache interface {
	EventTarget

	Update()
	Abort()
	SwapCache()
	OnChecking(func(Event)) EventHandler
	OnError(func(Event)) EventHandler
	OnNoUpdate(func(Event)) EventHandler
	OnDownloading(func(Event)) EventHandler
	OnProgress(func(Event)) EventHandler
	OnUpdateReady(func(Event)) EventHandler
	OnCached(func(Event)) EventHandler
	OnObsolete(func(Event)) EventHandler
}

https://html.spec.whatwg.org/multipage/offline.html#applicationcache

type ArrayBuffer

type ArrayBuffer interface {
	ByteLength() int
	IsView(arg interface{}) bool
	Slice(int, ...int) ArrayBuffer // TODO maybe uint
	ToByteSlice() []byte
}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer

func NewArrayBuffer

func NewArrayBuffer(length int) ArrayBuffer

type ArrayBufferView

type ArrayBufferView interface {
}

https://heycam.github.io/webidl/#ArrayBufferView

type AssignedNodesOptions

type AssignedNodesOptions struct {
	Flatten bool // default false
}

https://html.spec.whatwg.org/multipage/scripting.html#assignednodesoptions

func (AssignedNodesOptions) JSValue

func (p AssignedNodesOptions) JSValue() jsValue

type Attr

type Attr interface {
	Node

	NamespaceURI() string
	Prefix() string
	LocalName() string
	Name() string
	Value() string
	SetValue(string)
	OwnerElement() Element
}

https://dom.spec.whatwg.org/#attr

type AudioTrack

type AudioTrack interface {
	Id() string
	Kind() string
	Label() string
	Language() string
	Enabled() bool
	SetEnabled(bool)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#audiotrack

type AudioTrackList

type AudioTrackList interface {
	EventTarget

	Length() uint
	Item(uint) AudioTrack
	TrackById(string) AudioTrack
	OnChange(func(Event)) EventHandler
	OnAddTrack(func(Event)) EventHandler
	OnRemoveTrack(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#audiotracklist

type BarProp

type BarProp interface {
	Visible() bool
}

https://www.w3.org/TR/html52/browsers.html#barprop

type BeforeUnloadEvent

type BeforeUnloadEvent interface {
	Event

	ReturnValue() string
	SetReturnValue(string)
}

https://www.w3.org/TR/html52/browsers.html#beforeunloadevent

type BinaryType

type BinaryType string
const (
	BinaryTypeBlob        BinaryType = "blob"
	BinaryTypeArrayBuffer BinaryType = "arraybuffer"
)

type Blob

type Blob interface {
	Size() uint
	Type() string
	Slice(...interface{}) Blob

	JSValue() jsValue
}

https://www.w3.org/TR/FileAPI/#dfn-Blob

func NewBlob

func NewBlob(args ...interface{}) Blob

type BlobPart

type BlobPart interface{}

https://www.w3.org/TR/FileAPI/#typedefdef-blobpart typedef (BufferSource or Blob or USVString) BlobPart;

type BlobPropertyBag

type BlobPropertyBag struct {
	Type string
}

https://w3c.github.io/FileAPI/#dfn-BlobPropertyBag

func (BlobPropertyBag) JSValue

func (p BlobPropertyBag) JSValue() jsValue

type Body

type Body interface {
	Body() ReadableStream
	BodyUsed() bool
	ArrayBuffer() func() (ArrayBuffer, bool) // Promise <ArrayBuffer>
	Blob() func() (Blob, bool)               // Promise<Blob>
	FormData() func() (FormData, bool)       // Promise<FormData>
	JSON() func() ([]byte, bool)             // Promise<any>
	Text() func() (string, bool)             // Promise<string>
}

https://fetch.spec.whatwg.org/#body

type BodyInit

type BodyInit interface{}

typedef (Blob or BufferSource or FormData or URLSearchParams or ReadableStream or USVString) BodyInit;

type BoxQuadOptions

type BoxQuadOptions struct {
	Box        CSSBoxType // default "border"
	RelativeTo GeometryNode
}

https://drafts.csswg.org/cssom-view/#dictdef-boxquadoptions

func (BoxQuadOptions) JSValue

func (p BoxQuadOptions) JSValue() jsValue

type BroadcastChannel

type BroadcastChannel interface {
	EventTarget

	Name() string
	PostMessage(interface{})
	Close()
	OnMessage(func(MessageEvent)) EventHandler
	OnMessageError(func(Event)) EventHandler
}

https://html.spec.whatwg.org/multipage/web-messaging.html#broadcastchannel

func NewBroadcastChannel

func NewBroadcastChannel(name string) BroadcastChannel

type BufferSource

type BufferSource interface{}

https://heycam.github.io/webidl/#BufferSource typedef (ArrayBufferView or ArrayBuffer) BufferSource;

type CDATASection

type CDATASection interface {
	Text
}

https://dom.spec.whatwg.org/#cdatasection

type CSSBoxType

type CSSBoxType string

https://drafts.csswg.org/cssom-view/#enumdef-cssboxtype

const (
	CSSBoxTypeMargin  CSSBoxType = "margin"
	CSSBoxTypeBorder  CSSBoxType = "border"
	CSSBoxTypePadding CSSBoxType = "padding"
	CSSBoxTypeContent CSSBoxType = "content"
)

type CSSGroupingRule

type CSSGroupingRule interface {
	CSSRule

	CSSRules() []CSSRule
	InsertRule(string, ...uint) uint
	DeleteRule(uint)
}

https://drafts.csswg.org/cssom/#cssgroupingrule

type CSSImportRule

type CSSImportRule interface {
	CSSRule

	Href() string
	Media() MediaList
	StyleSheet() CSSStyleSheet
}

https://drafts.csswg.org/cssom/#cssimportrule

type CSSNamespaceRule

type CSSNamespaceRule interface {
	CSSRule

	NamespaceURI() string
	Prefix() string
}

https://drafts.csswg.org/cssom/#cssnamespacerule

type CSSPageRule

type CSSPageRule interface {
	CSSGroupingRule

	SelectorText() string
	SetSelectorText(string)
	Style() CSSStyleDeclaration
}

https://drafts.csswg.org/cssom/#csspagerule

type CSSRule

type CSSRule interface {
	Type() CSSRuleType
	CSSText() string
	SetCSSText(string)
	ParentRule() CSSRule
	ParentStyleSheet() CSSStyleSheet
}

https://drafts.csswg.org/cssom/#cssrule

type CSSRuleList

type CSSRuleList interface {
	Item(uint) CSSRule
	Length() uint
}

https://drafts.csswg.org/cssom/#cssrulelist

type CSSRuleType

type CSSRuleType uint
const (
	CSSRuleTypeStyle                CSSRuleType = 1
	CSSRuleTypeCharset              CSSRuleType = 2
	CSSRuleTypeImport               CSSRuleType = 3
	CSSRuleTypeMedia                CSSRuleType = 4
	CSSRuleTypeFontFace             CSSRuleType = 5
	CSSRuleTypePage                 CSSRuleType = 6
	CSSRuleTypeKeyframesRule        CSSRuleType = 7
	CSSRuleTypeKeyframeRule         CSSRuleType = 8
	CSSRuleTypeMargin               CSSRuleType = 9
	CSSRuleTypeNamespace            CSSRuleType = 10
	CSSRuleTypeCounterStyleRule     CSSRuleType = 11
	CSSRuleTypeSupportsRule         CSSRuleType = 12
	CSSRuleTypeDocumentRule         CSSRuleType = 13
	CSSRuleTypeFontFeatureValueRule CSSRuleType = 14
)

type CSSStyleDeclaration

type CSSStyleDeclaration interface {
	CSSText() string
	SetCSSText(string)
	Length() uint
	Item(uint) string
	PropertyValue(string) string
	PropertyPriority(string) string
	SetProperty(string, string, ...string)
	RemoveProperty(string) string
	ParentRule() CSSRule
	CSSFloat() string
	SetCSSFloat(string)
	// contains filtered or unexported methods
}

https://drafts.csswg.org/cssom/#cssstyledeclaration

type CSSStyleRule

type CSSStyleRule interface {
	CSSRule

	SelectorText() string
	SetSelectorText(string)
	Style() CSSStyleDeclaration
}

https://drafts.csswg.org/cssom/#cssstylerule

type CSSStyleSheet

type CSSStyleSheet interface {
	StyleSheet

	OwnerRule() CSSRule
	CSSRules() []CSSRule
	InsertRule(string, ...uint) uint
	DeleteRule(uint)
}

https://drafts.csswg.org/cssom/#cssstylesheet

type Callback

type Callback interface {
	Release()
	// contains filtered or unexported methods
}

type CanPlayTypeResult

type CanPlayTypeResult string

https://www.w3.org/TR/html52/semantics-embedded-content.html#enumdef-canplaytyperesult

const (
	CanPlayTypeResultEmpty    CanPlayTypeResult = ""
	CanPlayTypeResultMaybe    CanPlayTypeResult = "maybe"
	CanPlayTypeResultProbably CanPlayTypeResult = "probably"
)

type CanvasDrawingStyles

type CanvasDrawingStyles interface {
	LineWidth() float64
	SetLineWidth(float64)
	LineCap() string
	SetLineCap(string)
	LineJoin() string
	SetLineJoin(string)
	MiterLimit() float64
	SetMiterLimit(float64)
	LineDash() []float64
	SetLineDash(...float64) // we can use []float64
	LineDashOffset() float64
	Font() string
	SetFont(string)
	TextAlign() TextAlign
	SetTextAlign(TextAlign)
	TextBaseline() TextBaseline
	SetTextBaseline(TextBaseline)
}

https://www.w3.org/TR/2dcontext/#canvasdrawingstyles

type CanvasGradient

type CanvasGradient interface {
	AddColorStop(float64, string)
}

https://www.w3.org/TR/2dcontext/#canvasgradient

type CanvasImageSource

type CanvasImageSource interface {
	JSValue() jsValue
}

https://www.w3.org/TR/2dcontext/#canvasimagesource typedef (HTMLImageElement or HTMLVideoElement or HTMLCanvasElement) CanvasImageSource;

type CanvasRenderingContext2D

type CanvasRenderingContext2D interface {
	CanvasDrawingStyles
	CanvasPathMethods

	Canvas() HTMLCanvasElement
	Save()
	Restore()
	Scale(float64, float64)
	Rotate(float64)
	Translate(float64, float64)
	Transform(float64, float64, float64, float64, float64, float64)
	SetTransform(float64, float64, float64, float64, float64, float64)
	GlobalAlpha() float64
	SetGlobalAlpha(float64)
	GlobalCompositeOperation() string
	SetGlobalCompositeOperation(string)
	StrokeStyle() interface{}
	SetStrokeStyle(interface{})
	FillStyle() interface{}
	SetFillStyle(interface{})
	CreateLinearGradient(float64, float64, float64, float64) CanvasGradient
	CreateRadialGradient(float64, float64, float64, float64, float64, float64) CanvasGradient
	CreatePattern(CanvasImageSource, string)
	ShadowOffsetX() float64
	SetShadowOffsetX(float64)
	ShadowOffsetY() float64
	SetShadowOffsetY(float64)
	ShadowBlur() float64
	SetShadowBlur(float64)
	ShadowColor() string
	SetShadowColor(string)
	ClearRect(float64, float64, float64, float64)
	FillRect(float64, float64, float64, float64)
	StrokeRect(float64, float64, float64, float64)
	BeginPath()
	Fill()
	Stroke()
	DrawFocusIfNeeded(Element)
	Clip()
	IsPointInPath(float64, float64) bool
	FillText(string, float64, float64, ...float64)
	StrokeText(string, float64, float64, ...float64)
	MeasureText(string) TextMetrics
	DrawImage(CanvasImageSource, ...float64) // it works if parameter len is 2,4,8
	AddHitRegion(HitRegionOptions)
	RemoveHitRegion(string)
	ClearHitRegions()
	CreateImageData(float64, float64) ImageData
	CreateImageDataFromImageData(ImageData) ImageData
	ImageData(float64, float64, float64, float64) ImageData
	PutImageData(ImageData, float64, float64)
	PutImageDataDirty(ImageData, float64, float64, float64, float64, float64, float64)
}

https://www.w3.org/TR/2dcontext/#canvasrenderingcontext2d

type CanvasRenderingContext2DSettings

type CanvasRenderingContext2DSettings struct {
	Alpha bool // default true
}

func (CanvasRenderingContext2DSettings) JSValue

func (p CanvasRenderingContext2DSettings) JSValue() jsValue

type CaretPosition

type CaretPosition interface {
	OffsetNode() Node
	Offset() uint
	ClientRect() DOMRect
}

https://drafts.csswg.org/cssom-view/#caretposition

type CharacterData

type CharacterData interface {
	Node
	NonDocumentTypeChildNode
	ChildNode

	Data() string
	SetData(string)
	Length() uint
	SubstringData(uint, uint) string
	AppendData(string)
	InsertData(uint, string)
	DeleteData(uint, uint)
	ReplaceData(uint, uint, string)
}

https://dom.spec.whatwg.org/#characterdata

type ChildNode

type ChildNode interface {
	Before(...interface{})
	After(...interface{})
	ReplaceWith(...interface{})
	Remove()
}

https://dom.spec.whatwg.org/#childnode

type Clipboard

type Clipboard interface {
	EventTarget

	Read() func() (DataTransfer, error) //Promise<DataTransfer>
	ReadText() func() (string, bool)    // Promise<DOMString>
	Write(DataTransfer) func() bool     // Promise<void>
	WriteText(string) func() bool       // Promise<void>
}

type ClipboardEvent

type ClipboardEvent interface {
	Event

	ClipboardData() DataTransfer
}

func NewClipboardEvent

func NewClipboardEvent(typ string, eventInitDict ...ClipboardEventInit) ClipboardEvent

type ClipboardEventInit

type ClipboardEventInit struct {
	EventInit

	ClipboardData DataTransfer
}

func (ClipboardEventInit) JSValue

func (p ClipboardEventInit) JSValue() jsValue

type ClipboardPermissionDescriptor

type ClipboardPermissionDescriptor struct {
	PermissionDescriptor

	AllowWithoutGesture bool
}

func (ClipboardPermissionDescriptor) JSValue

func (p ClipboardPermissionDescriptor) JSValue() jsValue

type CloseEvent

type CloseEvent interface {
	Event

	WasClean() bool
	Code() uint16
	Reason() string
}

https://html.spec.whatwg.org/multipage/web-sockets.html#websocket

func NewCloseEvent

func NewCloseEvent(typ string, cei ...CloseEventInit) CloseEvent

type CloseEventInit

type CloseEventInit struct {
	WasClean bool   //false
	Code     uint16 // 0
	Reason   string
}

https://html.spec.whatwg.org/multipage/web-sockets.html#closeeventinit

func (CloseEventInit) JSValue

func (p CloseEventInit) JSValue() jsValue

type ColorSpaceConversion

type ColorSpaceConversion string
const (
	ColorSpaceConversionNone    ColorSpaceConversion = "none"
	ColorSpaceConversionDefault ColorSpaceConversion = "default"
)

type CompositionEvent

type CompositionEvent interface {
	UIEvent

	Data() string
}

https://www.w3.org/TR/uievents/#compositionevent

type CompositionEventInit

type CompositionEventInit struct {
	UIEventInit

	Data string
}

https://www.w3.org/TR/uievents/#dictdef-compositioneventinit

func (CompositionEventInit) JSValue

func (p CompositionEventInit) JSValue() jsValue

type Console

type Console interface {
	Assert(...interface{})
	Clear()
	Debug(...interface{})
	Error(...interface{})
	Info(...interface{})
	Log(...interface{})
	Table(interface{}, ...[]string)
	Trace(...interface{})
	Warn(...interface{})
	Dir(interface{}, ...interface{})
	Dirxml(...interface{})
	Count(...string)
	CountReset(...string)
	Group(...interface{})
	GroupCollapsed(...interface{})
	GroupEnd()
	Time(...string)
	TimeLog(...interface{})
	TimeEnd(...string)
}

https://console.spec.whatwg.org/#namespacedef-console

type ConstrainBoolean

type ConstrainBoolean interface{}

https://www.w3.org/TR/mediacapture-streams/#dom-constrainboolean typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean;

type ConstrainBooleanParameters

type ConstrainBooleanParameters struct {
	Exact bool
	Ideal bool
}

https://www.w3.org/TR/mediacapture-streams/#dom-constrainbooleanparameters

func (ConstrainBooleanParameters) JSValue

func (p ConstrainBooleanParameters) JSValue() jsValue

type ConstrainDOMString

type ConstrainDOMString interface{}

type ConstrainDOMStringParameters

type ConstrainDOMStringParameters struct {
	Exact string
	Ideal string
}

https://www.w3.org/TR/mediacapture-streams/#dom-constraindomstringparameters

func (ConstrainDOMStringParameters) JSValue

func (p ConstrainDOMStringParameters) JSValue() jsValue

type ConstrainDouble

type ConstrainDouble interface{}

https://www.w3.org/TR/mediacapture-streams/#dom-constraindouble typedef (double or ConstrainDoubleRange) ConstrainDouble;

type ConstrainDoubleRange

type ConstrainDoubleRange struct {
	DoubleRange

	Exact float64
	Ideal float64
}

https://www.w3.org/TR/mediacapture-streams/#dom-constraindoublerange

func (ConstrainDoubleRange) JSValue

func (p ConstrainDoubleRange) JSValue() jsValue

type ConstrainLongRange

type ConstrainLongRange struct {
	LongRange

	Exact int
	Ideal int
}

https://www.w3.org/TR/mediacapture-streams/#dom-constrainlongrange

func (ConstrainLongRange) JSValue

func (p ConstrainLongRange) JSValue() jsValue

type ConstrainULong

type ConstrainULong uint

type ConstrainULongRange

type ConstrainULongRange struct {
	ULongRange

	Exact uint
	Ideal uint
}

https://w3c.github.io/mediacapture-main/#dom-constrainulongrange

func (ConstrainULongRange) JSValue

func (p ConstrainULongRange) JSValue() jsValue

type ConvertCoordinateOptions

type ConvertCoordinateOptions struct {
	FromBox CSSBoxType // default "border"
	ToBox   CSSBoxType // default "border"
}

https://drafts.csswg.org/cssom-view/#dictdef-convertcoordinateoptions

func (ConvertCoordinateOptions) JSValue

func (p ConvertCoordinateOptions) JSValue() jsValue

type Coordinates

type Coordinates interface {
	Latitude() float64
	Longitude() float64
	Altitude() float64
	Accuracy() float64
	AltitudeAccuracy() float64
	Heading() float64
	Speed() float64
}

https://w3c.github.io/geolocation-api/#dom-coordinates

type CustomEvent

type CustomEvent interface {
	Event

	Detail() interface{}
	InitCustomEvent(string, ...interface{})
}

https://dom.spec.whatwg.org/#customevent

func NewCustomEvent

func NewCustomEvent(typ string, cei ...CustomEventInit) CustomEvent

type CustomEventInit

type CustomEventInit struct {
	EventInit

	Detail interface{}
}

https://dom.spec.whatwg.org/#dictdef-customeventinit

func (CustomEventInit) JSValue

func (p CustomEventInit) JSValue() jsValue

type DOMError

type DOMError uint16
const (
	ErrIndexSize             DOMError = 1
	ErrDOMStringSize         DOMError = 2
	ErrHierarchyRequest      DOMError = 3
	ErrWrongDocument         DOMError = 4
	ErrInvalidCharacter      DOMError = 5
	ErrNoDataAllowed         DOMError = 6
	ErrNoModificationAllowed DOMError = 7
	ErrNotFound              DOMError = 8
	ErrNotSupported          DOMError = 9
	ErrInuseAttribute        DOMError = 10
	ErrInvalidState          DOMError = 11
	ErrSyntax                DOMError = 12
	ErrInvalidModification   DOMError = 13
	ErrNamespace             DOMError = 14
	ErrInvalidAccess         DOMError = 15
	ErrValidation            DOMError = 16
	ErrTypeMismatch          DOMError = 17
	ErrSecurity              DOMError = 18
	ErrNetwork               DOMError = 19
	ErrAbort                 DOMError = 20
	ErrURLMismatch           DOMError = 21
	ErrQuotaExceeded         DOMError = 22
	ErrTimeout               DOMError = 23
	ErrInvalidNodeType       DOMError = 24
	ErrDataClone             DOMError = 25
)

type DOMException

type DOMException interface {
	Name() string
	Message() string
	Code() DOMError
	Error() string
}

https://heycam.github.io/webidl/#idl-DOMException

func NewDOMException

func NewDOMException(args ...string) DOMException

type DOMImplementation

type DOMImplementation interface {
	CreateDocumentType(string, string, string) DocumentType
	CreateDocument(string, string, ...DocumentType) XMLDocument
	CreateHTMLDocument(...string) Document
}

https://dom.spec.whatwg.org/#domimplementation

type DOMMatrix

type DOMMatrix interface {
	DOMMatrixReadOnly

	MultiplySelf(DOMMatrix) DOMMatrix
	PreMultiplySelf(DOMMatrix) DOMMatrix
	TranslateSelf(float64, float64, ...float64) DOMMatrix
	ScaleSelf(float64, ...float64) DOMMatrix
	Scale3dSelf(float64, ...float64) DOMMatrix
	ScaleNonUniformSelf(float64, ...float64) DOMMatrix
	RotateSelf(float64, ...float64) DOMMatrix
	RotateFromVectorSelf(float64, float64) DOMMatrix
	RotateAxisAngleSelf(float64, float64, float64, float64) DOMMatrix
	SkewXSelf(float64) DOMMatrix
	SkewYSelf(float64) DOMMatrix
	InverseSelf() DOMMatrix
	SetMatrixValue(string) DOMMatrix
}

https://www.w3.org/TR/geometry-1/#dom-dommatrix

func NewDOMMatrix

func NewDOMMatrix(numberSequence []float64) DOMMatrix

TODO: check this

type DOMMatrixReadOnly

type DOMMatrixReadOnly interface {
	A() float64
	B() float64
	C() float64
	D() float64
	E() float64
	F() float64

	M11() float64
	M12() float64
	M13() float64
	M14() float64
	M21() float64
	M22() float64
	M23() float64
	M24() float64
	M31() float64
	M32() float64
	M33() float64
	M34() float64
	M41() float64
	M42() float64
	M43() float64
	M44() float64
	Is2D() bool
	IsIdentity() bool
	Translate(float64, float64, ...float64) DOMMatrix
	Scale(float64, ...float64) DOMMatrix
	Scale3d(float64, ...float64) DOMMatrix
	ScaleNonUniform(float64, ...float64) DOMMatrix
	Rotate(float64, ...float64) DOMMatrix
	RotateFromVector(float64, float64) DOMMatrix
	RotateAxisAngle(float64, float64, float64, float64) DOMMatrix
	SkewX(float64) DOMMatrix
	SkewY(float64) DOMMatrix
	Multiply(DOMMatrix) DOMMatrix
	FlipX() DOMMatrix
	FlipY() DOMMatrix
	Inverse() DOMMatrix
	TransformPoint(...DOMPointInit) DOMPoint
	ToFloat32Array() []float32 //Float32Array
	ToFloat64Array() []float64 // Float64Array
	String() string
}

https://www.w3.org/TR/geometry-1/#dom-dommatrixreadonly

func NewDOMMatrixReadOnly

func NewDOMMatrixReadOnly(numberSequence []float64) DOMMatrixReadOnly

TODO: check this

type DOMParser

type DOMParser interface {
	ParseFromString(string, SupportedType) Document
}

https://www.w3.org/TR/DOM-Parsing/

func NewDOMParser

func NewDOMParser() DOMParser

type DOMPoint

type DOMPoint interface {
	DOMPointReadOnly
}

https://www.w3.org/TR/geometry-1/#dom-dompoint

func NewDOMPoint

func NewDOMPoint(dpi ...DOMPointInit) DOMPoint

type DOMPointInit

type DOMPointInit struct {
	X float64
	Y float64
	Z float64
	W float64 //default 1
}

https://www.w3.org/TR/geometry-1/#dictdef-dompointinit

func (DOMPointInit) JSValue

func (p DOMPointInit) JSValue() jsValue

type DOMPointReadOnly

type DOMPointReadOnly interface {
	X() float64
	Y() float64
	Z() float64
	W() float64
	MatrixTransform(DOMMatrixReadOnly) DOMPoint
}

https://www.w3.org/TR/geometry-1/#dom-dompointreadonly

func NewDOMPointReadOnly

func NewDOMPointReadOnly(x, y, z, w float64) DOMPointReadOnly

type DOMQuad

type DOMQuad interface {
	P1() DOMPoint
	P2() DOMPoint
	P3() DOMPoint
	P4() DOMPoint
	Bounds() DOMRectReadOnly
}

https://www.w3.org/TR/geometry-1/#dom-domquad

func DOMQuadFromQuad

func DOMQuadFromQuad(other ...DOMQuadInit) DOMQuad

func DOMQuadFromRect

func DOMQuadFromRect(other ...DOMRectInit) DOMQuad

func NewDOMQuad

func NewDOMQuad(dri ...DOMRectInit) DOMQuad

type DOMQuadInit

type DOMQuadInit struct {
	P1 DOMPointInit
	P2 DOMPointInit
	P3 DOMPointInit
	P4 DOMPointInit
}

func (DOMQuadInit) JSValue

func (p DOMQuadInit) JSValue() jsValue

type DOMRect

type DOMRect interface {
	DOMRectReadOnly
}

https://www.w3.org/TR/geometry-1/#dom-domrect

func NewDOMRect

func NewDOMRect(x, y, width, height float64) DOMRect

type DOMRectInit

type DOMRectInit struct {
	X      float64
	Y      float64
	Width  float64
	Height float64
}

https://www.w3.org/TR/geometry-1/#dictdef-domrectinit

func (DOMRectInit) JSValue

func (p DOMRectInit) JSValue() jsValue

type DOMRectReadOnly

type DOMRectReadOnly interface {
	X() float64
	Y() float64
	Width() float64
	Height() float64
	Top() float64
	Right() float64
	Bottom() float64
	Left() float64
}

https://www.w3.org/TR/geometry-1/#dom-domrectreadonly

func NewDOMRectReadOnly

func NewDOMRectReadOnly(x, y, width, height float64) DOMRectReadOnly

type DOMStringMap

type DOMStringMap interface {
	DataAttr(string) string
	SetDataAttr(string, string)
	RemoveDataAttr(string)
}

https://www.w3.org/TR/html52/dom.html#domstringmap

type DOMTokenList

type DOMTokenList interface {
	Length() uint
	Item(uint) string
	Contains(string) bool
	Add(...string)
	Remove(...string)
	Toggle(string, ...bool) bool
	Replace(string, string) bool
	Supports(string) bool
	TokenValue() string
	SetTokenValue(string)
	TokenValues() []string
	String() string
}

https://dom.spec.whatwg.org/#domtokenlist

type DataTransfer

type DataTransfer interface {
	DropEffect() string
	SetDropEffect(string)
	EffectAllowed() string
	SetEffectAllowed(string)
	Items() DataTransferItemList
	SetDragImage(Element, int, int)
	Types() []string
	Data(string) string
	SetData(string, string)
	ClearData(...string)
	Files() []File //FileList
}

https://www.w3.org/TR/html52/editing.html#datatransfer

type DataTransferItem

type DataTransferItem interface {
	Kind() string
	Type() string
	AsString(FunctionStringCallback)
	AsFile() File
}

https://www.w3.org/TR/html52/editing.html#datatransferitem

type DataTransferItemList

type DataTransferItemList interface {
	Length() uint
	Index(uint) DataTransferItem // Get
	Add(string, string) DataTransferItem
	AddFile(File) DataTransferItem
	Remove(uint)
	Clear()
}

https://www.w3.org/TR/html52/editing.html#datatransferitemlist

type DataView

type DataView interface {
	Buffer() ArrayBuffer
	ByteLength() int
	ByteOffset() int
	Int8() int8
	Uint8() uint8
	Int16() int16
	Uint16() uint16
	Int32() int32
	Uint32() uint32
	Float32() float32
	Float64() float64
	SetInt8(v int8)
	SetUint8(v uint8)
	SetInt16(v int16)
	SetUint16(v uint16)
	SetInt32(v int32)
	SetUint32(v uint32)
	SetFloat32(v float32)
	SetFloat64(v float64)
}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView

func NewDataView

func NewDataView(buf ArrayBuffer, args ...int) DataView

type DedicatedWorkerGlobalScope

type DedicatedWorkerGlobalScope interface {
	WorkerGlobalScope

	Name() string
	PostMessage(interface{}) // optional sequence<Transferable> transfer
	OnMessage(func(Event)) EventHandler
	OnMessageError(func(Event)) EventHandler
}

https://w3c.github.io/workers/#dedicatedworkerglobalscope

type DeltaModeCode

type DeltaModeCode uint
const (
	DeltaModeCodePixel DeltaModeCode = 0x00
	DeltaModeCodeLine  DeltaModeCode = 0x01
	DeltaModeCodePage  DeltaModeCode = 0x02
)

type DevicePermissionDescriptor

type DevicePermissionDescriptor interface {
	PermissionDescriptor

	DeviceId() string
}

func NewDevicePermissionDescriptor

func NewDevicePermissionDescriptor(name PermissionName, deviceId string) DevicePermissionDescriptor

type Document

type Document interface {
	Node
	NonElementParentNode
	DocumentOrShadowRoot
	ParentNode
	GeometryUtils
	GlobalEventHandlers
	DocumentAndElementEventHandlers

	Implementation() DOMImplementation
	URL() string
	DocumentURI() string
	Origin() string
	CompatMode() string
	CharacterSet() string
	ContentType() string
	DocType() DocumentType
	DocumentElement() Element
	ElementsByTagName(string) []Element
	ElementsByTagNameNS(string, string) []Element
	ElementsByClassName(string) []Element
	HTMLElementsByClassName(string) []HTMLElement
	CreateElement(string, ...ElementCreationOptions) Element
	CreateElementNS(string, string, ...ElementCreationOptions) Element
	CreateDocumentFragment() DocumentFragment
	CreateTextNode(string) Text
	CreateCDATASection(string) CDATASection
	CreateComment(string) Comment
	CreateProcessingInstruction(string, string) ProcessingInstruction
	ImportNode(Node, ...bool) Node
	AdoptNode(Node) Node
	CreateAttribute(string) Attr
	CreateAttributeNS(string, string) Attr
	CreateRange() Range
	CreateNodeIterator(Node, NodeFilterShow, ...NodeFilter) NodeIterator
	CreateTreeWalker(Node, NodeFilterShow, ...NodeFilter) TreeWalker

	// https://fullscreen.spec.whatwg.org/
	FullscreenEnabled() bool
	ExitFullscreen() func() error // Promise<void>
	OnFullscreenChange(func(Event)) EventHandler
	OnFullscreenError(func(Event)) EventHandler

	// https://www.w3.org/TR/html52/dom.html#elementdef-document
	Location() Location
	Domain() string
	SetDomain(string)
	Referrer() string
	Cookie() string
	SetCookie(string)
	LastModified() string
	ReadyState() DocumentReadyState
	//ByName(string) Value // ???
	// getter object (DOMString name);
	Title() string
	SetTitle(string)
	Dir() string
	SetDir(string)
	Body() HTMLBodyElement
	SetBody(HTMLBodyElement)
	Head() HTMLHeadElement
	Images() []HTMLImageElement
	Embeds() []HTMLEmbedElement
	Plugins() []HTMLEmbedElement
	Links() []HTMLElement
	Forms() []HTMLFormElement
	Scripts() []HTMLScriptElement
	ElementsByName(string) []Node
	CurrentScript() HTMLOrSVGScriptElement
	Open(...string) Document
	OpenURL(string, string, string, ...bool) WindowProxy
	Close()
	Write(...string)
	WriteLn(...string)
	DefaultView() WindowProxy
	ActiveElement() Element
	HasFocus() bool
	DesignMode() string
	SetDesignMode(string)
	ExecCommand(string, ...interface{}) bool
	QueryCommandEnabled(string) bool
	QueryCommandIndeterm(string) bool
	QueryCommandState(string) bool
	QueryCommandSupported(string) bool
	QueryCommandValue(string) string
	OnReadyStateChange(func(Event)) EventHandler

	// https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface
	ElementFromPoint(float64, float64) Element
	ElementsFromPoint(float64, float64) []Element
	CaretPositionFromPoint(float64, float64) CaretPosition
	ScrollingElement() Element

	// helpers
	CreateHTMLElement(string) HTMLElement
}

https://dom.spec.whatwg.org/#document

func CurrentDocument

func CurrentDocument() Document

func NewDocument

func NewDocument() Document

type DocumentAndElementEventHandlers

type DocumentAndElementEventHandlers interface {
	OnCopy(func(Event)) EventHandler
	OnCut(func(Event)) EventHandler
	OnPaste(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/webappapis.html#documentandelementeventhandlers

type DocumentOrShadowRoot

type DocumentOrShadowRoot interface {
	FullscreenElement() Element
	StyleSheets() []CSSStyleSheet
}

https://dom.spec.whatwg.org/#documentorshadowroot

type DocumentPosition

type DocumentPosition uint

https://dom.spec.whatwg.org/#dom-node-comparedocumentposition

const (
	DocumentPositionDisconnected           DocumentPosition = 0x01
	DocumentPositionPreceding              DocumentPosition = 0x02
	DocumentPositionFollowing              DocumentPosition = 0x04
	DocumentPositionContains               DocumentPosition = 0x08
	DocumentPositionContainedBy            DocumentPosition = 0x10
	DocumentPositionImplementationSpecific DocumentPosition = 0x20
)

type DocumentReadyState

type DocumentReadyState string
const (
	DocumentReadyStateLoading     DocumentReadyState = "loading"
	DocumentReadyStateInteractive DocumentReadyState = "interactive"
	DocumentReadyStateComplete    DocumentReadyState = "complete"
)

type DocumentType

type DocumentType interface {
	Node
	ChildNode

	Name() string
	PublicId() string
	SystemId() string
}

https://dom.spec.whatwg.org/#documenttype

type DoubleRange

type DoubleRange struct {
	Max float64
	Min float64
}

https://www.w3.org/TR/mediacapture-streams/#dom-doublerange

func (DoubleRange) JSValue

func (p DoubleRange) JSValue() jsValue

type DragEvent

type DragEvent interface {
	MouseEvent

	DataTransfer() DataTransfer
}

https://www.w3.org/TR/html52/editing.html#the-dragevent-interface

func NewDragEvent

func NewDragEvent(typ string, dei ...DragEventInit) DragEvent

type DragEventInit

type DragEventInit struct {
	MouseEventInit

	DataTransfer DataTransfer
}

https://www.w3.org/TR/html52/editing.html#dictdef-drageventinit

func (DragEventInit) JSValue

func (p DragEventInit) JSValue() jsValue

type Element

type Element interface {
	Node
	ParentNode
	NonDocumentTypeChildNode
	ChildNode
	Slotable
	GeometryUtils

	NamespaceURI() string
	Prefix() string
	LocalName() string
	TagName() string
	Id() string
	SetId(string)
	ClassName() string
	SetClassName(string)
	ClassList() DOMTokenList
	Slot() string
	SetSlot(string)
	HasAttributes() bool
	Attributes() NamedNodeMap
	AttributeNames() []string
	Attribute(string) string
	AttributeNS(string, string) string
	SetAttribute(string, string)
	SetAttributeNS(string, string, string)
	RemoveAttribute(string)
	RemoveAttributeNS(string, string)
	ToggleAttribute(string, ...bool) bool
	HasAttribute(string) bool
	HasAttributeNS(string, string) bool
	AttributeNode(string) Attr
	AttributeNodeNS(string, string) Attr
	SetAttributeNode(Attr) Attr
	SetAttributeNodeNS(Attr) Attr
	RemoveAttributeNode(Attr) Attr
	AttachShadow(ShadowRootInit) ShadowRoot
	ShadowRoot() ShadowRoot
	Closest(string) Element
	Matches(string) bool
	ElementsByTagName(string) []Element
	ElementsByTagNameNS(string, string) []Element
	ElementsByClassName(string) []Element

	// https://www.w3.org/TR/cssom-view-1/#extension-to-the-element-interface
	ClientRects() []DOMRect
	BoundingClientRect() DOMRect
	ScrollIntoView(...interface{}) // empty, boolean or object
	Scroll(ScrollToOptions)
	ScrollTo(ScrollToOptions)
	ScrollBy(ScrollToOptions)
	ScrollTop() float64
	SetScrollTop(float64)
	ScrollLeft() float64
	SetScrollLeft(float64)
	ScrollWidth() int
	ScrollHeight() int
	ClientTop() int
	ClientLeft() int
	ClientWidth() int
	ClientHeight() int

	// https://www.w3.org/TR/DOM-Parsing/
	InnerHTML() string
	SetInnerHTML(string)
	OuterHTML() string
	SetOuterHTML(string)
	InsertAdjacentHTML(string, string)

	// https://fullscreen.spec.whatwg.org/
	RequestFullscreen(...FullscreenOptions) func() error // Promise<void>
	OnFullScreenChange(func(Event)) EventHandler
	OnFullScreenError(func(Event)) EventHandler

	// https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface
	SetPointerCapture(int)
	ReleasePointerCapture(int)
	HasPointerCapture(int) bool
}

https://dom.spec.whatwg.org/#element

type ElementContentEditable

type ElementContentEditable interface {
	ContentEditable() string
	SetContentEditable(string)
	IsContentEditable() bool
	InputMode() string
	SetInputMode(string)
}

https://html.spec.whatwg.org/multipage/interaction.html#elementcontenteditable

type ElementCreationOptions

type ElementCreationOptions struct {
	Is string
}

https://dom.spec.whatwg.org/#dictdef-elementcreationoptions

func (ElementCreationOptions) JSValue

func (p ElementCreationOptions) JSValue() jsValue

type EndOfStreamError

type EndOfStreamError string

https://www.w3.org/TR/media-source/#idl-def-endofstreamerror

const (
	EndOfStreamErrorNetwork EndOfStreamError = "network"
	EndOfStreamErrorDecode  EndOfStreamError = "decode"
)

type EndingType

type EndingType string
const (
	EndingTypeTransparent EndingType = "transparent"
	EndingTypeNative      EndingType = "native"
)

type ErrorEvent

type ErrorEvent interface {
	Event

	Message() string
	Filename() string
	Lineno() int
	Colno() int
	Error() string // TODO any
}

https://html.spec.whatwg.org/multipage/webappapis.html#errorevent

func NewErrorEvent

func NewErrorEvent(typ string, eei ...ErrorEventInit) ErrorEvent

type ErrorEventInit

type ErrorEventInit struct {
	EventInit

	Message  string
	Filename string
	Lineno   int
	Colno    int
	Error    string // any
}

https://www.w3.org/TR/html52/webappapis.html#dictdef-erroreventinit

func (ErrorEventInit) JSValue

func (p ErrorEventInit) JSValue() jsValue

type Event

type Event interface {
	Type() string
	Target() EventTarget
	CurrentTarget() EventTarget
	ComposedPath() []EventTarget
	EventPhase() EventPhase
	StopPropagation()
	StopImmediatePropagation()
	Bubbles() bool
	Cancelable() bool
	PreventDefault()
	DefaultPrevented() bool
	Composed() bool
	IsTrusted() bool
	TimeStamp() time.Time

	JSValue() jsValue
}

https://dom.spec.whatwg.org/#event

func NewEvent

func NewEvent(typ string, ei ...EventInit) Event

type EventHandler

type EventHandler interface {
	Type() string
	Handle(Event)
	Release()
	Remove()
}

type EventInit

type EventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
}

https://dom.spec.whatwg.org/#dictdef-eventinit

func (EventInit) JSValue

func (p EventInit) JSValue() jsValue

type EventModifierInit

type EventModifierInit struct {
	UIEventInit

	CtrlKey            bool
	ShiftKey           bool
	AltKey             bool
	MetaKey            bool
	ModifierAltGraph   bool
	ModifierCapsLock   bool
	ModifierFn         bool
	ModifierFnLock     bool
	ModifierHyper      bool
	ModifierNumLock    bool
	ModifierScrollLock bool
	ModifierSuper      bool
	ModifierSymbol     bool
	ModifierSymbolLock bool
}

https://www.w3.org/TR/uievents/#dictdef-eventmodifierinit

func (EventModifierInit) JSValue

func (p EventModifierInit) JSValue() jsValue

type EventPhase

type EventPhase uint16
const (
	EventPhaseNone      EventPhase = 0
	EventPhaseCapturing EventPhase = 1
	EventPhaseAtTarget  EventPhase = 2
	EventPhaseBubbling  EventPhase = 3
)

type EventTarget

type EventTarget interface {
	On(string, func(Event)) EventHandler
	DispatchEvent(Event) bool

	JSValue() jsValue
}

func NewEventTarget

func NewEventTarget() EventTarget

type File

type File interface {
	Blob

	Name() string
	LastModified() int
}

https://www.w3.org/TR/FileAPI/#dfn-file

func NewFile

func NewFile(fileBits []byte, fileName string, options ...FilePropertyBag) File

type FilePropertyBag

type FilePropertyBag struct {
	BlobPropertyBag

	LastModified int
}

https://www.w3.org/TR/FileAPI/#dfn-FilePropertyBag

func (FilePropertyBag) JSValue

func (p FilePropertyBag) JSValue() jsValue

type FileReader

type FileReader interface {
	EventTarget

	ReadAsArrayBuffer(Blob)
	ReadAsBinaryString(Blob)
	ReadAsText(Blob, ...string)
	ReadAsDataURL(Blob)
	Abort()
	ReadyState() FileReaderReadyState

	// File or Blob data
	Result() []byte // (DOMString or ArrayBuffer)? , if result is string convert to []byte
	Error() DOMException

	OnLoadStart(func(ProgressEvent)) EventHandler
	OnProgress(func(ProgressEvent)) EventHandler
	OnLoad(func(ProgressEvent)) EventHandler
	OnAbort(func(ProgressEvent)) EventHandler
	OnError(func(ProgressEvent)) EventHandler
	OnLoadEnd(func(ProgressEvent)) EventHandler
}

https://www.w3.org/TR/FileAPI/#dfn-filereader

func NewFileReader

func NewFileReader() FileReader

type FileReaderReadyState

type FileReaderReadyState uint16
const (
	FileReaderReadyStateEmpty   FileReaderReadyState = 0
	FileReaderReadyStateLoading FileReaderReadyState = 1
	FileReaderReadyStateDone    FileReaderReadyState = 2
)

type FileReaderSync

type FileReaderSync interface {
	ReadAsArrayBuffer(Blob) ArrayBuffer
	ReadAsBinaryString(Blob) string
	ReadAsText(Blob, ...string) string
	ReadAsDataURL(Blob) string
}

https://www.w3.org/TR/FileAPI/#dfn-FileReaderSync

func NewFileReaderSync

func NewFileReaderSync() FileReaderSync

type FocusEvent

type FocusEvent interface {
	UIEvent

	RelatedTarget() EventTarget
}

https://www.w3.org/TR/uievents/#focusevent

func NewFocusEvent

func NewFocusEvent(typ string, ini ...FocusEventInit) FocusEvent

type FocusEventInit

type FocusEventInit struct {
	UIEventInit

	RelatedTarget EventTarget
}

https://www.w3.org/TR/uievents/#dictdef-focuseventinit

func (FocusEventInit) JSValue

func (p FocusEventInit) JSValue() jsValue

type FocusOptions

type FocusOptions struct {
	PreventScroll bool
}

https://html.spec.whatwg.org/multipage/interaction.html#focusoptions

func (FocusOptions) JSValue

func (p FocusOptions) JSValue() jsValue

type FormData

type FormData interface {
	Append(string, interface{}, ...string)
	Delete(string)
	Get(string) FormDataEntryValue
	GetAll(string) []FormDataEntryValue
	Has(string) bool
	Set(string, interface{}, ...string)
	Values() []FormDataEntryValue

	JSValue() jsValue
}

https://xhr.spec.whatwg.org/#formdata

func NewFormData

func NewFormData(form ...HTMLFormElement) FormData

type FormDataEntryValue

type FormDataEntryValue interface{}

https://xhr.spec.whatwg.org/#formdataentryvalue typedef (File or USVString) FormDataEntryValue;

type FullscreenNavigationUI

type FullscreenNavigationUI string
const (
	FullscreenNavigationUIAuto FullscreenNavigationUI = "auto"
	FullscreenNavigationUIShow FullscreenNavigationUI = "show"
	FullscreenNavigationUIHide FullscreenNavigationUI = "hide"
)

type FullscreenOptions

type FullscreenOptions struct {
	NavigationUI FullscreenNavigationUI
}

func (FullscreenOptions) JSValue

func (p FullscreenOptions) JSValue() jsValue

type Func

type Func struct {
	js.Func
}

func FuncOf

func FuncOf(fn func(this Value, args []Value) interface{}) Func

type GLenum

type GLenum uint
const (
	// WebGL 1
	DEPTH_BUFFER_BIT                             GLenum = 0x00000100
	STENCIL_BUFFER_BIT                           GLenum = 0x00000400
	COLOR_BUFFER_BIT                             GLenum = 0x00004000
	POINTS                                       GLenum = 0x0000
	LINES                                        GLenum = 0x0001
	LINE_LOOP                                    GLenum = 0x0002
	LINE_STRIP                                   GLenum = 0x0003
	TRIANGLES                                    GLenum = 0x0004
	TRIANGLE_STRIP                               GLenum = 0x0005
	TRIANGLE_FAN                                 GLenum = 0x0006
	ZERO                                         GLenum = 0
	ONE                                          GLenum = 1
	SRC_COLOR                                    GLenum = 0x0300
	ONE_MINUS_SRC_COLOR                          GLenum = 0x0301
	SRC_ALPHA                                    GLenum = 0x0302
	ONE_MINUS_SRC_ALPHA                          GLenum = 0x0303
	DST_ALPHA                                    GLenum = 0x0304
	ONE_MINUS_DST_ALPHA                          GLenum = 0x0305
	DST_COLOR                                    GLenum = 0x0306
	ONE_MINUS_DST_COLOR                          GLenum = 0x0307
	SRC_ALPHA_SATURATE                           GLenum = 0x0308
	FUNC_ADD                                     GLenum = 0x8006
	BLEND_EQUATION                               GLenum = 0x8009
	BLEND_EQUATION_RGB                           GLenum = 0x8009
	BLEND_EQUATION_ALPHA                         GLenum = 0x883D
	FUNC_SUBTRACT                                GLenum = 0x800A
	FUNC_REVERSE_SUBTRACT                        GLenum = 0x800B
	BLEND_DST_RGB                                GLenum = 0x80C8
	BLEND_SRC_RGB                                GLenum = 0x80C9
	BLEND_DST_ALPHA                              GLenum = 0x80CA
	BLEND_SRC_ALPHA                              GLenum = 0x80CB
	CONSTANT_COLOR                               GLenum = 0x8001
	ONE_MINUS_CONSTANT_COLOR                     GLenum = 0x8002
	CONSTANT_ALPHA                               GLenum = 0x8003
	ONE_MINUS_CONSTANT_ALPHA                     GLenum = 0x8004
	BLEND_COLOR                                  GLenum = 0x8005
	ARRAY_BUFFER                                 GLenum = 0x8892
	ELEMENT_ARRAY_BUFFER                         GLenum = 0x8893
	ARRAY_BUFFER_BINDING                         GLenum = 0x8894
	ELEMENT_ARRAY_BUFFER_BINDING                 GLenum = 0x8895
	STREAM_DRAW                                  GLenum = 0x88E0
	STATIC_DRAW                                  GLenum = 0x88E4
	DYNAMIC_DRAW                                 GLenum = 0x88E8
	BUFFER_SIZE                                  GLenum = 0x8764
	BUFFER_USAGE                                 GLenum = 0x8765
	CURRENT_VERTEX_ATTRIB                        GLenum = 0x8626
	FRONT                                        GLenum = 0x0404
	BACK                                         GLenum = 0x0405
	FRONT_AND_BACK                               GLenum = 0x0408
	CULL_FACE                                    GLenum = 0x0B44
	BLEND                                        GLenum = 0x0BE2
	DITHER                                       GLenum = 0x0BD0
	STENCIL_TEST                                 GLenum = 0x0B90
	DEPTH_TEST                                   GLenum = 0x0B71
	SCISSOR_TEST                                 GLenum = 0x0C11
	POLYGON_OFFSET_FILL                          GLenum = 0x8037
	SAMPLE_ALPHA_TO_COVERAGE                     GLenum = 0x809E
	SAMPLE_COVERAGE                              GLenum = 0x80A0
	NO_ERROR                                     GLenum = 0
	INVALID_ENUM                                 GLenum = 0x0500
	INVALID_VALUE                                GLenum = 0x0501
	INVALID_OPERATION                            GLenum = 0x0502
	OUT_OF_MEMORY                                GLenum = 0x0505
	CW                                           GLenum = 0x0900
	CCW                                          GLenum = 0x0901
	LINE_WIDTH                                   GLenum = 0x0B21
	ALIASED_POINT_SIZE_RANGE                     GLenum = 0x846D
	ALIASED_LINE_WIDTH_RANGE                     GLenum = 0x846E
	CULL_FACE_MODE                               GLenum = 0x0B45
	FRONT_FACE                                   GLenum = 0x0B46
	DEPTH_RANGE                                  GLenum = 0x0B70
	DEPTH_WRITEMASK                              GLenum = 0x0B72
	DEPTH_CLEAR_VALUE                            GLenum = 0x0B73
	DEPTH_FUNC                                   GLenum = 0x0B74
	STENCIL_CLEAR_VALUE                          GLenum = 0x0B91
	STENCIL_FUNC                                 GLenum = 0x0B92
	STENCIL_FAIL                                 GLenum = 0x0B94
	STENCIL_PASS_DEPTH_FAIL                      GLenum = 0x0B95
	STENCIL_PASS_DEPTH_PASS                      GLenum = 0x0B96
	STENCIL_REF                                  GLenum = 0x0B97
	STENCIL_VALUE_MASK                           GLenum = 0x0B93
	STENCIL_WRITEMASK                            GLenum = 0x0B98
	STENCIL_BACK_FUNC                            GLenum = 0x8800
	STENCIL_BACK_FAIL                            GLenum = 0x8801
	STENCIL_BACK_PASS_DEPTH_FAIL                 GLenum = 0x8802
	STENCIL_BACK_PASS_DEPTH_PASS                 GLenum = 0x8803
	STENCIL_BACK_REF                             GLenum = 0x8CA3
	STENCIL_BACK_VALUE_MASK                      GLenum = 0x8CA4
	STENCIL_BACK_WRITEMASK                       GLenum = 0x8CA5
	VIEWPORT                                     GLenum = 0x0BA2
	SCISSOR_BOX                                  GLenum = 0x0C10
	COLOR_CLEAR_VALUE                            GLenum = 0x0C22
	COLOR_WRITEMASK                              GLenum = 0x0C23
	UNPACK_ALIGNMENT                             GLenum = 0x0CF5
	PACK_ALIGNMENT                               GLenum = 0x0D05
	MAX_TEXTURE_SIZE                             GLenum = 0x0D33
	MAX_VIEWPORT_DIMS                            GLenum = 0x0D3A
	SUBPIXEL_BITS                                GLenum = 0x0D50
	RED_BITS                                     GLenum = 0x0D52
	GREEN_BITS                                   GLenum = 0x0D53
	BLUE_BITS                                    GLenum = 0x0D54
	ALPHA_BITS                                   GLenum = 0x0D55
	DEPTH_BITS                                   GLenum = 0x0D56
	STENCIL_BITS                                 GLenum = 0x0D57
	POLYGON_OFFSET_UNITS                         GLenum = 0x2A00
	POLYGON_OFFSET_FACTOR                        GLenum = 0x8038
	TEXTURE_BINDING_2D                           GLenum = 0x8069
	SAMPLE_BUFFERS                               GLenum = 0x80A8
	SAMPLES                                      GLenum = 0x80A9
	SAMPLE_COVERAGE_VALUE                        GLenum = 0x80AA
	SAMPLE_COVERAGE_INVERT                       GLenum = 0x80AB
	COMPRESSED_TEXTURE_FORMATS                   GLenum = 0x86A3
	DONT_CARE                                    GLenum = 0x1100
	FASTEST                                      GLenum = 0x1101
	NICEST                                       GLenum = 0x1102
	GENERATE_MIPMAP_HINT                         GLenum = 0x8192
	BYTE                                         GLenum = 0x1400
	UNSIGNED_BYTE                                GLenum = 0x1401
	SHORT                                        GLenum = 0x1402
	UNSIGNED_SHORT                               GLenum = 0x1403
	INT                                          GLenum = 0x1404
	UNSIGNED_INT                                 GLenum = 0x1405
	FLOAT                                        GLenum = 0x1406
	DEPTH_COMPONENT                              GLenum = 0x1902
	ALPHA                                        GLenum = 0x1906
	RGB                                          GLenum = 0x1907
	RGBA                                         GLenum = 0x1908
	LUMINANCE                                    GLenum = 0x1909
	LUMINANCE_ALPHA                              GLenum = 0x190A
	UNSIGNED_SHORT_4_4_4_4                       GLenum = 0x8033
	UNSIGNED_SHORT_5_5_5_1                       GLenum = 0x8034
	UNSIGNED_SHORT_5_6_5                         GLenum = 0x8363
	FRAGMENT_SHADER                              GLenum = 0x8B30
	VERTEX_SHADER                                GLenum = 0x8B31
	MAX_VERTEX_ATTRIBS                           GLenum = 0x8869
	MAX_VERTEX_UNIFORM_VECTORS                   GLenum = 0x8DFB
	MAX_VARYING_VECTORS                          GLenum = 0x8DFC
	MAX_COMBINED_TEXTURE_IMAGE_UNITS             GLenum = 0x8B4D
	MAX_VERTEX_TEXTURE_IMAGE_UNITS               GLenum = 0x8B4C
	MAX_TEXTURE_IMAGE_UNITS                      GLenum = 0x8872
	MAX_FRAGMENT_UNIFORM_VECTORS                 GLenum = 0x8DFD
	SHADER_TYPE                                  GLenum = 0x8B4F
	DELETE_STATUS                                GLenum = 0x8B80
	LINK_STATUS                                  GLenum = 0x8B82
	VALIDATE_STATUS                              GLenum = 0x8B83
	ATTACHED_SHADERS                             GLenum = 0x8B85
	ACTIVE_UNIFORMS                              GLenum = 0x8B86
	ACTIVE_ATTRIBUTES                            GLenum = 0x8B89
	SHADING_LANGUAGE_VERSION                     GLenum = 0x8B8C
	CURRENT_PROGRAM                              GLenum = 0x8B8D
	NEVER                                        GLenum = 0x0200
	LESS                                         GLenum = 0x0201
	EQUAL                                        GLenum = 0x0202
	LEQUAL                                       GLenum = 0x0203
	GREATER                                      GLenum = 0x0204
	NOTEQUAL                                     GLenum = 0x0205
	GEQUAL                                       GLenum = 0x0206
	ALWAYS                                       GLenum = 0x0207
	KEEP                                         GLenum = 0x1E00
	REPLACE                                      GLenum = 0x1E01
	INCR                                         GLenum = 0x1E02
	DECR                                         GLenum = 0x1E03
	INVERT                                       GLenum = 0x150A
	INCR_WRAP                                    GLenum = 0x8507
	DECR_WRAP                                    GLenum = 0x8508
	VENDOR                                       GLenum = 0x1F00
	RENDERER                                     GLenum = 0x1F01
	VERSION                                      GLenum = 0x1F02
	NEAREST                                      GLenum = 0x2600
	LINEAR                                       GLenum = 0x2601
	NEAREST_MIPMAP_NEAREST                       GLenum = 0x2700
	LINEAR_MIPMAP_NEAREST                        GLenum = 0x2701
	NEAREST_MIPMAP_LINEAR                        GLenum = 0x2702
	LINEAR_MIPMAP_LINEAR                         GLenum = 0x2703
	TEXTURE_MAG_FILTER                           GLenum = 0x2800
	TEXTURE_MIN_FILTER                           GLenum = 0x2801
	TEXTURE_WRAP_S                               GLenum = 0x2802
	TEXTURE_WRAP_T                               GLenum = 0x2803
	TEXTURE_2D                                   GLenum = 0x0DE1
	TEXTURE                                      GLenum = 0x1702
	TEXTURE_CUBE_MAP                             GLenum = 0x8513
	TEXTURE_BINDING_CUBE_MAP                     GLenum = 0x8514
	TEXTURE_CUBE_MAP_POSITIVE_X                  GLenum = 0x8515
	TEXTURE_CUBE_MAP_NEGATIVE_X                  GLenum = 0x8516
	TEXTURE_CUBE_MAP_POSITIVE_Y                  GLenum = 0x8517
	TEXTURE_CUBE_MAP_NEGATIVE_Y                  GLenum = 0x8518
	TEXTURE_CUBE_MAP_POSITIVE_Z                  GLenum = 0x8519
	TEXTURE_CUBE_MAP_NEGATIVE_Z                  GLenum = 0x851A
	MAX_CUBE_MAP_TEXTURE_SIZE                    GLenum = 0x851C
	TEXTURE0                                     GLenum = 0x84C0
	TEXTURE1                                     GLenum = 0x84C1
	TEXTURE2                                     GLenum = 0x84C2
	TEXTURE3                                     GLenum = 0x84C3
	TEXTURE4                                     GLenum = 0x84C4
	TEXTURE5                                     GLenum = 0x84C5
	TEXTURE6                                     GLenum = 0x84C6
	TEXTURE7                                     GLenum = 0x84C7
	TEXTURE8                                     GLenum = 0x84C8
	TEXTURE9                                     GLenum = 0x84C9
	TEXTURE10                                    GLenum = 0x84CA
	TEXTURE11                                    GLenum = 0x84CB
	TEXTURE12                                    GLenum = 0x84CC
	TEXTURE13                                    GLenum = 0x84CD
	TEXTURE14                                    GLenum = 0x84CE
	TEXTURE15                                    GLenum = 0x84CF
	TEXTURE16                                    GLenum = 0x84D0
	TEXTURE17                                    GLenum = 0x84D1
	TEXTURE18                                    GLenum = 0x84D2
	TEXTURE19                                    GLenum = 0x84D3
	TEXTURE20                                    GLenum = 0x84D4
	TEXTURE21                                    GLenum = 0x84D5
	TEXTURE22                                    GLenum = 0x84D6
	TEXTURE23                                    GLenum = 0x84D7
	TEXTURE24                                    GLenum = 0x84D8
	TEXTURE25                                    GLenum = 0x84D9
	TEXTURE26                                    GLenum = 0x84DA
	TEXTURE27                                    GLenum = 0x84DB
	TEXTURE28                                    GLenum = 0x84DC
	TEXTURE29                                    GLenum = 0x84DD
	TEXTURE30                                    GLenum = 0x84DE
	TEXTURE31                                    GLenum = 0x84DF
	ACTIVE_TEXTURE                               GLenum = 0x84E0
	REPEAT                                       GLenum = 0x2901
	CLAMP_TO_EDGE                                GLenum = 0x812F
	MIRRORED_REPEAT                              GLenum = 0x8370
	FLOAT_VEC2                                   GLenum = 0x8B50
	FLOAT_VEC3                                   GLenum = 0x8B51
	FLOAT_VEC4                                   GLenum = 0x8B52
	INT_VEC2                                     GLenum = 0x8B53
	INT_VEC3                                     GLenum = 0x8B54
	INT_VEC4                                     GLenum = 0x8B55
	BOOL                                         GLenum = 0x8B56
	BOOL_VEC2                                    GLenum = 0x8B57
	BOOL_VEC3                                    GLenum = 0x8B58
	BOOL_VEC4                                    GLenum = 0x8B59
	FLOAT_MAT2                                   GLenum = 0x8B5A
	FLOAT_MAT3                                   GLenum = 0x8B5B
	FLOAT_MAT4                                   GLenum = 0x8B5C
	SAMPLER_2D                                   GLenum = 0x8B5E
	SAMPLER_CUBE                                 GLenum = 0x8B60
	VERTEX_ATTRIB_ARRAY_ENABLED                  GLenum = 0x8622
	VERTEX_ATTRIB_ARRAY_SIZE                     GLenum = 0x8623
	VERTEX_ATTRIB_ARRAY_STRIDE                   GLenum = 0x8624
	VERTEX_ATTRIB_ARRAY_TYPE                     GLenum = 0x8625
	VERTEX_ATTRIB_ARRAY_NORMALIZED               GLenum = 0x886A
	VERTEX_ATTRIB_ARRAY_POINTER                  GLenum = 0x8645
	VERTEX_ATTRIB_ARRAY_BUFFER_BINDING           GLenum = 0x889F
	IMPLEMENTATION_COLOR_READ_TYPE               GLenum = 0x8B9A
	IMPLEMENTATION_COLOR_READ_FORMAT             GLenum = 0x8B9B
	COMPILE_STATUS                               GLenum = 0x8B81
	LOW_FLOAT                                    GLenum = 0x8DF0
	MEDIUM_FLOAT                                 GLenum = 0x8DF1
	HIGH_FLOAT                                   GLenum = 0x8DF2
	LOW_INT                                      GLenum = 0x8DF3
	MEDIUM_INT                                   GLenum = 0x8DF4
	HIGH_INT                                     GLenum = 0x8DF5
	FRAMEBUFFER                                  GLenum = 0x8D40
	RENDERBUFFER                                 GLenum = 0x8D41
	RGBA4                                        GLenum = 0x8056
	RGB5_A1                                      GLenum = 0x8057
	RGB565                                       GLenum = 0x8D62
	DEPTH_COMPONENT16                            GLenum = 0x81A5
	STENCIL_INDEX8                               GLenum = 0x8D48
	DEPTH_STENCIL                                GLenum = 0x84F9
	RENDERBUFFER_WIDTH                           GLenum = 0x8D42
	RENDERBUFFER_HEIGHT                          GLenum = 0x8D43
	RENDERBUFFER_INTERNAL_FORMAT                 GLenum = 0x8D44
	RENDERBUFFER_RED_SIZE                        GLenum = 0x8D50
	RENDERBUFFER_GREEN_SIZE                      GLenum = 0x8D51
	RENDERBUFFER_BLUE_SIZE                       GLenum = 0x8D52
	RENDERBUFFER_ALPHA_SIZE                      GLenum = 0x8D53
	RENDERBUFFER_DEPTH_SIZE                      GLenum = 0x8D54
	RENDERBUFFER_STENCIL_SIZE                    GLenum = 0x8D55
	FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE           GLenum = 0x8CD0
	FRAMEBUFFER_ATTACHMENT_OBJECT_NAME           GLenum = 0x8CD1
	FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL         GLenum = 0x8CD2
	FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE GLenum = 0x8CD3
	COLOR_ATTACHMENT0                            GLenum = 0x8CE0
	DEPTH_ATTACHMENT                             GLenum = 0x8D00
	STENCIL_ATTACHMENT                           GLenum = 0x8D20
	DEPTH_STENCIL_ATTACHMENT                     GLenum = 0x821A
	NONE                                         GLenum = 0
	FRAMEBUFFER_COMPLETE                         GLenum = 0x8CD5
	FRAMEBUFFER_INCOMPLETE_ATTACHMENT            GLenum = 0x8CD6
	FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT    GLenum = 0x8CD7
	FRAMEBUFFER_INCOMPLETE_DIMENSIONS            GLenum = 0x8CD9
	FRAMEBUFFER_UNSUPPORTED                      GLenum = 0x8CDD
	FRAMEBUFFER_BINDING                          GLenum = 0x8CA6
	RENDERBUFFER_BINDING                         GLenum = 0x8CA7
	MAX_RENDERBUFFER_SIZE                        GLenum = 0x84E8
	INVALID_FRAMEBUFFER_OPERATION                GLenum = 0x0506
	UNPACK_FLIP_Y_WEBGL                          GLenum = 0x9240
	UNPACK_PREMULTIPLY_ALPHA_WEBGL               GLenum = 0x9241
	CONTEXT_LOST_WEBGL                           GLenum = 0x9242
	UNPACK_COLORSPACE_CONVERSION_WEBGL           GLenum = 0x9243
	BROWSER_DEFAULT_WEBGL                        GLenum = 0x9244
)

type GenericReader

type GenericReader interface {
	Closed() Promise
	Cancel(string) Promise // Promise<reason>
	Read() Promise         // Promise<result>
	ReleaseLock()
}

type GenericTransformStream

type GenericTransformStream interface {
	Readable() ReadableStream
	Writable() WritableStream
}

type Geolocation

type Geolocation interface {
	CurrentPosition(PositionCallback, ...interface{})
	WatchPosition(PositionCallback, ...interface{}) int
	ClearWatch(int)
}

https://w3c.github.io/geolocation-api/#dom-geolocation

type GeometryNode

type GeometryNode interface {
	JSValue() jsValue
}

typedef (Text or Element or CSSPseudoElement or Document) GeometryNode; https://drafts.csswg.org/cssom-view/#typedefdef-geometrynode

type GlobalEventHandlers

type GlobalEventHandlers interface {
	OnAbort(func(Event)) EventHandler
	OnAuxClick(func(Event)) EventHandler
	OnBlur(func(Event)) EventHandler
	OnCancel(func(Event)) EventHandler
	OnCanPlay(func(Event)) EventHandler
	OnCanPlayThrough(func(Event)) EventHandler
	OnChange(func(Event)) EventHandler
	OnClick(func(MouseEvent)) EventHandler
	OnClose(func(CloseEvent)) EventHandler
	OnContextMenu(func(MouseEvent)) EventHandler
	OnCueChange(func(Event)) EventHandler
	OnDblClick(func(MouseEvent)) EventHandler
	OnDrag(func(DragEvent)) EventHandler
	OnDragEnd(func(DragEvent)) EventHandler
	OnDragEnter(func(DragEvent)) EventHandler
	OnDragExit(func(DragEvent)) EventHandler
	OnDragLeave(func(DragEvent)) EventHandler
	OnDragOver(func(DragEvent)) EventHandler
	OnDragStart(func(DragEvent)) EventHandler
	OnDrop(func(DragEvent)) EventHandler
	OnDurationChange(func(Event)) EventHandler
	OnEmptied(func(Event)) EventHandler
	OnEnded(func(Event)) EventHandler

	// TODO
	//OnError(func(Event)) OnErrorEventHandler
	OnError(func(ErrorEvent)) EventHandler
	OnFocus(func(FocusEvent)) EventHandler
	OnInput(func(InputEvent)) EventHandler
	OnInvalid(func(Event)) EventHandler
	OnKeyDown(func(KeyboardEvent)) EventHandler
	OnKeyPress(func(KeyboardEvent)) EventHandler
	OnKeyUp(func(KeyboardEvent)) EventHandler
	OnLoad(func(UIEvent)) EventHandler
	OnLoadedData(func(Event)) EventHandler
	OnLoadedMetadata(func(Event)) EventHandler
	OnLoadEnd(func(ProgressEvent)) EventHandler
	OnLoadStart(func(ProgressEvent)) EventHandler
	OnMouseDown(func(MouseEvent)) EventHandler
	OnMouseEnter(func(MouseEvent)) EventHandler
	OnMouseLeave(func(MouseEvent)) EventHandler
	OnMouseMove(func(MouseEvent)) EventHandler
	OnMouseOut(func(MouseEvent)) EventHandler
	OnMouseOver(func(MouseEvent)) EventHandler
	OnMouseUp(func(MouseEvent)) EventHandler
	OnWheel(func(WheelEvent)) EventHandler
	OnPause(func(Event)) EventHandler
	OnPlay(func(Event)) EventHandler
	OnPlaying(func(Event)) EventHandler
	OnProgress(func(ProgressEvent)) EventHandler
	OnRateChange(func(Event)) EventHandler
	OnReset(func(Event)) EventHandler
	OnResize(func(Event)) EventHandler
	OnScroll(func(Event)) EventHandler
	OnSecurityPolicyViolation(func(Event)) EventHandler
	OnSeeked(func(Event)) EventHandler
	OnSeeking(func(Event)) EventHandler
	OnSelect(func(Event)) EventHandler
	OnStalled(func(Event)) EventHandler
	OnSubmit(func(Event)) EventHandler
	OnSuspend(func(Event)) EventHandler
	OnTimeUpdate(func(Event)) EventHandler
	OnToggle(func(Event)) EventHandler
	OnVolumeChange(func(Event)) EventHandler
	OnWaiting(func(Event)) EventHandler

	// https://w3c.github.io/touch-events/#extensions-to-the-globaleventhandlers-interface
	OnTouchStart(func(TouchEvent)) EventHandler
	OnTouchEnd(func(TouchEvent)) EventHandler
	OnTouchMove(func(TouchEvent)) EventHandler
	OnTouchCancel(func(TouchEvent)) EventHandler

	//https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl
	OnTransitionRun(func(TransitionEvent)) EventHandler
	OnTransitionStart(func(TransitionEvent)) EventHandler
	OnTransitionEnd(func(TransitionEvent)) EventHandler
	OnTransitionCancel(func(TransitionEvent)) EventHandler

	// https://www.w3.org/TR/pointerevents/#extensions-to-the-globaleventhandlers-interface
	OnGotPointerCapture(func(PointerEvent)) EventHandler
	OnLostPointerCapture(func(PointerEvent)) EventHandler
	OnPointerDown(func(PointerEvent)) EventHandler
	OnPointerMove(func(PointerEvent)) EventHandler
	OnPointerUp(func(PointerEvent)) EventHandler
	OnPointerCancel(func(PointerEvent)) EventHandler
	OnPointerOver(func(PointerEvent)) EventHandler
	OnPointerOut(func(PointerEvent)) EventHandler
	OnPointerEnter(func(PointerEvent)) EventHandler
	OnPointerLeave(func(PointerEvent)) EventHandler
}

https://www.w3.org/TR/html52/webappapis.html#globaleventhandlers

type HTMLAnchorElement

type HTMLAnchorElement interface {
	HTMLElement
	HTMLHyperlinkElementUtils

	Target() string
	SetTarget(string)
	Download() string
	SetDownload(string)
	Rel() string
	SetRel(string)
	Rev() string
	SetRev(string)
	RelList() DOMTokenList
	HrefLang() string
	SetHrefLang(string)
	Type() string
	SetType(string)
	Text() string
	SetText(string)
	ReferrerPolicy() string
	SetReferrerPolicy(string)
}

https://www.w3.org/TR/html52/textlevel-semantics.html#htmlanchorelement

func NewHTMLAnchorElement

func NewHTMLAnchorElement() HTMLAnchorElement

type HTMLAreaElement

type HTMLAreaElement interface {
	HTMLElement
	HTMLHyperlinkElementUtils

	Alt() string
	SetAlt(string)
	Coords() string
	SetCoords(string)
	Shape() string
	SetShape(string)
	Target() string
	SetTarget(string)
	Download() string
	SetDownload(string)
	Rel() string
	SetRel(string)
	RelList() DOMTokenList
	HrefLang() string
	SetHrefLang(string)
	Type() string
	SetType(string)
	ReferrerPolicy() string
	SetReferrerPolicy(string)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlareaelement

func NewHTMLAreaElement

func NewHTMLAreaElement() HTMLAreaElement

type HTMLBaseElement

type HTMLBaseElement interface {
	HTMLElement

	Href() string
	SetHref(string)
	Target() string
	SetTarget(string)
}

https://www.w3.org/TR/html52/document-metadata.html#htmlbaseelement

func NewHTMLBaseElement

func NewHTMLBaseElement() HTMLBaseElement

type HTMLButtonElement

type HTMLButtonElement interface {
	HTMLElement

	Autofocus() bool
	SetAutofocus(bool)
	Disabled() bool
	SetDisabled(bool)
	Form() HTMLFormElement
	FormAction() string
	SetFormAction(string)
	FormEnctype() string
	SetFormEnctype(string)
	FormMethod() string
	SetFormMethod(string)
	FormNoValidate() bool
	SetFormNoValidate(bool)
	FormTarget() string
	SetFormTarget(string)
	Name() string
	SetName(string)
	Type() string
	SetType(string)
	Value() string
	SetValue(string)
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string
	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)
	Labels() []Node
}

https://www.w3.org/TR/html52/sec-forms.html#htmlbuttonelement

func NewHTMLButtonElement

func NewHTMLButtonElement() HTMLButtonElement

type HTMLCanvasElement

type HTMLCanvasElement interface {
	HTMLElement
	Width() uint
	SetWidth(uint)
	Height() uint
	SetHeight(uint)
	Context2D(...CanvasRenderingContext2DSettings) CanvasRenderingContext2D
	ContextWebGL(attrs ...WebGLContextAttributes) WebGLRenderingContext
	ProbablySupportsContext(string, ...interface{}) bool
	ToDataURL(...interface{}) string
	ToBlob(BlobCallback, ...interface{})
}

https://www.w3.org/TR/html52/semantics-scripting.html#htmlcanvaselement

func NewHTMLCanvasElement

func NewHTMLCanvasElement(size ...uint) HTMLCanvasElement

type HTMLCollection

type HTMLCollection interface {
	Length() uint
	Item(uint) Element
	NamedItem(string) Element
}

https://dom.spec.whatwg.org/#htmlcollection

type HTMLDataElement

type HTMLDataElement interface {
	HTMLElement

	Value() string
	SetValue(string)
}

https://www.w3.org/TR/html52/textlevel-semantics.html#htmldataelement

func NewHTMLDataElement

func NewHTMLDataElement() HTMLDataElement

type HTMLDialogElement

type HTMLDialogElement interface {
	HTMLElement

	Open() bool
	SetOpen(bool)
	ReturnValue() string
	SetReturnValue(string)
	Show(...interface{})      // MouseEvent or Element
	ShowModal(...interface{}) // MouseEvent or Element
	Close(...string)          // optional returnValue
}

https://www.w3.org/TR/html52/interactive-elements.html#htmldialogelement

type HTMLElement

type HTMLElement interface {
	Element
	GlobalEventHandlers
	DocumentAndElementEventHandlers

	Title() string
	SetTitle(string)
	Lang() string
	SetLang(string)
	Translate() bool
	SetTranslate(bool)
	Dir() string
	SetDir(string)
	DataSet() DOMStringMap
	Hidden() bool
	SetHidden(bool)
	Click()
	TabIndex() int
	SetTabIndex(int)
	Focus()
	Blur()
	AccessKey() string
	SetAccessKey(string)
	AccessKeyLabel() string //5.3
	Draggable() bool
	SetDraggable(bool)
	SpellCheck() bool
	SetSpellChack(bool)
	ForceSpellCheck()
	//Autocapitalize() string   //5.3
	//SetAutocapitalize(string) //5.3
	InnerText() string
	SetInnerText(string)

	// https://www.w3.org/TR/cssom-view-1/#extensions-to-the-htmlelement-interface
	OffsetParent() Element
	OffsetTop() int
	OffsetLeft() int
	OffsetWidth() int
	OffsetHeight() int

	// https://drafts.csswg.org/cssom/#elementcssinlinestyle
	Style() CSSStyleDeclaration
}

https://www.w3.org/TR/html52/dom.html#htmlelement

type HTMLEmbedElement

type HTMLEmbedElement interface {
	HTMLElement

	Src() string
	SetSrc(string)
	Type() string
	SetType(string)
	Width() string
	SetWidth(string)
	Height() string
	SetHeight(string)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlembedelement

func NewHTMLEmbedElement

func NewHTMLEmbedElement() HTMLEmbedElement

type HTMLFieldSetElement

type HTMLFieldSetElement interface {
	HTMLElement

	Disabled() bool
	SetDisabled(bool)
	Form() HTMLFormElement
	Name() string
	SetName(string)
	Type() string
	Elements() []HTMLElement
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string
	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)
}

https://www.w3.org/TR/html52/sec-forms.html#htmlfieldsetelement

func NewHTMLFieldSetElement

func NewHTMLFieldSetElement() HTMLFieldSetElement

type HTMLFormControl

type HTMLFormControl interface{}

Element or RadioNodeList

type HTMLFormElement

type HTMLFormElement interface {
	HTMLElement

	AcceptCharset() string
	SetAcceptCharset(string)
	Action() string
	SetAction(string)
	Autocomplete() string
	SetAutocomplete(string)
	Enctype() string
	SetEnctype(string)
	Encoding() string
	SetEncoding(string)
	Method() string
	SetMethod(string)
	Name() string
	SetName(string)
	NoValidate() bool
	SetNoValidate(bool)
	Target() string
	SetTarget(string)
	Elements() HTMLFormControlsCollection
	Submit()
	Reset()
	CheckValidity() bool
	ReportValidity() bool
}

https://www.w3.org/TR/html52/sec-forms.html#htmlformelement

func NewHTMLFormElement

func NewHTMLFormElement() HTMLFormElement

type HTMLHyperlinkElementUtils

type HTMLHyperlinkElementUtils interface {
	Href() string
	SetHref(string)
	Origin() string
	Protocol() string
	SetProtocol(string)
	Username() string
	SetUsername(string)
	Password() string
	SetPassword(string)
	Host() string
	SetHost(string)
	Hostname() string
	SetHostname(string)
	Port() string
	SetPort(string)
	Pathname() string
	SetPathname(string)
	Search() string
	SetSearch(string)
	Hash() string
	SetHash(string)
}

https://www.w3.org/TR/html52/links.html#htmlhyperlinkelementutils

type HTMLIFrameElement

type HTMLIFrameElement interface {
	HTMLElement

	Src() string
	SetSrc(string)
	SrcDoc() string
	SetSrcDoc(string)
	Name() string
	SetName(string)
	Sandbox() DOMTokenList
	AllowFullScreen() bool
	SetAllowFullScreen(bool)
	AllowPaymentRequest() bool
	SetAllowPaymentRequest(bool)
	Width() string
	SetWidth(string)
	Height() string
	SetHeight(string)
	ReferrerPolicy() string
	SetReferrerPolicy(string)
	ContentDocument() Document
	ContentWindow() WindowProxy
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmliframeelement

func NewHTMLIFrameElement

func NewHTMLIFrameElement() HTMLIFrameElement

type HTMLImageElement

type HTMLImageElement interface {
	HTMLElement

	Alt() string
	SetAlt(string)
	Src() string
	SetSrc(string)
	SrcSet() string
	SetSrcSet(string)
	Sizes() string
	SetSizes(string)
	CrossOrigin() string
	SetCrossOrigin(string)
	UseMap() string
	SetUseMap(string)
	LongDesc() string
	SetLongDesc(string)
	IsMap() bool
	SetIsMap(bool)
	Width() uint
	SetWidth(uint)
	Height() uint
	SetHeight(uint)
	NaturalWidth() uint
	NaturalHeight() uint
	Complete() bool
	CurrentSrc() string
	ReferrerPolicy() string
	SetReferrerPolicy(string)

	X() int
	Y() int
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlimageelement

func NewHTMLImageElement

func NewHTMLImageElement() HTMLImageElement

func NewImage

func NewImage(args ...uint) HTMLImageElement

type HTMLInputElement

type HTMLInputElement interface {
	HTMLElement

	Accept() string
	SetAccept(string)
	Alt() string
	SetAlt(string)
	Autocomplete() string
	SetAutocomplete(string)
	Autofocus() bool
	SetAutofocus(bool)
	DefaultChecked() bool
	SetDefaultChecked(bool)
	Checked() bool
	SetChecked(bool)
	DirName() string
	SetDirName(string)
	Disabled() bool
	SetDisabled(bool)
	Form() HTMLFormElement
	Files() []File
	FormAction() string
	SetFormAction(string)
	FormEnctype() string
	SetFormEnctype(string)
	FormMethod() string
	SetFormMethod(string)
	FormNoValidate() bool
	SetFormNoValidate(bool)
	FormTarget() string
	SetFormTarget(string)
	Height() uint
	SetHeight(uint)
	Indeterminate() bool
	SetIndeterminate(bool)
	List() HTMLElement
	Max() string
	SetMax(string)
	MaxLength() int
	SetMaxLength(int)
	Min() string
	SetMin(string)
	MinLength() int
	SetMinLength(int)
	Multiple() bool
	SetMultiple(bool)
	Name() string
	SetName(string)
	Pattern() string
	SetPattern(string)
	Placeholder() string
	SetPlaceholder(string)
	ReadOnly() bool
	SetReadOnly(bool)
	Required() bool
	SetRequired(bool)
	Size() uint
	SetSize(uint)
	Src() string
	SetSrc(string)
	Step() string
	SetStep(string)
	Type() string
	SetType(string)
	DefaultValue() string
	SetDefaultValue(string)
	Value() string
	SetValue(string)
	ValueAsDate() time.Time
	SetValueAsDate(time.Time)
	ValueAsNumber() float64
	SetValueAsNumber(float64)
	Width() uint
	SetWidth(uint)
	StepUp(...int)
	StepDown(...int)
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string
	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)
	Labels() []Node
	Select()
	SelectionStart() uint
	SetSelectionStart(uint)
	SelectionEnd() uint
	SetSelectionEnd(uint)
	SelectionDirection() string
	SetSelectionDirection(string)
	SetRangeText(string, ...interface{})
	SetSelectionRange(uint, uint, ...string)
}

https://www.w3.org/TR/html52/sec-forms.html#htmlinputelement

func NewHTMLInputElement

func NewHTMLInputElement(typ ...string) HTMLInputElement

type HTMLLIElement

type HTMLLIElement interface {
	HTMLElement

	Value() int
	SetValue(int)
}

https://www.w3.org/TR/html52/grouping-content.html#htmllielement

func NewHTMLLIElement

func NewHTMLLIElement() HTMLLIElement

type HTMLLabelElement

type HTMLLabelElement interface {
	HTMLElement

	Form() HTMLFormElement
	HtmlFor() string
	SetHtmlFor(string)
	Control() HTMLElement
}

https://www.w3.org/TR/html52/sec-forms.html#htmllabelelement

func NewHTMLLabelElement

func NewHTMLLabelElement() HTMLLabelElement

type HTMLLinkElement

type HTMLLinkElement interface {
	HTMLElement
	LinkStyle

	Href() string
	SetHref(string)
	CrossOrigin() string
	SetCrossOrigin(string)
	Rel() string
	SetRel(string)
	Rev() string
	SetRev(string)
	RelList() DOMTokenList
	Media() string
	SetMedia(string)
	Nonce() string
	SetNonce(string)
	HrefLang() string
	SetHrefLang(string)
	Type() string
	SetType(string)
	Sizes() DOMTokenList
	ReferrerPolicy() string
	SetReferrerPolicy(string)
}

https://www.w3.org/TR/html52/document-metadata.html#htmllinkelement

func NewHTMLLinkElement

func NewHTMLLinkElement() HTMLLinkElement

type HTMLMapElement

type HTMLMapElement interface {
	HTMLElement

	Name() string
	SetName(string)
	Areas() []HTMLAreaElement
	Images() []HTMLElement
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlmapelement

func NewHTMLMapElement

func NewHTMLMapElement() HTMLMapElement

type HTMLMediaElement

type HTMLMediaElement interface {
	HTMLElement

	Error() MediaError
	Src() string
	SetSrc(string)
	SrcObject() MediaProvider
	SetSrcObject(MediaProvider)
	CurrentSrc() string
	CrossOrigin() string
	SetCrossOrigin(string)
	NetworkState() MediaNetworkState
	Preload() string
	SetPreload(string)
	Buffered() TimeRanges
	Load()
	CanPlayType(string) CanPlayTypeResult
	ReadyState() MediaReadyState
	Seeking() bool
	CurrentTime() float64
	SetCurrentTime(float64)
	FastSeek(float64)
	Duration() float64
	StartDate() time.Time // js Date
	Paused() bool
	DefaultPlaybackRate() float64
	SetDefaultPlaybackRate(float64)
	PlaybackRate() float64
	SetPlaybackRate(float64)
	Played() TimeRanges
	Seekable() TimeRanges
	Ended() bool
	AutoPlay() bool
	SetAutoPlay(bool)
	Loop() bool
	SetLoop(bool)
	Play()
	Pause()
	Controls() bool
	SetControls(bool)
	Volume() bool
	SetVolume(bool)
	Muted() bool
	SetMuted(bool)
	DefaultMuted() bool
	SetDefaultMuted(bool)
	AudioTracks() AudioTrackList
	VideoTracks() VideoTrackList
	TextTracks() TextTrackList
	AddTextTrack(TextTrackKind, ...string) TextTrack
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlmediaelement

type HTMLMetaElement

type HTMLMetaElement interface {
	HTMLElement

	Name() string
	SetName(string)
	HTTPEquiv() string
	SetHTTPEquiv(string)
	Content() string
	SetContent(string)
}

https://www.w3.org/TR/html52/document-metadata.html#htmlmetaelement

func NewHTMLMetaElement

func NewHTMLMetaElement() HTMLMetaElement

type HTMLMeterElement

type HTMLMeterElement interface {
	HTMLElement

	Value() float64
	SetValue(float64)
	Min() float64
	SetMin(float64)
	Max() float64
	SetMax(float64)
	Low() float64
	SetLow(float64)
	High() float64
	SetHigh(float64)
	Optimum() float64
	SetOptimum(float64)
	Labels() []Node
}

https://www.w3.org/TR/html52/sec-forms.html#htmlmeterelement

func NewHTMLMeterElement

func NewHTMLMeterElement() HTMLMeterElement

type HTMLModElement

type HTMLModElement interface {
	HTMLElement

	Cite() string
	SetCite(string)
	DateTime() string
	SetDateTime(string)
}

https://www.w3.org/TR/html52/edits.html#htmlmodelement

func NewHTMLDelElement

func NewHTMLDelElement() HTMLModElement

func NewHTMLInsElement

func NewHTMLInsElement() HTMLModElement

type HTMLOListElement

type HTMLOListElement interface {
	HTMLElement

	Reversed() bool
	SetReversed(bool)
	Start() int
	SetStart(int)
	Type() string
	SetType(string)
}

https://www.w3.org/TR/html52/grouping-content.html#htmlolistelement

func NewHTMLOListElement

func NewHTMLOListElement() HTMLOListElement

type HTMLObjectElement

type HTMLObjectElement interface {
	HTMLElement

	Data() string
	SetData(string)
	Type() string
	SetType(string)
	TypeMustMatch() bool
	SetTypeMustMatch(bool)
	Name() string
	SetName(string)
	Form() HTMLFormElement
	Width() string
	SetWidth(string)
	Height() string
	SetHeight(string)
	ContentDocument() Document
	ContentWindow() WindowProxy
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string
	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlobjectelement

func NewHTMLObjectElement

func NewHTMLObjectElement() HTMLObjectElement

type HTMLOptGroupElement

type HTMLOptGroupElement interface {
	HTMLElement

	Disabled() bool
	SetDisabled(bool)
	Label() string
	SetLabel(string)
}

https://www.w3.org/TR/html52/sec-forms.html#htmloptgroupelement

func NewHTMLOptGroupElement

func NewHTMLOptGroupElement() HTMLOptGroupElement

type HTMLOptionElement

type HTMLOptionElement interface {
	HTMLElement

	Disabled() bool
	SetDisabled(bool)
	Form() HTMLFormElement
	Label() string
	SetLabel(string)
	DefaultSelected() bool
	SetDefaultSelected(bool)
	Selected() bool
	SetSelected(bool)
	Value() string
	SetValue(string)
	Text() string
	SetText(string)
	Index() int
}

https://www.w3.org/TR/html52/sec-forms.html#htmloptionelement

func NewOption

func NewOption(args ...interface{}) HTMLOptionElement

Named Constructor

type HTMLOptionsCollection

type HTMLOptionsCollection interface {
	HTMLCollection

	//Set(uint, HTMLOptionElement)
	Add(HTMLElement, ...interface{})
	Remove(int)
	SelectedIndex() int
	SetSelectedIndex(int)
}

https://www.w3.org/TR/html52/infrastructure.html#htmloptionscollection

type HTMLOrSVGElement

type HTMLOrSVGElement interface {
	DataSet() map[string]string // DomStringMap = map[string]string
	Nonce() string
	SetNonce(string)
	TabIndex() int
	SetTabIndex(int)
	Focus(...FocusOptions)
	Blur()
}

https://html.spec.whatwg.org/multipage/dom.html#htmlorsvgelement

type HTMLOrSVGScriptElement

type HTMLOrSVGScriptElement interface {
	JSValue() jsValue
}

https://www.w3.org/TR/html52/dom.html#typedefdef-htmlorsvgscriptelement typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;

type HTMLOutputElement

type HTMLOutputElement interface {
	HTMLElement

	HtmlFor() DOMTokenList
	Form() HTMLFormElement
	Name() string
	SetName(string)
	Type() string
	DefaultValue() string
	SetDefaultValue(string)
	Value() string
	SetValue(string)
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string
	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)
	Labels() []Node
}

https://www.w3.org/TR/html52/sec-forms.html#htmloutputelement

func NewHTMLOutputElement

func NewHTMLOutputElement() HTMLOutputElement

type HTMLParamElement

type HTMLParamElement interface {
	HTMLElement

	Name() string
	SetName(string)
	Value() string
	SetValue(string)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlparamelement

func NewHTMLParamElement

func NewHTMLParamElement(name string, value string) HTMLParamElement

type HTMLProgressElement

type HTMLProgressElement interface {
	HTMLElement

	Value() float64
	SetValue(float64)
	Max() float64
	SetMax(float64)
	Position() float64
	Labels() []Node
}

https://www.w3.org/TR/html52/sec-forms.html#htmlprogresselement

func NewHTMLProgressElement

func NewHTMLProgressElement() HTMLProgressElement

type HTMLQuoteElement

type HTMLQuoteElement interface {
	HTMLElement

	Cite() string
	SetCite(string)
}

https://www.w3.org/TR/html52/grouping-content.html#htmlquoteelement

func NewHTMLQuoteElement

func NewHTMLQuoteElement(block ...bool) HTMLQuoteElement

type HTMLScriptElement

type HTMLScriptElement interface {
	HTMLElement

	Src() string
	SetSrc(string)
	Type() string
	SetType(string)
	Charset() string
	SetCharset(string)
	Async() bool
	SetAsync(bool)
	Defer() bool
	SetDefer(bool)
	CrossOrigin() string
	SetCrossOrigin(string)
	Text() string
	SetText(string)
	Nonce() string
	SetNonce(string)
}

https://www.w3.org/TR/html52/semantics-scripting.html#htmlscriptelement

func NewHTMLScriptElement

func NewHTMLScriptElement() HTMLScriptElement

type HTMLSelectElement

type HTMLSelectElement interface {
	HTMLElement

	Autocomplete() string
	SetAutocomplete(string)
	Autofocus() bool
	SetAutofocus(bool)
	Disabled() bool
	SetDisabled(bool)
	Form() HTMLFormElement
	Multiple() bool
	SetMultiple(bool)
	Name() string
	SetName(string)
	Required() bool
	SetRequired(bool)
	Size() uint
	SetSize(uint)
	Type() string
	Options() HTMLOptionsCollection
	Length() uint
	SetLength(uint)
	Item(uint) Element
	NamedItem(string) HTMLOptionElement
	Add(HTMLElement, ...interface{})
	RemoveByIndex(int)
	Set(uint, HTMLOptionElement)
	SelectedOptions() []HTMLOptionElement
	SelectedIndex() int
	SetSelectedIndex(int)
	Value() string
	SetValue(string)
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string

	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)

	Labels() []Node
}

https://www.w3.org/TR/html52/sec-forms.html#htmlselectelement

func NewHTMLSelectElement

func NewHTMLSelectElement() HTMLSelectElement

type HTMLSlotElement

type HTMLSlotElement interface {
	HTMLElement

	Name() string
	SetName(string)
	AssignedNodes(...AssignedNodesOptions) []Node
	AssignedElements(...AssignedNodesOptions) []Element
}

https://html.spec.whatwg.org/multipage/scripting.html#htmlslotelement

type HTMLSourceElement

type HTMLSourceElement interface {
	HTMLElement

	Src() string
	SetSrc(string)
	Type() string
	SetType(string)
	SrcSet() string
	SetSrcSet(string)
	Sizes() string
	SetSizes(string)
	Media() string
	SetMedia(string)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlsourceelement

func NewHTMLSourceElement

func NewHTMLSourceElement() HTMLSourceElement

type HTMLStyleElement

type HTMLStyleElement interface {
	HTMLElement
	LinkStyle

	Media() string
	SetMedia(string)
	Nonce() string
	SetNonce(string)
	Type() string
	SetType(string)
}

https://www.w3.org/TR/html52/document-metadata.html#htmlstyleelement

func NewHTMLStyleElement

func NewHTMLStyleElement() HTMLStyleElement

type HTMLTableCellElement

type HTMLTableCellElement interface {
	HTMLElement

	ColSpan() int
	SetColSpan(int)
	RowSpan() int
	SetRowSpan(int)
	Headers() DOMTokenList
	CellIndex() int
}

https://www.w3.org/TR/html52/tabular-data.html#htmltablecellelement

type HTMLTableColElement

type HTMLTableColElement interface {
	HTMLElement

	Span() int
	SetSpan(int)
}

https://www.w3.org/TR/html52/tabular-data.html#htmltablecolelement

func NewHTMLTableColElement

func NewHTMLTableColElement() HTMLTableColElement

func NewHTMLTableColGroupElement

func NewHTMLTableColGroupElement() HTMLTableColElement

type HTMLTableElement

type HTMLTableElement interface {
	HTMLElement

	Caption() HTMLTableCaptionElement
	SetCaption(HTMLTableCaptionElement)
	CreateCaption() HTMLTableCaptionElement
	DeleteCaption()
	THead() HTMLTableSectionElement
	SetTHead(HTMLTableSectionElement)
	CreateTHead() HTMLTableSectionElement
	DeleteTHead()
	TFoot() HTMLTableSectionElement
	SetTFoot(HTMLTableSectionElement)
	CreateTFoot() HTMLTableSectionElement
	DeleteTFoot()
	TBodies() []HTMLTableSectionElement
	CreateTBody() HTMLTableSectionElement
	Rows() []HTMLTableRowElement
	InsertRow(...int) HTMLTableRowElement
	DeleteRow(int)
}

https://www.w3.org/TR/html52/tabular-data.html#htmltableelement

func NewHTMLTableElement

func NewHTMLTableElement() HTMLTableElement

type HTMLTableHeaderCellElement

type HTMLTableHeaderCellElement interface {
	HTMLTableCellElement

	Scope() string
	SetScope(string)
	Abbr() string
	SetAbbr(string)
}

https://www.w3.org/TR/html52/tabular-data.html#htmltableheadercellelement

func NewHTMLTableHeaderCellElement

func NewHTMLTableHeaderCellElement() HTMLTableHeaderCellElement

type HTMLTableRowElement

type HTMLTableRowElement interface {
	HTMLElement

	RowIndex() int
	SectionRowIndex() int
	Cells() []HTMLTableCellElement
	InsertCell(...int) HTMLTableCellElement // return <td> element
	DeleteCell(int)
}

https://www.w3.org/TR/html52/tabular-data.html#htmltablerowelement

type HTMLTextAreaElement

type HTMLTextAreaElement interface {
	HTMLElement

	Autocomplete() string
	SetAutocomplete(string)
	Autofocus() bool
	SetAutofocus(bool)
	Cols() uint
	SetCols(uint)
	DirName() string
	SetDirName(string)
	Disabled() bool
	SetDisabled(bool)
	Form() HTMLFormElement
	MaxLength() int
	SetMaxLength(int)
	MinLength() int
	SetMinLength(int)
	Name() string
	SetName(string)
	Placeholder() string
	SetPlaceholder(string)
	ReadOnly() bool
	SetReadOnly(bool)
	Required() bool
	SetRequired(bool)
	Rows() uint
	SetRows(uint)
	Wrap() string
	SetWrap(string)
	Type() string
	DefaultValue() string
	SetDefaultValue(string)
	Value() string
	SetValue(string)
	TextLength() uint
	WillValidate() bool
	Validity() ValidityState
	ValidationMessage() string
	CheckValidity() bool
	ReportValidity() bool
	SetCustomValidity(string)
	Labels() []Node
	Select()
	SelectionStart() uint
	SetSelectionStart(uint)
	SelectionEnd() uint
	SetSelectionEnd(uint)
	SelectionDirection() string
	SetSelectionDirection(string)
	SetRangeText(string, ...interface{})
	SetSelectionRange(uint, uint, ...string)
}

https://www.w3.org/TR/html52/sec-forms.html#htmltextareaelement

func NewHTMLTextAreaElement

func NewHTMLTextAreaElement() HTMLTextAreaElement

type HTMLTimeElement

type HTMLTimeElement interface {
	HTMLElement

	DateTime() string
	SetDateTime(string)
}

https://www.w3.org/TR/html52/textlevel-semantics.html#htmltimeelement

func NewHTMLTimeElement

func NewHTMLTimeElement() HTMLTimeElement

type HTMLTitleElement

type HTMLTitleElement interface {
	HTMLElement

	Text() string
	SetText(string)
}

https://www.w3.org/TR/html52/document-metadata.html#htmltitleelement

func NewHTMLTitleElement

func NewHTMLTitleElement() HTMLTitleElement

type HTMLTrackElement

type HTMLTrackElement interface {
	HTMLElement

	Kind() string
	SetKind(string)
	Src() string
	SetSrc(string)
	SrcLang() string
	SetSrcLang(string)
	Label() string
	SetLabel(string)
	Default() bool
	SetDefault(bool)
	ReadyState() HTMLTrackElementReadyState
	Track() TextTrack
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmltrackelement

func NewHTMLTrackElement

func NewHTMLTrackElement() HTMLTrackElement

type HTMLTrackElementReadyState

type HTMLTrackElementReadyState uint16

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmltrackelement

const (
	HTMLTrackElementReadyStateNone    HTMLTrackElementReadyState = 0
	HTMLTrackElementReadyStateLoading HTMLTrackElementReadyState = 1
	HTMLTrackElementReadyStateLoaded  HTMLTrackElementReadyState = 2
	HTMLTrackElementReadyStateError   HTMLTrackElementReadyState = 3
)

type HTMLVideoElement

type HTMLVideoElement interface {
	HTMLMediaElement

	Width() uint
	SetWidth(uint)
	Height() uint
	SetHeight(uint)
	VideoWidth() uint
	VideoHeight() uint
	Poster() string
	SetPoster(string)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlvideoelement

func NewHTMLVideoElement

func NewHTMLVideoElement() HTMLVideoElement

type HashChangeEvent

type HashChangeEvent interface {
	Event

	OldURL() string
	NewURL() string
}

https://www.w3.org/TR/html52/browsers.html#hashchangeevent

func NewHashChangeEvent

func NewHashChangeEvent(typ string, p ...HashChangeEventInit) HashChangeEvent

type HashChangeEventInit

type HashChangeEventInit struct {
	EventInit

	OldUrl string
	NewURL string
}

https://www.w3.org/TR/html52/browsers.html#dictdef-hashchangeeventinit

func (HashChangeEventInit) JSValue

func (p HashChangeEventInit) JSValue() jsValue

type Headers

type Headers interface {
	Append(string, string)
	Delete(string)
	Get(string) string
	Has(string) bool
	Set(string, string)
	Entries() map[string]string
}

func NewHeaders

func NewHeaders(hi ...HeadersInit) Headers

type HeadersInit

type HeadersInit interface{}

https://fetch.spec.whatwg.org/#typedefdef-headersinit typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) HeadersInit; TODO

type History

type History interface {
	Length() uint
	ScrollRestoration() ScrollRestorationType
	SetScrollRestoration(ScrollRestorationType)
	State() interface{}
	Go(...int)
	Back()
	Forward()
	PushState(interface{}, string, ...string)
	ReplaceState(interface{}, string, ...string)
}

https://www.w3.org/TR/html52/browsers.html#history

type HitRegionOptions

type HitRegionOptions struct {
	Id      string
	Control Element
}

https://www.w3.org/TR/2dcontext/#hitregionoptions

func (HitRegionOptions) JSValue

func (p HitRegionOptions) JSValue() jsValue

type IDBCursor

type IDBCursor interface {
	Source() IDBCursorSource
	Direction() IDBCursorDirection
	Key() interface{}
	PrimaryKey() interface{}
	Advance(uint)
	Continue(...interface{})
	ContinuePrimaryKey(interface{}, interface{})
	Update(interface{}) IDBRequest
	Delete() IDBRequest
}

https://www.w3.org/TR/IndexedDB/#idbcursor

type IDBCursorDirection

type IDBCursorDirection string

https://www.w3.org/TR/IndexedDB/#enumdef-idbcursordirection

const (
	IDBCursorDirectionNext       IDBCursorDirection = "next"
	IDBCursorDirectionNextUnique IDBCursorDirection = "nextunique"
	IDBCursorDirectionPrev       IDBCursorDirection = "prev"
	IDBCursorDirectionPrevUnique IDBCursorDirection = "prevunique"
)

type IDBCursorSource

type IDBCursorSource interface{}

(IDBObjectStore or IDBIndex)

type IDBCursorWithValue

type IDBCursorWithValue interface {
	IDBCursor

	Value() interface{}
}

https://www.w3.org/TR/IndexedDB/#idbcursorwithvalue

type IDBDatabase

type IDBDatabase interface {
	EventTarget

	Name() string
	Version() uint
	ObjectStoreNames() []string
	Transaction([]string, ...IDBTransactionMode) IDBTransaction
	Close()
	CreateObjectStore(string, ...IDBObjectStoreParameters) IDBObjectStore
	DeleteObjectStore(string)
	OnAbort(func(Event)) EventHandler
	OnClose(func(Event)) EventHandler
	OnError(func(Event)) EventHandler
	OnVersionchange(func(Event)) EventHandler
}

https://www.w3.org/TR/IndexedDB/#idbdatabase

type IDBFactory

type IDBFactory interface {
	Open(string, ...uint) IDBOpenDBRequest
	DeleteDatabase(string) IDBOpenDBRequest
	Cmp(interface{}, interface{}) int16
}

https://www.w3.org/TR/IndexedDB/#idbfactory

type IDBIndex

type IDBIndex interface {
	Name() string
	SetName(string)
	ObjectStore() IDBObjectStore
	KeyPath() string
	MultiEntry() bool
	Unique() bool
	Get(interface{}) IDBRequest
	Key(interface{}) IDBRequest
	All(...interface{}) IDBRequest
	AllKeys(...interface{}) IDBRequest
	Count(...interface{}) IDBRequest
	OpenCursor(...interface{}) IDBRequest
	OpenKeyCursor(...interface{}) IDBRequest
}

https://www.w3.org/TR/IndexedDB/#idbindex

type IDBIndexParameters

type IDBIndexParameters struct {
	Unique     bool
	MultiEntry bool
}

https://www.w3.org/TR/IndexedDB/#dictdef-idbindexparameters

func (IDBIndexParameters) JSValue

func (p IDBIndexParameters) JSValue() jsValue

type IDBKeyRange

type IDBKeyRange interface {
	Lower() interface{}
	Upper() interface{}
	LowerOpen() bool
	UpperOpen() bool
	Only(interface{}) IDBKeyRange                        //static
	LowerBound(interface{}, ...bool) IDBKeyRange         //static
	UpperBound(interface{}, ...bool) IDBKeyRange         //static
	Bound(interface{}, interface{}, ...bool) IDBKeyRange //static
	Includes(interface{}) bool
}

https://www.w3.org/TR/IndexedDB/#idbkeyrange

type IDBObjectStore

type IDBObjectStore interface {
	Name() string
	SetName(string)
	KeyPath() string // any
	IndexNames() []string
	Transaction() IDBTransaction
	AutoIncrement() bool
	Put(interface{}, ...interface{}) IDBRequest
	Add(interface{}, ...interface{}) IDBRequest
	Delete(interface{}) IDBRequest
	Clear() IDBRequest
	Get(interface{}) IDBRequest
	Key(interface{}) IDBRequest
	All(...interface{}) IDBRequest
	AllKeys(...interface{}) IDBRequest
	Count(...interface{}) IDBRequest
	OpenCursor(...interface{}) IDBRequest
	OpenKeyCursor(...interface{}) IDBRequest
	Index(string) IDBIndex
	CreateIndex(string, string, ...IDBIndexParameters) IDBIndex
	DeleteIndex(string)
}

https://www.w3.org/TR/IndexedDB/#idbobjectstore

type IDBObjectStoreParameters

type IDBObjectStoreParameters struct {
	KeyPath       []string
	AutoIncrement bool
}

https://www.w3.org/TR/IndexedDB/#dictdef-idbobjectstoreparameters

func (IDBObjectStoreParameters) JSValue

func (p IDBObjectStoreParameters) JSValue() jsValue

type IDBOpenDBRequest

type IDBOpenDBRequest interface {
	IDBRequest

	OnBlocked(func(Event)) EventHandler
	OnUpgradeNeeded(func(IDBVersionChangeEvent)) EventHandler
}

https://www.w3.org/TR/IndexedDB/#idbopendbrequest

type IDBRequest

type IDBRequest interface {
	EventTarget

	Result() interface{}
	Error() DOMException
	Source() IDBRequestSource
	Transaction() IDBTransaction
	ReadyState() IDBRequestReadyState
	OnSuccess(func(Event)) EventHandler
	OnError(func(Event)) EventHandler
}

https://www.w3.org/TR/IndexedDB/#idbrequest

type IDBRequestReadyState

type IDBRequestReadyState string

https://www.w3.org/TR/IndexedDB/#enumdef-idbrequestreadystate

const (
	IDBRequestReadyStatePending IDBRequestReadyState = "pending"
	IDBRequestReadyStateDone    IDBRequestReadyState = "done"
)

type IDBRequestSource

type IDBRequestSource interface{}

(IDBObjectStore or IDBIndex or IDBCursor)?

type IDBTransaction

type IDBTransaction interface {
	EventTarget

	ObjectStoreNames() []string // DOMStringList
	Mode() IDBTransactionMode
	DB() IDBDatabase
	Error() DOMException
	ObjectStore(string) IDBObjectStore
	Abort()
	OnAbort(func(Event)) EventHandler
	OnComplete(func(Event)) EventHandler
	OnError(func(Event)) EventHandler
}

https://www.w3.org/TR/IndexedDB/#idbtransaction

type IDBTransactionMode

type IDBTransactionMode string

https://www.w3.org/TR/IndexedDB/#enumdef-idbtransactionmode

const (
	IDBTransactionModeReadOnly      IDBTransactionMode = "readonly"
	IDBTransactionModeReadWrite     IDBTransactionMode = "readwrite"
	IDBTransactionModeVersionChange IDBTransactionMode = "versionchange"
)

type IDBVersionChangeEvent

type IDBVersionChangeEvent interface {
	Event

	OldVersion() uint
	NewVersion() uint
}

https://www.w3.org/TR/IndexedDB/#idbversionchangeevent

func NewIDBVersionChangeEvent

func NewIDBVersionChangeEvent(typ string, vce ...IDBVersionChangeEventInit) IDBVersionChangeEvent

type IDBVersionChangeEventInit

type IDBVersionChangeEventInit struct {
	OldVersion uint
	NewVersion uint // default null
}

https://www.w3.org/TR/IndexedDB/#dictdef-idbversionchangeeventinit

func (IDBVersionChangeEventInit) JSValue

func (p IDBVersionChangeEventInit) JSValue() jsValue

type ImageBitmapOptions

type ImageBitmapOptions struct {
	ImageOrientation     ImageOrientation
	PremultiplyAlpha     PremultiplyAlpha
	ColorSpaceConversion ColorSpaceConversion
	ResizeWidth          uint
	ResizeHeight         uint
	ResizeQuality        ResizeQuality
}

func (ImageBitmapOptions) JSValue

func (p ImageBitmapOptions) JSValue() jsValue

type ImageBitmapSource

type ImageBitmapSource interface{}

https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmapsource typedef (CanvasImageSource or Blob or ImageData) ImageBitmapSource;

type ImageData

type ImageData interface {
	Width() int
	Height() int
	Data() []byte // TODO Uint8ClampedArray
}

https://www.w3.org/TR/2dcontext/#imagedata

type ImageOrientation

type ImageOrientation string
const (
	ImageOrientationNone  ImageOrientation = "none"
	ImageOrientationFlipY ImageOrientation = "flipY"
)

type InputEvent

type InputEvent interface {
	UIEvent

	Data() string
	IsComposing() bool
}

https://www.w3.org/TR/uievents/#inputevent

func NewInputEvent

func NewInputEvent(typ string, ini ...InputEventInit) InputEvent

type InputEventInit

type InputEventInit struct {
	UIEventInit

	Data        string
	IsComposing bool
}

https://www.w3.org/TR/uievents/#dictdef-inputeventinit

func (InputEventInit) JSValue

func (p InputEventInit) JSValue() jsValue

type KeyLocationCode

type KeyLocationCode uint
const (
	KeyLocationCodeStandard KeyLocationCode = 0x00
	KeyLocationCodeLeft     KeyLocationCode = 0x01
	KeyLocationCodeRight    KeyLocationCode = 0x02
	KeyLocationCodeNumpad   KeyLocationCode = 0x03
)

type KeyboardEvent

type KeyboardEvent interface {
	UIEvent

	Key() string
	Code() string
	Location() KeyLocationCode
	CtrlKey() bool
	ShiftKey() bool
	AltKey() bool
	MetaKey() bool
	Repeat() bool
	IsComposing() bool
	ModifierState(string) bool
}

https://www.w3.org/TR/uievents/#keyboardevent

func NewKeyboardEvent

func NewKeyboardEvent(typ string, ini ...KeyboardEventInit) KeyboardEvent

type KeyboardEventInit

type KeyboardEventInit struct {
	EventModifierInit

	Key         string
	Code        string
	Location    KeyLocationCode
	Repeat      bool
	IsComposing bool
}

https://www.w3.org/TR/uievents/#dictdef-keyboardeventinit

func (KeyboardEventInit) JSValue

func (p KeyboardEventInit) JSValue() jsValue

type LinkStyle

type LinkStyle interface {
	Sheet() StyleSheet
}

https://www.w3.org/TR/cssom-1/#linkstyle

type Location

type Location interface {
	WorkerLocation // getters are same

	SetHref(string)
	SetProtocol(string)
	SetHost(string)
	SetHostname(string)
	SetPort(string)
	SetPathname(string)
	SetSearch(string)
	SetHash(string)
	Assign(string)
	Replace(string)
	Reload()
	AncestorOrigins() []string
}

https://www.w3.org/TR/html52/browsers.html#location

type LongRange

type LongRange struct {
	Max int
	Min int
}

https://www.w3.org/TR/mediacapture-streams/#dom-longrange

func (LongRange) JSValue

func (p LongRange) JSValue() jsValue

type MediaDeviceInfo

type MediaDeviceInfo interface {
	DeviceId() string
	Kind() MediaDeviceKind
	Label() string
	GroupId() string
	ToJSON() string
}

https://w3c.github.io/mediacapture-main/#device-info

type MediaDeviceKind

type MediaDeviceKind string

https://w3c.github.io/mediacapture-main/#dom-mediadevicekind

const (
	MediaDeviceKindAudioInput  MediaDeviceKind = "audioinput"
	MediaDeviceKindAudioOutput MediaDeviceKind = "audiooutput"
	MediaDeviceKindVideoInput  MediaDeviceKind = "videoinput"
)

type MediaErrorCode

type MediaErrorCode uint16

https://www.w3.org/TR/html52/semantics-embedded-content.html#mediaerror

const (
	MediaErrorCodeAborted         MediaErrorCode = 1
	MediaErrorCodeNetwork         MediaErrorCode = 2
	MediaErrorCodeDecode          MediaErrorCode = 3
	MediaErrorCodeSrcNotSupported MediaErrorCode = 4
)

type MediaList

type MediaList interface {
	MediaText() string
	SetMediaText(string)
	Length() uint
	Item(uint) string
	AppendMedium(string)
	DeleteMedium(string)
}

https://drafts.csswg.org/cssom/#medialist

type MediaNetworkState

type MediaNetworkState uint16

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlmediaelement

const (
	MediaNetworkStateEmpty    MediaNetworkState = 0
	MediaNetworkStateIdLe     MediaNetworkState = 1
	MediaNetworkStateLoading  MediaNetworkState = 2
	MediaNetworkStateNoSource MediaNetworkState = 3
)

type MediaProvider

type MediaProvider interface {
	JSValue() jsValue
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#typedefdef-mediaprovider typedef (MediaStream or MediaSource or Blob) MediaProvider;

type MediaQueryList

type MediaQueryList interface {
	EventTarget

	Media() string
	Matches() bool
	OnChange(func(Event)) EventHandler
}

https://drafts.csswg.org/cssom-view/#mediaquerylist

type MediaQueryListEvent

type MediaQueryListEvent interface {
	Event

	Media() string
	Matches() bool
}

https://drafts.csswg.org/cssom-view/#mediaquerylistevent

func NewMediaQueryListEvent

func NewMediaQueryListEvent(typ string, eventInitDict ...MediaQueryListEventInit) MediaQueryListEvent

-------------8<---------------------------------------

type MediaQueryListEventInit

type MediaQueryListEventInit struct {
	EventInit

	Media   string
	Matches bool
}

https://www.w3.org/TR/cssom-view-1/#dictdef-mediaquerylisteventinit

func (MediaQueryListEventInit) JSValue

func (p MediaQueryListEventInit) JSValue() jsValue

type MediaReadyState

type MediaReadyState uint16

https://www.w3.org/TR/html52/semantics-embedded-content.html#htmlmediaelement

const (
	MediaReadyStateHaveNothing     MediaReadyState = 0
	MediaReadyStateHaveMetadata    MediaReadyState = 1
	MediaReadyStateHaveCurrentData MediaReadyState = 2
	MediaReadyStateHaveFutureData  MediaReadyState = 3
	MediaReadyStateHaveEnoughData  MediaReadyState = 4
)

type MediaSource

type MediaSource interface {
	EventTarget

	SourceBuffers() SourceBufferList
	ActiveSourceBuffers() SourceBufferList
	ReadyState() ReadyState
	Duration() float64
	SetDuration(float64)
	OnSourceOpen(func(Event)) EventHandler
	OnSourceEnded(func(Event)) EventHandler
	OnSourceClose(func(Event)) EventHandler
	AddSourceBuffer(string) SourceBuffer
	RemoveSourceBuffer(SourceBuffer)
	EndOfStream(...EndOfStreamError)
	SetLiveSeekableRange(float64, float64)
	ClearLiveSeekableRange()
	IsTypeSupported(string) bool // static
}

https://www.w3.org/TR/media-source/#idl-def-mediasource

type MediaStream

type MediaStream interface {
	EventTarget

	Id() string
	AudioTracks() []MediaStreamTrack
	VideoTracks() []MediaStreamTrack
	Tracks() []MediaStreamTrack
	TrackById(string) MediaStreamTrack
	AddTrack(MediaStreamTrack)
	RemoveTrack(MediaStreamTrack)
	Clone() MediaStream
	Active() bool
	OnAddTrack(func(Event)) EventHandler
	OnRemoveTrack(func(Event)) EventHandler
}

https://w3c.github.io/mediacapture-main/#mediastream

func NewMediaStream

func NewMediaStream(args ...interface{}) MediaStream

type MediaStreamConstraints

type MediaStreamConstraints struct {
	Video bool
	Audio bool
}

https://w3c.github.io/mediacapture-main/#dom-mediastreamconstraints

func (MediaStreamConstraints) JSValue

func (p MediaStreamConstraints) JSValue() jsValue

type MediaStreamTrack

type MediaStreamTrack interface {
	EventTarget

	Kind() string
	Id() string
	Label() string
	Enabled() bool
	SetEnabled(bool)
	Muted() bool
	OnMute(func(Event)) EventHandler
	OnUnMute(func(Event)) EventHandler
	ReadyState() MediaStreamTrackState
	OnEnded(func(Event)) EventHandler
	Clone() MediaStreamTrack
	Stop()
	Capabilities() MediaTrackCapabilities
	Constraints() MediaTrackConstraints
	Settings() MediaTrackSettings
	ApplyConstraints(...MediaTrackConstraints) func() error
	OnOverConstrained(func(Event)) EventHandler
}

https://w3c.github.io/mediacapture-main/#mediastreamtrack

type MediaStreamTrackState

type MediaStreamTrackState string

https://w3c.github.io/mediacapture-main/#dom-mediastreamtrackstate

const (
	MediaStreamTrackStateLive  MediaStreamTrackState = "live"
	MediaStreamTrackStateEnded MediaStreamTrackState = "ended"
)

type MediaTrackCapabilities

type MediaTrackCapabilities struct {
	Width            ULongRange
	Heigth           ULongRange
	AspectRatio      DoubleRange
	FrameRate        DoubleRange
	FacingMode       []string
	ResizeMode       []string
	Volume           DoubleRange
	SampleRate       ULongRange
	SampleSize       ULongRange
	EchoCancellation []bool
	AutoGainControl  []bool
	NoiseSuppression []bool
	Latency          DoubleRange
	ChannelCount     ULongRange
	DeviceId         string
	GroupId          string
}

https://w3c.github.io/mediacapture-main/#dom-mediatrackcapabilities

func (MediaTrackCapabilities) JSValue

func (p MediaTrackCapabilities) JSValue() jsValue

type MediaTrackConstraintSet

type MediaTrackConstraintSet struct {
	Width            ConstrainULong
	Height           ConstrainULong
	AspectRatio      ConstrainDouble
	FrameRate        ConstrainDouble
	FacingMode       ConstrainDOMString
	ResizeMode       ConstrainDOMString
	Volume           ConstrainDouble
	SampleRate       ConstrainULong
	SampleSize       ConstrainULong
	EchoCancellation ConstrainBoolean
	AutoGainControl  ConstrainBoolean
	NoiseSuppression ConstrainBoolean
	Latency          ConstrainDouble
	ChannelCount     ConstrainULong
	DeviceId         ConstrainDOMString
	GroupId          ConstrainDOMString
}

https://www.w3.org/TR/mediacapture-streams/#dom-mediatrackconstraintset

func (MediaTrackConstraintSet) JSValue

func (p MediaTrackConstraintSet) JSValue() jsValue

type MediaTrackSettings

type MediaTrackSettings struct {
	Width            int
	Height           int
	AspectRatio      float64
	FrameRate        float64
	FacingMode       string
	ResizeMode       string
	Volume           float64
	SampleRate       int
	SampleSize       int
	EchoCancellation bool
	AutoGainControl  bool
	NoiseSuppression bool
	Latency          float64
	ChannelCount     int
	DeviceId         string
	GroupId          string
}

https://www.w3.org/TR/mediacapture-streams/#dom-mediatracksettings

func (MediaTrackSettings) JSValue

func (p MediaTrackSettings) JSValue() jsValue

type MediaTrackSupportedConstraints

type MediaTrackSupportedConstraints struct {
	Width            bool
	Height           bool
	AspectRatio      bool
	FrameRate        bool
	FacingMode       bool
	ResizeMode       bool
	Volume           bool
	SampleRate       bool
	SampleSize       bool
	EchoCancellation bool
	AutoGainControl  bool
	NoiseSuppression bool
	Latency          bool
	ChannelCount     bool
	DeviceId         bool
	GroupId          bool
}

https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints

func (MediaTrackSupportedConstraints) JSValue

func (p MediaTrackSupportedConstraints) JSValue() jsValue

type MessageEvent

type MessageEvent interface {
	Event

	Data() interface{}
	Origin() string
	LastEventId() string
	Source() MessageEventSource
	Ports() []MessagePort
	InitMessageEvent(string, ...interface{})
}

https://html.spec.whatwg.org/multipage/comms.html#messageevent

type MessageEventInit

type MessageEventInit struct {
	EventInit

	Data        interface{}
	Origin      string
	LastEventId string
	Source      MessageEventSource
	Ports       []MessagePort
}

https://html.spec.whatwg.org/multipage/comms.html#messageeventinit

func (MessageEventInit) JSValue

func (p MessageEventInit) JSValue() jsValue

type MessageEventSource

type MessageEventSource interface{}

https://html.spec.whatwg.org/multipage/comms.html#messageeventsource typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;

type MessagePort

type MessagePort interface {
	EventTarget

	PostMessage(interface{}) // optional sequence<object> transfer = []
	Start()
	Close()

	OnMessage(func(MessageEvent)) EventHandler
	OnMessageError(func(Event)) EventHandler
}

https://html.spec.whatwg.org/multipage/web-messaging.html#messageport

type MidiPermissionDescriptor

type MidiPermissionDescriptor interface {
	PermissionDescriptor

	Sysex() bool
}

func NewMidiPermissionDescriptor

func NewMidiPermissionDescriptor(name PermissionName, sysex bool) MidiPermissionDescriptor

type MouseEvent

type MouseEvent interface {
	UIEvent

	ScreenX() float64
	ScreenY() float64
	ClientX() float64
	ClientY() float64
	CtrlKey() bool
	ShiftKey() bool
	AltKey() bool
	MetaKey() bool
	Button() int
	Buttons() int
	RelatedTarget() EventTarget
	ModifierState(string) bool
	PageX() float64
	PageY() float64
	X() float64
	Y() float64
	OffsetX() float64
	OffsetY() float64
}

https://www.w3.org/TR/uievents/#mouseevent https://www.w3.org/TR/cssom-view-1/#extensions-to-the-mouseevent-interface

func NewMouseEvent

func NewMouseEvent(typ string, ini ...MouseEventInit) MouseEvent

type MouseEventInit

type MouseEventInit struct {
	EventModifierInit

	ScreenX       float64
	ScreenY       float64
	ClientX       float64
	ClientY       float64
	Button        int
	Buttons       int
	RelatedTarget EventTarget
}

https://www.w3.org/TR/uievents/#mouseevent

func (MouseEventInit) JSValue

func (p MouseEventInit) JSValue() jsValue

type MutationObserver

type MutationObserver interface {
	Observe(Node, ...MutationObserverInit)
	Disconnect()
	TakeRecords() []MutationRecord
}

https://dom.spec.whatwg.org/#mutationobserver

func NewMutationObserver

func NewMutationObserver(cb MutationCallback) MutationObserver

type MutationObserverInit

type MutationObserverInit struct {
	ChildList             bool
	Attributes            bool
	CharacterData         bool
	SubTree               bool
	AttributeOldValue     bool
	CharacterDataOldValue bool
	AttributeFilter       []string
}

https://dom.spec.whatwg.org/#dictdef-mutationobserverinit

func (MutationObserverInit) JSValue

func (p MutationObserverInit) JSValue() jsValue

type MutationRecord

type MutationRecord interface {
	Type() string
	Target() Node
	AddedNodes() []Node
	RemovedNodes() []Node
	PreviousSibling() Node
	NextSibling() Node
	AttributeName() string
	AttributeNamespace() string
	OldValue() string
}

https://dom.spec.whatwg.org/#mutationrecord

type NamedNodeMap

type NamedNodeMap interface {
	Length() uint
	Item(uint) Attr
	NamedItem(string) Attr
	NamedItemNS(string, string) Attr
	SetNamedItem(Attr) Attr
	SetNamedItemNS(Attr) Attr
	RemoveNamedItem(string) Attr
	RemoveNamedItemNS(string, string) Attr
}

https://dom.spec.whatwg.org/#namednodemap

type NavigatorConcurrentHardware interface {
	HardwareConcurrency() uint
}

https://w3c.github.io/workers/#navigatorconcurrenthardware

type NavigatorContentUtils interface {
	RegisterProtocolHandler(string, string, string)
	RegisterContentHandler(string, string, string)
	IsProtocolHandlerRegistered(string, string) string
	IsContentHandlerRegistered(string, string) string
	UnregisterProtocolHandler(string, string)
	UnregisterContentHandler(string, string)
}

https://www.w3.org/TR/html52/webappapis.html#navigatorcontentutils

type NavigatorCookies interface {
	CookieEnabled() bool
}

https://www.w3.org/TR/html52/webappapis.html#navigatorcookies

type NavigatorID interface {
	AppCodeName() string
	AppName() string
	AppVersion() string
	Platform() string
	Product() string
	UserAgent() string
}

https://www.w3.org/TR/html52/webappapis.html#navigatorid

type NavigatorLanguage interface {
	Language() string
	Languages() []string
}

https://www.w3.org/TR/html52/webappapis.html#navigatorlanguage

type NavigatorOnLine interface {
	OnLine() bool
}

https://www.w3.org/TR/html52/browsers.html#navigatoronline

type Node

type Node interface {
	EventTarget

	NodeType() NodeType
	NodeName() string
	BaseURI() string
	IsConnected() bool
	OwnerDocument() Document
	RootNode(...RootNodeOptions) Node
	ParentNode() Node
	ParentElement() Element
	HasChildNodes() bool
	ChildNodes() []Node
	FirstChild() Node
	LastChild() Node
	PreviousSibling() Node
	NextSibling() Node
	NodeValue() string
	SetNodeValue(string)
	TextContent() string
	SetTextContent(string)
	Normalize()
	CloneNode(...bool) Node // deep bool = default false
	IsEqualNode(Node) bool
	IsSameNode(Node) bool
	CompareDocumentPosition(Node) DocumentPosition
	Contains(Node) bool
	LookupPrefix(string) string
	LookupNamespaceURI(string) string
	IsDefaultNamespace(string) bool
	InsertBefore(Node, Node) Node
	AppendChild(Node) Node
	ReplaceChild(Node, Node) Node
	RemoveChild(Node) Node
}

https://dom.spec.whatwg.org/#node

type NodeFilterResult

type NodeFilterResult uint16

https://dom.spec.whatwg.org/#interface-nodefilter

const (
	NodeFilterResultAccept NodeFilterResult = 1
	NodeFilterResultReject NodeFilterResult = 2
	NodeFilterResultSkip   NodeFilterResult = 3
)

type NodeFilterShow

type NodeFilterShow uint

https://dom.spec.whatwg.org/#interface-nodefilter

const (
	NodeFilterShowAll                   NodeFilterShow = 0xFFFFFFFF
	NodeFilterShowElement               NodeFilterShow = 0x1
	NodeFilterShowAttribute             NodeFilterShow = 0x2
	NodeFilterShowText                  NodeFilterShow = 0x4
	NodeFilterShowCDATASection          NodeFilterShow = 0x8
	NodeFilterShowEntityReference       NodeFilterShow = 0x10
	NodeFilterShowEntity                NodeFilterShow = 0x20
	NodeFilterShowProcessingInstruction NodeFilterShow = 0x40
	NodeFilterShowComment               NodeFilterShow = 0x80
	NodeFilterShowDocument              NodeFilterShow = 0x100
	NodeFilterShowDocumentType          NodeFilterShow = 0x200
	NodeFilterShowDocumentFragment      NodeFilterShow = 0x400
	NodeFilterShowNotation              NodeFilterShow = 0x800
)

type NodeIterator

type NodeIterator interface {
	Root() Node
	ReferenceNode() Node
	PointerBeforeReferenceNode() bool
	WhatToShow() NodeFilterShow
	Filter() NodeFilter
	NextNode() Node
	PreviousNode() Node
	Detach()
}

https://dom.spec.whatwg.org/#nodeiterator

type NodeList

type NodeList interface {
	Item(uint) Node
	Length() uint
	Entries() []Node
}

https://dom.spec.whatwg.org/#nodelist

type NodeType

type NodeType uint
const (
	NodeTypeElement               NodeType = 1
	NodeTypeAttribute             NodeType = 2
	NodeTypeText                  NodeType = 3
	NodeTypeCDATASection          NodeType = 4
	NodeTypeEntityReference       NodeType = 5
	NodeTypeEntity                NodeType = 6
	NodeTypeProcessingInstruction NodeType = 7
	NodeTypeComment               NodeType = 8
	NodeTypeDocument              NodeType = 9
	NodeTypeDocumentType          NodeType = 10
	NodeTypeDocumentFragment      NodeType = 11
	NodeTypeNotation              NodeType = 12
)

type NonDocumentTypeChildNode

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

https://dom.spec.whatwg.org/#nondocumenttypechildnode

type NonElementParentNode

type NonElementParentNode interface {
	ElementById(string) Element
	// non standart helper method, eliminites type asserts to HTMLElement
	HTMLElementById(string) HTMLElement
}

https://dom.spec.whatwg.org/#nonelementparentnode

type OnErrorEventHandler

type OnErrorEventHandler func(OnErrorEventHandlerArg) interface{}

https://html.spec.whatwg.org/multipage/webappapis.html#onerroreventhandler TODO: can we use ErrorEvent for this

type OnErrorEventHandlerArg

type OnErrorEventHandlerArg struct {
	Message Event
	Source  string
	LineNo  int
	ColNo   int
	Error   interface{}
}

type PageTransitionEvent

type PageTransitionEvent interface {
	Event

	Persisted() bool
}

https://www.w3.org/TR/html52/browsers.html#pagetransitionevent

func NewPageTransitionEvent

func NewPageTransitionEvent(typ string, p ...PageTransitionEventInit) PageTransitionEvent

type PageTransitionEventInit

type PageTransitionEventInit struct {
	EventInit

	Persisted bool
}

https://www.w3.org/TR/html52/browsers.html#dictdef-pagetransitioneventinit

func (PageTransitionEventInit) JSValue

func (p PageTransitionEventInit) JSValue() jsValue

type ParentNode

type ParentNode interface {
	Children() []Element
	FirstElementChild() Element
	LastElementChild() Element
	ChildElementCount() int
	Prepend(...interface{})
	Append(...interface{})
	QuerySelector(string) Element
	QuerySelectorAll(string) []Node
}

https://dom.spec.whatwg.org/#parentnode

type PermissionDescriptor

type PermissionDescriptor interface {
	Name() PermissionName
	JSValue() jsValue
}

func NewPermissionDescriptor

func NewPermissionDescriptor(name PermissionName) PermissionDescriptor

type PermissionName

type PermissionName string
const (
	PermissionNameGeolocation        PermissionName = "geolocation"
	PermissionNameNotifications      PermissionName = "notifications"
	PermissionNamePush               PermissionName = "push"
	PermissionNameMidi               PermissionName = "midi"
	PermissionNameCamera             PermissionName = "camera"
	PermissionNameMicrophone         PermissionName = "microphone"
	PermissionNameSpeaker            PermissionName = "speaker"
	PermissionNameDeviceInfo         PermissionName = "device-info"
	PermissionNameBackgroundFetch    PermissionName = "background-fetch"
	PermissionNameBackgroundSync     PermissionName = "background-sync"
	PermissionNameBluetooth          PermissionName = "bluetooth"
	PermissionNamePersistentStorage  PermissionName = "persistent-storage"
	PermissionNameAmbientLightSensor PermissionName = "ambient-light-sensor"
	PermissionNameAccelerometer      PermissionName = "accelerometer"
	PermissionNameGyroscope          PermissionName = "gyroscope"
	PermissionNameMagnetometer       PermissionName = "magnetometer"
	PermissionNameClipboard          PermissionName = "clipboard"
	PermissionNameDisplay            PermissionName = "display"
)

type PermissionSetParameters

type PermissionSetParameters struct {
	Descriptor PermissionDescriptor
	State      PermissionState
	OneRealm   bool
}

func (PermissionSetParameters) JSValue

func (p PermissionSetParameters) JSValue() jsValue

type PermissionState

type PermissionState string
const (
	PermissionStateGranted PermissionState = "granted"
	PermissionStateDenied  PermissionState = "denied"
	PermissionStatePrompt  PermissionState = "prompt"
)

type PermissionStatus

type PermissionStatus interface {
	EventTarget

	State() PermissionState
	OnChange(func(Event)) EventHandler
}

type Permissions

type Permissions interface {
	Query(PermissionDescriptor) func() (PermissionStatus, error)
}

type PipeToOptions

type PipeToOptions struct {
	PreventClose  bool
	PreventAbort  bool
	PreventCancel bool
}

func (PipeToOptions) JSValue

func (p PipeToOptions) JSValue() jsValue

type PointerEvent

type PointerEvent interface {
	MouseEvent

	PointerId() int
	Width() float64
	Height() float64
	Pressure() float64
	TangentialPressure() float64
	TiltX() int
	TiltY() int
	Twist() int
	PointerType() string
	IsPrimary() bool
}

https://www.w3.org/TR/pointerevents/#pointerevent-interface

func NewPointerEvent

func NewPointerEvent(typ string, pei ...PointerEventInit) PointerEvent

type PointerEventInit

type PointerEventInit struct {
	MouseEventInit

	PointerId          int
	Width              float64
	Height             float64
	Pressure           float64
	TangentialPressure float64
	TiltX              int
	TiltY              int
	Twist              int
	PointerType        string
	IsPrimary          bool
}

https://www.w3.org/TR/pointerevents/#pointerevent-interface

func (PointerEventInit) JSValue

func (p PointerEventInit) JSValue() jsValue

type PopStateEvent

type PopStateEvent interface {
	Event

	State() interface{}
	SetState(interface{})
}

https://www.w3.org/TR/html52/browsers.html#popstateevent

func NewPopStateEvent

func NewPopStateEvent(typ string, p ...PopStateEventInit) PopStateEvent

type PopStateEventInit

type PopStateEventInit struct {
	EventInit

	State interface{}
}

https://www.w3.org/TR/html52/browsers.html#dictdef-popstateeventinit

func (PopStateEventInit) JSValue

func (p PopStateEventInit) JSValue() jsValue

type Position

type Position interface {
	Coords() Coordinates
	Timestamp() time.Time // DOMTimeStamp
}

https://w3c.github.io/geolocation-api/#dom-position

type PositionCallback

type PositionCallback interface {
	Callback
}

https://w3c.github.io/geolocation-api/#dom-positioncallback

func NewPositionCallback

func NewPositionCallback(fn func(Position)) PositionCallback

type PositionErrorCode

type PositionErrorCode uint
const (
	PositionErrorCodePermissionDenied    PositionErrorCode = 1
	PositionErrorCodePositionUnavailable PositionErrorCode = 2
	PositionErrorCodeTimeout             PositionErrorCode = 3
)

type PositionOptions

type PositionOptions struct {
	EnableHighAccuracy bool
	Timeout            int
	MaximumAge         int
}

https://w3c.github.io/geolocation-api/#dom-positionoptions

func (PositionOptions) JSValue

func (p PositionOptions) JSValue() jsValue

type PremultiplyAlpha

type PremultiplyAlpha string
const (
	PremultiplyAlphaNone        PremultiplyAlpha = "none"
	PremultiplyAlphaPremultiply PremultiplyAlpha = "premultiply"
	PremultiplyAlphaDefault     PremultiplyAlpha = "default"
)

type ProgressEvent

type ProgressEvent interface {
	Event

	LengthComputable() bool
	Loaded() uint
	Total() uint
}

https://xhr.spec.whatwg.org/#interface-progressevent

func NewProgressEvent

func NewProgressEvent(typ string, pei ...ProgressEventInit) ProgressEvent

type ProgressEventInit

type ProgressEventInit struct {
	EventInit

	LengthComputable bool
	Loaded           uint
	Total            uint
}

https://xhr.spec.whatwg.org/#progresseventinit

func (ProgressEventInit) JSValue

func (p ProgressEventInit) JSValue() jsValue

type Promise

type Promise interface{}

for compiled successfully TODO: remove when types completed

type PushPermissionDescriptor

type PushPermissionDescriptor interface {
	PermissionDescriptor

	UserVisibleOnly() bool
}

func NewPushPermissionDescriptor

func NewPushPermissionDescriptor(name PermissionName, userVisibleOnly bool) PushPermissionDescriptor

type RTCBundlePolicy

type RTCBundlePolicy string

http://w3c.github.io/webrtc-pc/#dom-rtcbundlepolicy

const (
	RTCBundlePolicyBalanced  RTCBundlePolicy = "balanced"
	RTCBundlePolicyMaxCompat RTCBundlePolicy = "max-compat"
	RTCBundlePolicyMaxBundle RTCBundlePolicy = "max-bundle"
)

type RTCCertificate

type RTCCertificate interface {
	Expires() time.Time
	SupportedAlgorithms() []AlgorithmIdentifier // static
	Fingerprints() []RTCDtlsFingerprint

	JSValue() jsValue
}

http://w3c.github.io/webrtc-pc/#dom-rtccertificate

type RTCCertificateExpiration

type RTCCertificateExpiration struct {
	Expires time.Time
}

http://w3c.github.io/webrtc-pc/#dom-rtccertificateexpiration

func (RTCCertificateExpiration) JSValue

func (p RTCCertificateExpiration) JSValue() jsValue

type RTCCodecStats

type RTCCodecStats interface {
	RTCStats

	PayloadType() uint
	CodecType() RTCCodecType
	TransportId() string
	MimeType() string
	ClockRate() uint
	Channels() uint
	SdpFmtpLine() string
	Implementation() string
}

https://www.w3.org/TR/webrtc-stats/#dom-rtccodecstats

type RTCCodecType

type RTCCodecType string

https://www.w3.org/TR/webrtc-stats/#dom-rtccodectype

const (
	RTCCodecTypeEncode RTCCodecType = "encode"
	RTCCodecTypeDecode RTCCodecType = "decode"
)

type RTCConfiguration

type RTCConfiguration struct {
	IceServers           []RTCIceServer
	IceTransportPolicy   RTCIceTransportPolicy // all
	BundlePolicy         RTCBundlePolicy       // balanced
	RTCPMuxPolicy        RTCRtcpMuxPolicy      // require
	PeerIdentity         string
	Certificates         []RTCCertificate
	IceCandidatePoolSize uint8 // 0
}

http://w3c.github.io/webrtc-pc/#dom-rtcconfiguration

func (RTCConfiguration) JSValue

func (p RTCConfiguration) JSValue() jsValue

type RTCDTMFSender

type RTCDTMFSender interface {
	EventTarget

	InsertDTMF(string, ...uint)
	OnToneChange(func(RTCDTMFToneChangeEvent)) EventHandler
	CanInsertDTMF() bool
	ToneBuffer() string
}

http://w3c.github.io/webrtc-pc/#dom-rtcdtmfsender

type RTCDTMFToneChangeEvent

type RTCDTMFToneChangeEvent interface {
	Event

	Tone() string
}

http://w3c.github.io/webrtc-pc/#dom-rtcdtmftonechangeevent

func NewRTCDTMFToneChangeEvent

func NewRTCDTMFToneChangeEvent(typ string, eventInitDict RTCDTMFToneChangeEventInit) RTCDTMFToneChangeEvent

type RTCDTMFToneChangeEventInit

type RTCDTMFToneChangeEventInit struct {
	EventInit

	Tone string
}

http://w3c.github.io/webrtc-pc/#dom-rtcdtmftonechangeeventinit

func (RTCDTMFToneChangeEventInit) JSValue

func (p RTCDTMFToneChangeEventInit) JSValue() jsValue

type RTCDataChannel

type RTCDataChannel interface {
	EventTarget

	Label() string
	Ordered() bool
	MaxPacketLifeTime() uint16
	MaxRetransmits() uint16
	Protocol() string
	Negotiated() bool
	Id() uint16
	Priority() RTCPriorityType
	ReadyState() RTCDataChannelState
	BufferedAmount() uint
	BufferedAmountLowThreshold() uint
	OnOpen(func(Event)) EventHandler
	OnBufferedAmountLow(func(Event)) EventHandler
	OnError(func(RTCErrorEvent)) EventHandler
	OnClose(func(Event)) EventHandler
	Close()
	OnMessage(func(MessageEvent)) EventHandler
	BinaryType() string
	Send(interface{}) // string, Blob, ArrayBuffer, ArrayBufferView
}

http://w3c.github.io/webrtc-pc/#dom-rtcdatachannel

type RTCDataChannelEvent

type RTCDataChannelEvent interface {
	Event

	Channel() RTCDataChannel
}

http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelevent

func NewRTCDataChannelEvent

func NewRTCDataChannelEvent(typ string, eventInitDict RTCDataChannelEventInit) RTCDataChannelEvent

type RTCDataChannelEventInit

type RTCDataChannelEventInit struct {
	EventInit

	Channel RTCDataChannel
}

http://w3c.github.io/webrtc-pc/#dom-rtcdatachanneleventinit

func (RTCDataChannelEventInit) JSValue

func (p RTCDataChannelEventInit) JSValue() jsValue

type RTCDataChannelInit

type RTCDataChannelInit struct {
	Ordered           bool //true
	MaxPacketLifeTime uint16
	MaxRetransmits    uint16
	Protocol          string // ""
	Negotiated        bool   // false
	Id                uint16
	Priority          RTCPriorityType // "low"
}

http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelinit

func (RTCDataChannelInit) JSValue

func (p RTCDataChannelInit) JSValue() jsValue

type RTCDataChannelState

type RTCDataChannelState string
const (
	RTCDataChannelStateConnecting RTCDataChannelState = "connecting"
	RTCDataChannelStateOpen       RTCDataChannelState = "open"
	RTCDataChannelStateClosing    RTCDataChannelState = "closing"
	RTCDataChannelStateClosed     RTCDataChannelState = "closed"
)

type RTCDegradationPreference

type RTCDegradationPreference string

http://w3c.github.io/webrtc-pc/#dom-rtcdegradationpreference

const (
	RTCDegradationPreferenceMaintainFramerate  RTCDegradationPreference = "maintain-framerate"
	RTCDegradationPreferenceMaintainResolution RTCDegradationPreference = "maintain-resolution"
	RTCDegradationPreferenceBalanced           RTCDegradationPreference = "balanced"
)

type RTCDtlsFingerprint

type RTCDtlsFingerprint struct {
	Algorithm string
	Value     string
}

http://w3c.github.io/webrtc-pc/#dom-rtcdtlsfingerprint

func (RTCDtlsFingerprint) JSValue

func (p RTCDtlsFingerprint) JSValue() jsValue

type RTCDtlsTransport

type RTCDtlsTransport interface {
	EventTarget

	IceTransport() RTCIceTransport
	State() RTCDtlsTransportState
	RemoteCertificates() []ArrayBuffer
	OnStateChange(func(Event)) EventHandler
	OnError(func(RTCErrorEvent)) EventHandler
}

http://w3c.github.io/webrtc-pc/#dom-rtcdtlstransport

type RTCDtlsTransportState

type RTCDtlsTransportState string

http://w3c.github.io/webrtc-pc/#dom-rtcdtlstransportstate

const (
	RTCDtlsTransportStateNew        RTCDtlsTransportState = "new"
	RTCDtlsTransportStateConnecting RTCDtlsTransportState = "connecting"
	RTCDtlsTransportStateConnected  RTCDtlsTransportState = "connected"
	RTCDtlsTransportStateClosed     RTCDtlsTransportState = "closed"
	RTCDtlsTransportStateFailed     RTCDtlsTransportState = "failed"
)

type RTCDtxStatus

type RTCDtxStatus string

http://w3c.github.io/webrtc-pc/#dom-rtcdtxstatus

const (
	RTCDtxStatusDisabled RTCDtxStatus = "disabled"
	RTCDtxStatusEnabled  RTCDtxStatus = "enabled"
)

type RTCError

type RTCError interface {
	ErrorDetail() RTCErrorDetailType
	SDPLineNumber() int
	HttpRequestStatusCode() int
	SCTPCauseCode() int
	ReceivedAlert() uint
	SentAlert() uint
	Message() string
	Name() string
}

http://w3c.github.io/webrtc-pc/#dfn-rtcerror

func NewRTCError

func NewRTCError(detail RTCErrorDetailType, message string) RTCError

type RTCErrorDetailType

type RTCErrorDetailType string

http://w3c.github.io/webrtc-pc/#dom-rtcerrordetailtype

const (
	RTCErrorDetailTypeDataChannelFailure          RTCErrorDetailType = "data-channel-failure"
	RTCErrorDetailTypeDTLSFailure                 RTCErrorDetailType = "dtls-failure"
	RTCErrorDetailTypeFingerprintFailure          RTCErrorDetailType = "fingerprint-failure"
	RTCErrorDetailTypeIdpBadScriptFailure         RTCErrorDetailType = "idp-bad-script-failure"
	RTCErrorDetailTypeIdpExecutionFailure         RTCErrorDetailType = "idp-execution-failure"
	RTCErrorDetailTypeIdpLoadFailure              RTCErrorDetailType = "idp-load-failure"
	RTCErrorDetailTypeIdpNeedLogin                RTCErrorDetailType = "idp-need-login"
	RTCErrorDetailTypeIdpTimeout                  RTCErrorDetailType = "idp-timeout"
	RTCErrorDetailTypeIdpTLSFailure               RTCErrorDetailType = "idp-tls-failure"
	RTCErrorDetailTypeIdpTokenExpired             RTCErrorDetailType = "idp-token-expired"
	RTCErrorDetailTypeIdpTokenInvalid             RTCErrorDetailType = "idp-token-invalid"
	RTCErrorDetailTypeSCTPFailure                 RTCErrorDetailType = "sctp-failure"
	RTCErrorDetailTypeSDPSyntaxError              RTCErrorDetailType = "sdp-syntax-error"
	RTCErrorDetailTypeHardwareEncoderNotAvailable RTCErrorDetailType = "hardware-encoder-not-available"
	RTCErrorDetailTypeHardwareEncoderError        RTCErrorDetailType = "hardware-encoder-error"
)

type RTCErrorEvent

type RTCErrorEvent interface {
	Event

	Error() RTCError
}

http://w3c.github.io/webrtc-pc/#dom-rtcerrorevent

func NewRTCErrorEvent

func NewRTCErrorEvent(typ string, eventInitDict RTCErrorEventInit) RTCErrorEvent

type RTCErrorEventInit

type RTCErrorEventInit struct {
	EventInit

	Error RTCError
}

http://w3c.github.io/webrtc-pc/#dom-rtcerroreventinit

func (RTCErrorEventInit) JSValue

func (p RTCErrorEventInit) JSValue() jsValue

type RTCIceCandidate

type RTCIceCandidate interface {
	Candidate() string
	SdpMid() string
	SdpMLineIndex() uint16
	Foundation() string
	Component() RTCIceComponent
	Priority() uint
	Address() string
	Protocol() RTCIceProtocol
	Port() uint16
	Type() RTCIceCandidateType
	TcpType() RTCIceTcpCandidateType
	RelatedAddress() string
	RelatedPort() uint16
	UsernameFragment() string
	ToJSON() RTCIceCandidateInit
}

http://w3c.github.io/webrtc-pc/#dom-rtcicecandidate

func NewRTCIceCandidate

func NewRTCIceCandidate(candidateInitDict ...RTCIceCandidateInit) RTCIceCandidate

type RTCIceCandidateInit

type RTCIceCandidateInit struct {
	Candidate        string
	SdpMid           string
	SdpMLineIndex    uint16
	UsernameFragment string
}

http://w3c.github.io/webrtc-pc/#dom-rtcicecandidateinit

func (RTCIceCandidateInit) JSValue

func (p RTCIceCandidateInit) JSValue() jsValue

type RTCIceCandidatePair

type RTCIceCandidatePair struct {
	Local  RTCIceCandidate
	Remote RTCIceCandidate
}

http://w3c.github.io/webrtc-pc/#dom-rtcicecandidatepair

func (RTCIceCandidatePair) JSValue

func (p RTCIceCandidatePair) JSValue() jsValue

type RTCIceCandidateType

type RTCIceCandidateType string

http://w3c.github.io/webrtc-pc/#dom-rtcicecandidatetype

const (
	RTCIceCandidateTypeHost  RTCIceCandidateType = "host"
	RTCIceCandidateTypeSrflx RTCIceCandidateType = "srflx"
	RTCIceCandidateTypePrflx RTCIceCandidateType = "prflx"
	RTCIceCandidateTypeRelay RTCIceCandidateType = "relay"
)

type RTCIceComponent

type RTCIceComponent string

http://w3c.github.io/webrtc-pc/#dom-rtcicecomponent

const (
	RTCIceComponentRTP  RTCIceComponent = "rtp"
	RTCIceComponentRTCP RTCIceComponent = "rtcp"
)

type RTCIceConnectionState

type RTCIceConnectionState string

http://w3c.github.io/webrtc-pc/#dom-rtciceconnectionstate

const (
	RTCIceConnectionStateClosed       RTCIceConnectionState = "closed"
	RTCIceConnectionStateFailed       RTCIceConnectionState = "failed"
	RTCIceConnectionStateDisconnected RTCIceConnectionState = "disconnected"
	RTCIceConnectionStateNew          RTCIceConnectionState = "new"
	RTCIceConnectionStateChecking     RTCIceConnectionState = "checking"
	RTCIceConnectionStateCompleted    RTCIceConnectionState = "completed"
	RTCIceConnectionStateConnected    RTCIceConnectionState = "connected"
)

type RTCIceCredentialType

type RTCIceCredentialType string

http://w3c.github.io/webrtc-pc/#dom-rtcicecredentialtype

const (
	RTCIceCredentialTypePassword RTCIceCredentialType = "password"
	RTCIceCredentialTypeOAuth    RTCIceCredentialType = "oauth"
)

type RTCIceGathererState

type RTCIceGathererState string

http://w3c.github.io/webrtc-pc/#dom-rtcicegathererstate

const (
	RTCIceGathererStateNew       RTCIceGathererState = "new"
	RTCIceGathererStateGathering RTCIceGathererState = "gathering"
	RTCIceGathererStateComplete  RTCIceGathererState = "complete"
)

type RTCIceGatheringState

type RTCIceGatheringState string

http://w3c.github.io/webrtc-pc/#dom-rtcicegatheringstate

const (
	RTCIceGatheringStateNew       RTCIceGatheringState = "new"
	RTCIceGatheringStateGathering RTCIceGatheringState = "gathering"
	RTCIceGatheringStateComplete  RTCIceGatheringState = "complete"
)

type RTCIceParameters

type RTCIceParameters struct {
	UsernameFragment string
	Password         string
}

http://w3c.github.io/webrtc-pc/#dom-rtciceparameters

func (RTCIceParameters) JSValue

func (p RTCIceParameters) JSValue() jsValue

type RTCIceProtocol

type RTCIceProtocol string

http://w3c.github.io/webrtc-pc/#dom-rtciceprotocol

const (
	RTCIceProtocolUDP RTCIceProtocol = "udp"
	RTCIceProtocolTCP RTCIceProtocol = "tcp"
)

type RTCIceRole

type RTCIceRole string

http://w3c.github.io/webrtc-pc/#dom-rtcicerole

const (
	RTCIceRoleControlling RTCIceRole = "controlling"
	RTCIceRoleControlled  RTCIceRole = "controlled"
)

type RTCIceServer

type RTCIceServer struct {
	URLs           []string // required (DOMString or sequence<DOMString>)
	Username       string
	Credential     string               //  (DOMString or RTCOAuthCredential) TODO
	CredentialType RTCIceCredentialType // "password"
}

http://w3c.github.io/webrtc-pc/#dom-rtciceserver

func (RTCIceServer) JSValue

func (p RTCIceServer) JSValue() jsValue

type RTCIceTcpCandidateType

type RTCIceTcpCandidateType string

http://w3c.github.io/webrtc-pc/#dom-rtcicetcpcandidatetype

const (
	RTCIceTcpCandidateTypeActive  RTCIceTcpCandidateType = "active"
	RTCIceTcpCandidateTypePassive RTCIceTcpCandidateType = "passive"
	RTCIceTcpCandidateTypeSo      RTCIceTcpCandidateType = "so"
)

type RTCIceTransport

type RTCIceTransport interface {
	EventTarget

	Role() RTCIceRole
	Component() RTCIceComponent
	State() RTCIceTransportState
	GatheringState() RTCIceGathererState
	LocalCandidates() []RTCIceCandidate
	RemoteCandidates() []RTCIceCandidate
	SelectedCandidatePair() RTCIceCandidatePair
	LocalParameters() RTCIceParameters
	RemoteParameters() RTCIceParameters
	OnStateChange(func(Event)) EventHandler
	OnGatheringStateChange(func(Event)) EventHandler
	OnSelectedCandidatePairChange(func(Event)) EventHandler
}

http://w3c.github.io/webrtc-pc/#dom-rtcicetransport

type RTCIceTransportPolicy

type RTCIceTransportPolicy string

http://w3c.github.io/webrtc-pc/#dom-rtcicetransportpolicy

const (
	RTCIceTransportPolicyRelay RTCIceTransportPolicy = "relay"
	RTCIceTransportPolicyAll   RTCIceTransportPolicy = "all"
)

type RTCIceTransportState

type RTCIceTransportState string

http://w3c.github.io/webrtc-pc/#dom-rtcicetransportstate

const (
	RTCIceTransportStateNew          RTCIceTransportState = "new"
	RTCIceTransportStateChecking     RTCIceTransportState = "checking"
	RTCIceTransportStateConnected    RTCIceTransportState = "connected"
	RTCIceTransportStateCompleted    RTCIceTransportState = "completed"
	RTCIceTransportStateDisconnected RTCIceTransportState = "disconnected"
	RTCIceTransportStateFailed       RTCIceTransportState = "failed"
	RTCIceTransportStateClosed       RTCIceTransportState = "closed"
)

type RTCOAuthCredential

type RTCOAuthCredential struct {
	MacKey      string
	AccessToken string
}

http://w3c.github.io/webrtc-pc/#dom-rtcoauthcredential

func (RTCOAuthCredential) JSValue

func (p RTCOAuthCredential) JSValue() jsValue

type RTCOfferAnswerOptions

type RTCOfferAnswerOptions struct {
	VoiceActivityDetection bool // true
}

http://w3c.github.io/webrtc-pc/#dom-rtcofferansweroptions

func (RTCOfferAnswerOptions) JSValue

func (p RTCOfferAnswerOptions) JSValue() jsValue

type RTCOfferOptions

type RTCOfferOptions struct {
	RTCOfferAnswerOptions

	IceRestart bool // false
}

http://w3c.github.io/webrtc-pc/#dom-rtcofferoptions

func (RTCOfferOptions) JSValue

func (p RTCOfferOptions) JSValue() jsValue

type RTCPeerConnection

type RTCPeerConnection interface {
	EventTarget

	CreateOffer(...RTCOfferOptions) func() (RTCSessionDescriptionInit, error)
	CreateAnswer(...RTCAnswerOptions) func() (RTCSessionDescriptionInit, error)
	SetLocalDescription(RTCSessionDescriptionInit) func() error
	LocalDescription() RTCSessionDescription
	CurrentLocalDescription() RTCSessionDescription
	PendingLocalDescription() RTCSessionDescription
	SetRemoteDescription(RTCSessionDescriptionInit) func() error
	RemoteDescription() RTCSessionDescription
	CurrentRemoteDescription() RTCSessionDescription
	PendingRemoteDescription() RTCSessionDescription
	AddIceCandidate(RTCIceCandidateInit) func() error
	SignalingState() RTCSignalingState
	IceGatheringState() RTCIceGatheringState
	IceConnectionState() RTCIceConnectionState
	ConnectionState() RTCPeerConnectionState
	CanTrickleIceCandidates() bool
	DefaultIceServers() []RTCIceServer
	Configuration() RTCConfiguration
	SetConfiguration(RTCConfiguration)
	Close()
	OnNegotiationNeeded(func(Event)) EventHandler
	OnIceCandidate(func(RTCPeerConnectionIceEvent)) EventHandler
	OnIceCandidateError(func(RTCPeerConnectionIceErrorEvent)) EventHandler
	OnSignalingStateChange(func(Event)) EventHandler
	OnIceConnectionStateChange(func(Event)) EventHandler
	OnIceGatheringStateChange(func(Event)) EventHandler
	OnConnectionStateChange(func(Event)) EventHandler

	// http://w3c.github.io/webrtc-pc/#sec.cert-mgmt
	//GenerateCertificate(AlgorithmIdentifier) func() (RTCCertificate, error) // static TODO
	GenerateCertificate(string) func() (RTCCertificate, error) // static

	// http://w3c.github.io/webrtc-pc/#rtp-media-api
	Senders() []RTCRtpSender
	Receivers() []RTCRtpReceiver
	Transceivers() []RTCRtpTransceiver
	AddTrack(MediaStreamTrack, ...MediaStream) RTCRtpSender
	RemoveTrack(RTCRtpSender)
	AddTransceiver(MediaStreamTrack, ...RTCRtpTransceiverInit) RTCRtpTransceiver // (MediaStreamTrack or DOMString) trackOrKind
	OnTrack(func(RTCTrackEvent)) EventHandler

	// http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interface-extensions-0
	SCTP() RTCSctpTransport
	CreateDataChannel(string, ...RTCDataChannelInit) RTCDataChannel
	OnDataChannel(func(RTCDataChannelEvent)) EventHandler

	// http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interface-extensions-1
	Stats(...MediaStreamTrack) func() (RTCStatsReport, error)
	OnStatsEnded(func(RTCStatsEvent)) EventHandler
}

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection

func NewRTCPeerConnection

func NewRTCPeerConnection(configuration ...RTCConfiguration) RTCPeerConnection

type RTCPeerConnectionErrorCallback

type RTCPeerConnectionErrorCallback interface {
	Callback
}

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectionerrorcallback callback RTCPeerConnectionErrorCallback = void (DOMException error);

type RTCPeerConnectionIceErrorEvent

type RTCPeerConnectionIceErrorEvent interface {
	Event

	HostCandidate() string
	URL() string
	ErrorCode() uint16
	ErrorText() string
}

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectioniceerrorevent

func NewRTCPeerConnectionIceErrorEvent

func NewRTCPeerConnectionIceErrorEvent(typ string, eventInitDict RTCPeerConnectionIceErrorEventInit) RTCPeerConnectionIceErrorEvent

type RTCPeerConnectionIceErrorEventInit

type RTCPeerConnectionIceErrorEventInit struct {
	EventInit

	HostCandidate string
	URL           string
	ErrorCode     uint16 // required
	StatusText    string
}

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectioniceerroreventinit

func (RTCPeerConnectionIceErrorEventInit) JSValue

func (p RTCPeerConnectionIceErrorEventInit) JSValue() jsValue

type RTCPeerConnectionIceEvent

type RTCPeerConnectionIceEvent interface {
	Event

	Candidate() RTCIceCandidate
	URL() string
}

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectioniceevent

func NewRTCPeerConnectionIceEvent

func NewRTCPeerConnectionIceEvent(typ string, eventInitDict ...RTCPeerConnectionIceEventInit) RTCPeerConnectionIceEvent

type RTCPeerConnectionIceEventInit

type RTCPeerConnectionIceEventInit struct {
	EventInit

	Candidate RTCIceCandidate
	URL       string
}

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectioniceeventinit

func (RTCPeerConnectionIceEventInit) JSValue

func (p RTCPeerConnectionIceEventInit) JSValue() jsValue

type RTCPeerConnectionState

type RTCPeerConnectionState string

http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectionstate

const (
	RTCPeerConnectionStateClosed       RTCPeerConnectionState = "closed"
	RTCPeerConnectionStateFailed       RTCPeerConnectionState = "failed"
	RTCPeerConnectionStateDisconnected RTCPeerConnectionState = "disconnected"
	RTCPeerConnectionStateNew          RTCPeerConnectionState = "new"
	RTCPeerConnectionStateConnecting   RTCPeerConnectionState = "connecting"
	RTCPeerConnectionStateConnected    RTCPeerConnectionState = "connected"
)

type RTCPriorityType

type RTCPriorityType string

http://w3c.github.io/webrtc-pc/#dom-rtcprioritytype

const (
	RTCPriorityTypeVeryLow RTCPriorityType = "very-low"
	RTCPriorityTypeLow     RTCPriorityType = "low"
	RTCPriorityTypeMedium  RTCPriorityType = "medium"
	RTCPriorityTypeHigh    RTCPriorityType = "high"
)

type RTCRtcpMuxPolicy

type RTCRtcpMuxPolicy string

http://w3c.github.io/webrtc-pc/#dom-rtcrtcpmuxpolicy

const (
	RTCRtcpMuxPolicyNegotiate RTCRtcpMuxPolicy = "negotiate"
	RTCRtcpMuxPolicyRequire   RTCRtcpMuxPolicy = "require"
)

type RTCRtcpParameters

type RTCRtcpParameters struct {
	CName       string
	ReducedSize bool
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtcpparameters

func (RTCRtcpParameters) JSValue

func (p RTCRtcpParameters) JSValue() jsValue

type RTCRtpCapabilities

type RTCRtpCapabilities struct {
	Codecs           []RTCRtpCodecCapability
	HeaderExtensions []RTCRtpHeaderExtensionCapability
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpcapabilities

func (RTCRtpCapabilities) JSValue

func (p RTCRtpCapabilities) JSValue() jsValue

type RTCRtpCodecCapability

type RTCRtpCodecCapability struct {
	MimeType    string
	ClockRate   uint
	Channels    uint16
	SDPFmtpLine string
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpcodeccapability

func (RTCRtpCodecCapability) JSValue

func (p RTCRtpCodecCapability) JSValue() jsValue

type RTCRtpCodecParameters

type RTCRtpCodecParameters struct {
	PayloadType uint8
	MimeType    string
	ClockRate   uint
	Channels    uint16
	SDPFmtpLine string
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpcodecparameters

func (RTCRtpCodecParameters) JSValue

func (p RTCRtpCodecParameters) JSValue() jsValue

type RTCRtpCodingParameters

type RTCRtpCodingParameters struct {
	RID string
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpcodingparameters

func (RTCRtpCodingParameters) JSValue

func (p RTCRtpCodingParameters) JSValue() jsValue

type RTCRtpContributingSource

type RTCRtpContributingSource struct {
	Timestamp  float64 // required TODO maybe time.Time
	Source     uint    // required
	AudioLevel float64
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpcontributingsource

func (RTCRtpContributingSource) JSValue

func (p RTCRtpContributingSource) JSValue() jsValue

type RTCRtpEncodingParameters

type RTCRtpEncodingParameters struct {
	RTCRtpCodingParameters

	CodecPayloadType      uint8
	DTX                   RTCDtxStatus
	Active                bool // true
	PTime                 uint
	MaxBitrate            uint
	MaxFramerate          float64
	ScaleResolutionDownBy float64
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpencodingparameters

func (RTCRtpEncodingParameters) JSValue

func (p RTCRtpEncodingParameters) JSValue() jsValue

type RTCRtpHeaderExtensionCapability

type RTCRtpHeaderExtensionCapability struct {
	URI string
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpheaderextensioncapability

func (RTCRtpHeaderExtensionCapability) JSValue

func (p RTCRtpHeaderExtensionCapability) JSValue() jsValue

type RTCRtpHeaderExtensionParameters

type RTCRtpHeaderExtensionParameters struct {
	URI       string
	Id        uint16
	Encrypted bool // false
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpheaderextensionparameters

func (RTCRtpHeaderExtensionParameters) JSValue

func (p RTCRtpHeaderExtensionParameters) JSValue() jsValue

type RTCRtpParameters

type RTCRtpParameters struct {
	HeaderExtensions []RTCRtpHeaderExtensionParameters
	RTCP             RTCRtcpParameters
	Codecs           []RTCRtpCodecParameters
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpparameters

func (RTCRtpParameters) JSValue

func (p RTCRtpParameters) JSValue() jsValue

type RTCRtpReceiveParameters

type RTCRtpReceiveParameters struct {
	RTCRtpParameters

	Encodings []RTCRtpDecodingParameters
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpreceiveparameters

func (RTCRtpReceiveParameters) JSValue

func (p RTCRtpReceiveParameters) JSValue() jsValue

type RTCRtpReceiver

type RTCRtpReceiver interface {
	Track() MediaStreamTrack
	Transport() RTCDtlsTransport
	RTCPTransport() RTCDtlsTransport
	Capabilities(string) RTCRtpCapabilities // static
	Parameters() RTCRtpReceiveParameters
	ContributingSources() []RTCRtpContributingSource
	SynchronizationSources() []RTCRtpSynchronizationSource
	Stats() func() (RTCStatsReport, error)
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpreceiver

type RTCRtpSendParameters

type RTCRtpSendParameters struct {
	RTCRtpParameters

	TransactionId         string
	Encodings             []RTCRtpEncodingParameters
	DegradationPreference RTCDegradationPreference // balanced
	Priority              RTCPriorityType          // low
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpsendparameters

func (RTCRtpSendParameters) JSValue

func (p RTCRtpSendParameters) JSValue() jsValue

type RTCRtpSender

type RTCRtpSender interface {
	Track() MediaStreamTrack
	Transport() RTCDtlsTransport
	RTCPTransport() RTCDtlsTransport
	Capabilities(string) RTCRtpCapabilities // static
	SetParameters(RTCRtpSendParameters) func() error
	Parameters() RTCRtpSendParameters
	ReplaceTrack(MediaStreamTrack) func() error
	SetStreams(...MediaStream)
	Stats() func() (RTCStatsReport, error)

	// http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface-extensions
	DTMF() RTCDTMFSender
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpsender

type RTCRtpSynchronizationSource

type RTCRtpSynchronizationSource struct {
	RTCRtpContributingSource

	VoiceActivityFlag bool
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtpsynchronizationsource

func (RTCRtpSynchronizationSource) JSValue

func (p RTCRtpSynchronizationSource) JSValue() jsValue

type RTCRtpTransceiver

type RTCRtpTransceiver interface {
	Mid() string
	Sender() RTCRtpSender
	Receiver() RTCRtpReceiver
	Stopped() bool
	Direction() RTCRtpTransceiverDirection
	SetDirection(RTCRtpTransceiverDirection)
	CurrentDirection() RTCRtpTransceiverDirection
	Stop()
	SetCodecPreferences([]RTCRtpCodecCapability)
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver

type RTCRtpTransceiverDirection

type RTCRtpTransceiverDirection string

http://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiverdirection

const (
	RTCRtpTransceiverDirectionSendRecv RTCRtpTransceiverDirection = "sendrecv"
	RTCRtpTransceiverDirectionSendOnly RTCRtpTransceiverDirection = "sendonly"
	RTCRtpTransceiverDirectionRecvOnly RTCRtpTransceiverDirection = "recvonly"
	RTCRtpTransceiverDirectionInactive RTCRtpTransceiverDirection = "inactive"
)

type RTCRtpTransceiverInit

type RTCRtpTransceiverInit struct {
	Direction     RTCRtpTransceiverDirection
	Streams       []MediaStream
	SendEncodings []RTCRtpEncodingParameters
}

http://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiverinit

func (RTCRtpTransceiverInit) JSValue

func (p RTCRtpTransceiverInit) JSValue() jsValue

type RTCSctpTransport

type RTCSctpTransport interface {
	EventTarget // this isn't in standart

	Transport() RTCDtlsTransport
	State() RTCSctpTransportState
	MaxMessageSize() float64
	MaxChannels() uint16
	OnStateChange(func(Event)) EventHandler
}

http://w3c.github.io/webrtc-pc/#dom-rtcsctptransport

type RTCSctpTransportState

type RTCSctpTransportState string

http://w3c.github.io/webrtc-pc/#dom-rtcsctptransportstate

const (
	RTCSctpTransportStateConnecting RTCSctpTransportState = "connecting"
	RTCSctpTransportStateConnected  RTCSctpTransportState = "connected"
	RTCSctpTransportStateClosed     RTCSctpTransportState = "closed"
)

type RTCSdpType

type RTCSdpType string

http://w3c.github.io/webrtc-pc/#dom-rtcsdptype

const (
	RTCSdpTypeOffer    RTCSdpType = "offer"
	RTCSdpTypePranswer RTCSdpType = "pranswer"
	RTCSdpTypeAnswer   RTCSdpType = "answer"
	RTCSdpTypeRollback RTCSdpType = "rollback"
)

type RTCSessionDescription

type RTCSessionDescription interface {
	Type() RTCSdpType
	Sdp() string
	ToJSON() string
}

http://w3c.github.io/webrtc-pc/#dom-rtcsessiondescription

func NewRTCSessionDescription

func NewRTCSessionDescription(descriptionInitDict RTCSessionDescriptionInit) RTCSessionDescription

type RTCSessionDescriptionCallback

type RTCSessionDescriptionCallback interface {
	Callback
}

http://w3c.github.io/webrtc-pc/#dom-rtcsessiondescriptioncallback callback RTCSessionDescriptionCallback = void (RTCSessionDescriptionInit description);

type RTCSessionDescriptionInit

type RTCSessionDescriptionInit struct {
	Type RTCSdpType // required
	SDP  string     // ""
}

http://w3c.github.io/webrtc-pc/#dom-rtcsessiondescriptioninit

func (RTCSessionDescriptionInit) JSValue

func (p RTCSessionDescriptionInit) JSValue() jsValue

type RTCSignalingState

type RTCSignalingState string

http://w3c.github.io/webrtc-pc/#dom-rtcsignalingstate

const (
	RTCSignalingStateStable             RTCSignalingState = "stable"
	RTCSignalingStateHaveLocalOffer     RTCSignalingState = "have-local-offer"
	RTCSignalingStateHaveRemoteOffer    RTCSignalingState = "have-remote-offer"
	RTCSignalingStateHaveLocalPranswer  RTCSignalingState = "have-local-pranswer"
	RTCSignalingStateHaveRemotePranswer RTCSignalingState = "have-remote-pranswer"
	RTCSignalingStateClosed             RTCSignalingState = "closed"
)

type RTCStats

type RTCStats interface {
	Timestamp() float64 // required
	Type() RTCStatsType // required
	Id() string         // required
	JSValue() jsValue
}

http://w3c.github.io/webrtc-pc/#dom-rtcstats https://www.w3.org/TR/webrtc-stats/#dfn-stats-object

func NewRTCStats

func NewRTCStats(ts float64, typ RTCStatsType, id string) RTCStats

type RTCStatsEvent

type RTCStatsEvent interface {
	Event

	Report() RTCStatsReport
}

http://w3c.github.io/webrtc-pc/#dom-rtcstatsevent

func NewRTCStatsEvent

func NewRTCStatsEvent(typ string, eventInitDict RTCStatsEventInit) RTCStatsEvent

type RTCStatsEventInit

type RTCStatsEventInit struct {
	EventInit

	Report RTCStatsReport
}

http://w3c.github.io/webrtc-pc/#dom-rtcstatseventinit

func (RTCStatsEventInit) JSValue

func (p RTCStatsEventInit) JSValue() jsValue

type RTCStatsType

type RTCStatsType string

https://www.w3.org/TR/webrtc-stats/#dom-rtcstatstype

const (
	RTCStatsTypeCodec             RTCStatsType = "codec"
	RTCStatsTypeInboundRtp        RTCStatsType = "inbound-rtp"
	RTCStatsTypeOutboundRtp       RTCStatsType = "outbound-rtp"
	RTCStatsTypeRemoteInboundRtp  RTCStatsType = "remote-inbound-rtp"
	RTCStatsTypeRemoteOutboundRtp RTCStatsType = "remote-outbound-rtp"
	RTCStatsTypeCSRC              RTCStatsType = "csrc"
	RTCStatsTypePeerConnection    RTCStatsType = "peer-connection"
	RTCStatsTypeDataChannel       RTCStatsType = "data-channel"
	RTCStatsTypeStream            RTCStatsType = "stream"
	RTCStatsTypeTrack             RTCStatsType = "track"
	RTCStatsTypeSender            RTCStatsType = "sender"
	RTCStatsTypeReceiver          RTCStatsType = "receiver"
	RTCStatsTypeTransport         RTCStatsType = "transport"
	RTCStatsTypeCandidatePair     RTCStatsType = "candidate-pair"
	RTCStatsTypeLocalCandidate    RTCStatsType = "local-candidate"
	RTCStatsTypeRemoteCandidate   RTCStatsType = "remote-candidate"
	RTCStatsTypeCertificate       RTCStatsType = "certificate"
)

type RTCTrackEvent

type RTCTrackEvent interface {
	Event

	Receiver() RTCRtpReceiver
	Track() MediaStreamTrack
	Streams() []MediaStream
	Transceiver() RTCRtpTransceiver
}

http://w3c.github.io/webrtc-pc/#dom-rtctrackevent

func NewRTCTrackEvent

func NewRTCTrackEvent(typ string, eventInitDict RTCTrackEventInit) RTCTrackEvent

type RTCTrackEventInit

type RTCTrackEventInit struct {
	EventInit

	Receiver    RTCRtpReceiver
	Track       MediaStreamTrack
	Streams     []MediaStream
	Transceiver RTCRtpTransceiver
}

http://w3c.github.io/webrtc-pc/#dom-rtctrackeventinit

func (RTCTrackEventInit) JSValue

func (p RTCTrackEventInit) JSValue() jsValue

type Range

type Range interface {
	AbstractRange

	CommonAncestorContainer() Node
	SetStart(Node, uint)
	SetEnd(Node, uint)
	SetStartBefore(Node)
	SetStartAfter(Node)
	SetEndBefore(Node)
	SetEndAfter(Node)
	Collapse(...bool)
	SelectNode(Node)
	SelectNodeContents(Node)
	CompareBoundaryPoints(RangeCompare, Range) int
	DeleteContents()
	ExtractContents() DocumentFragment
	CloneContents() DocumentFragment
	InsertNode(Node)
	SurroundContents(Node)
	CloneRange() Range
	Detach()
	IsPointInRange(Node, uint) bool
	ComparePoint(Node, uint) int
	IntersectsNode(Node) bool

	// https://drafts.csswg.org/cssom-view/#extensions-to-the-range-interface
	ClientRects() []DOMRect
	BoundingClientRect() DOMRect

	// https://www.w3.org/TR/DOM-Parsing/
	CreateContextualFragment(string) DocumentFragment
}

https://dom.spec.whatwg.org/#range

type RangeCompare

type RangeCompare uint16
const (
	RangeCompareStartToStart RangeCompare = 0
	RangeCompareStartToEnd   RangeCompare = 1
	RangeCompareEndToEnd     RangeCompare = 2
	RangeCompareEndToStart   RangeCompare = 3
)

type ReadableStream

type ReadableStream interface {
	Locked() bool
	Cancel(string) Promise // Promise<reason>
	Reader() GenericReader
	PipeThrough(TransformStream, ...PipeToOptions) ReadableStream
	PipeTo(WritableStream, ...PipeToOptions) Promise // Promise<void>
	Tee()

	JSValue() jsValue
}

func NewReadableStream

func NewReadableStream() ReadableStream

type ReadableStreamBYOBReader

type ReadableStreamBYOBReader interface {
	GenericReader
}

type ReadableStreamDefaultReader

type ReadableStreamDefaultReader interface {
	GenericReader
}

type ReadyState

type ReadyState string

https://www.w3.org/TR/media-source/#idl-def-readystate

const (
	ReadyStateClosed ReadyState = "closed"
	ReadyStateOpen   ReadyState = "open"
	ReadyStateEnded  ReadyState = "ended"
)

type ReferrerPolicy

type ReferrerPolicy string
const (
	ReferrerPolicyEmpty                       ReferrerPolicy = ""
	ReferrerPolicyNoReferrer                  ReferrerPolicy = "no-referrer"
	ReferrerPolicyNoReferrerWhenDowngrade     ReferrerPolicy = "no-referrer-when-downgrade"
	ReferrerPolicySameOrigin                  ReferrerPolicy = "same-origin"
	ReferrerPolicyOrigin                      ReferrerPolicy = "origin"
	ReferrerPolicyStrictOrigin                ReferrerPolicy = "strict-origin"
	ReferrerPolicyOriginWhenCrossOrigin       ReferrerPolicy = "origin-when-cross-origin"
	ReferrerPolicyStrictOriginWhenCrossOrigin ReferrerPolicy = "strict-origin-when-cross-origin"
	ReferrerPolicyUnsafeUrl                   ReferrerPolicy = "unsafe-url"
)

type RenderingContext

type RenderingContext interface{}

(CanvasRenderingContext2D or WebGLRenderingContext or WebGL2RenderingContext or ImageBitmapRenderingContext)

type Request

type Request interface {
	Body

	Method() string
	URL() string
	Headers() Headers
	Destination() RequestDestination
	Referrer() string
	ReferrerPolicy() ReferrerPolicy
	Mode() RequestMode
	Credentials() RequestCredentials
	Cache() RequestCache
	Redirect() RequestRedirect
	Integrity() string
	Keepalive() bool
	IsReloadNavigation() bool
	IsHistoryNavigation() bool
	Signal() AbortSignal
	Clone() Request
}

func NewRequest

func NewRequest(info RequestInfo, ri ...RequestInit) Request

type RequestCache

type RequestCache string
const (
	RequestCacheDefault      RequestCache = "default"
	RequestCacheNoStore      RequestCache = "no-store"
	RequestCacheReload       RequestCache = "reload"
	RequestCacheNoCache      RequestCache = "no-cache"
	RequestCacheForceCache   RequestCache = "force-cache"
	RequestCacheOnlyIfCached RequestCache = "only-if-cached"
)

type RequestCredentials

type RequestCredentials string
const (
	RequestCredentialsOmit       RequestCredentials = "omit"
	RequestCredentialsSameOrigin RequestCredentials = "same-origin"
	RequestCredentialsInclude    RequestCredentials = "include"
)

type RequestDestination

type RequestDestination string
const (
	RequestDestinationEmpty        RequestDestination = ""
	RequestDestinationAudio        RequestDestination = "audio"
	RequestDestinationAudioWorklet RequestDestination = "audioworklet"
	RequestDestinationDocument     RequestDestination = "document"
	RequestDestinationEmbed        RequestDestination = "embed"
	RequestDestinationFont         RequestDestination = "font"
	RequestDestinationImage        RequestDestination = "image"
	RequestDestinationManifest     RequestDestination = "manifest"
	RequestDestinationObject       RequestDestination = "object"
	RequestDestinationPaintWorklet RequestDestination = "paintworklet"
	RequestDestinationReport       RequestDestination = "report"
	RequestDestinationScript       RequestDestination = "script"
	RequestDestinationSharedWorker RequestDestination = "sharedworker"
	RequestDestinationStyle        RequestDestination = "style"
	RequestDestinationTrack        RequestDestination = "track"
	RequestDestinationVideo        RequestDestination = "video"
	RequestDestinationWorker       RequestDestination = "worker"
	RequestDestinationXSLT         RequestDestination = "xslt"
)

type RequestInfo

type RequestInfo interface{}

typedef (Request or USVString) RequestInfo;

type RequestInit

type RequestInit struct {
	Method         string
	Headers        HeadersInit
	Body           BodyInit
	Referrer       string
	ReferrerPolicy ReferrerPolicy
	Mode           RequestMode
	Credentials    RequestCredentials
	Cache          RequestCache
	Redirect       RequestRedirect
	Integrity      string
	Keepalive      bool
	Signal         AbortSignal
}

https://fetch.spec.whatwg.org/#requestinit

func (RequestInit) JSValue

func (p RequestInit) JSValue() jsValue

type RequestMode

type RequestMode string
const (
	RequestModeNavigate   RequestMode = "navigate"
	RequestModeSameOrigin RequestMode = "same-origin"
	RequestModeNoCors     RequestMode = "no-cors"
	RequestModeCors       RequestMode = "cors"
)

type RequestRedirect

type RequestRedirect string
const (
	RequestRedirectFollow RequestRedirect = "follow"
	RequestRedirectError  RequestRedirect = "error"
	RequestRedirectManual RequestRedirect = "manual"
)

type ResizeQuality

type ResizeQuality string
const (
	ResizeQualityPixelated ResizeQuality = "pixelated"
	ResizeQualityLow       ResizeQuality = "low"
	ResizeQualityMedium    ResizeQuality = "medium"
	ResizeQualityHigh      ResizeQuality = "high"
)

type Response

type Response interface {
	Body

	Error() Response
	Redirect(string, ...int) Response
	Type() ResponseType
	URL() string
	Redirected() bool
	Status() int
	Ok() bool
	StatusText() string
	Headers() Headers
	Trailer() func() (Headers, bool)
	Clone() Response
}

func NewResponse

func NewResponse(args ...interface{}) Response

type ResponseInit

type ResponseInit struct {
	Status     int
	StatusText string
	Headers    HeadersInit
}

func (ResponseInit) JSValue

func (p ResponseInit) JSValue() jsValue

type ResponseType

type ResponseType string
const (
	ResponseTypeBasic          ResponseType = "basic"
	ResponseTypeCors           ResponseType = "cors"
	ResponseTypeDefault        ResponseType = "default"
	ResponseTypeError          ResponseType = "error"
	ResponseTypeOpaque         ResponseType = "opaque"
	ResponseTypeOpaqueRedirect ResponseType = "opaqueredirect"
)

type RootNodeOptions

type RootNodeOptions struct {
	Composed bool
}

https://dom.spec.whatwg.org/#dictdef-getrootnodeoptions

func (RootNodeOptions) JSValue

func (p RootNodeOptions) JSValue() jsValue

type Screen

type Screen interface {
	AvailWidth() int
	AvailHeight() int
	Width() int
	Height() int
	ColorDepth() uint
	PixelDepth() uint
}

https://drafts.csswg.org/cssom-view/#screen

type ScrollBehavior

type ScrollBehavior string

https://www.w3.org/TR/cssom-view-1/#enumdef-scrollbehavior

const (
	ScrollBehaviorAuto    ScrollBehavior = "auto"
	ScrollBehaviorInstant ScrollBehavior = "instant"
	ScrollBehaviorSmooth  ScrollBehavior = "smooth"
)

type ScrollIntoViewOptions

type ScrollIntoViewOptions struct {
	ScrollOptions

	Block  ScrollLogicalPosition // default "start"
	Inline ScrollLogicalPosition // default "nearest"
}

https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions

func (ScrollIntoViewOptions) JSValue

func (p ScrollIntoViewOptions) JSValue() jsValue

type ScrollLogicalPosition

type ScrollLogicalPosition string

https://www.w3.org/TR/cssom-view-1/#enumdef-scrolllogicalposition

const (
	ScrollLogicalPositionStart   ScrollLogicalPosition = "start"
	ScrollLogicalPositionCenter  ScrollLogicalPosition = "center"
	ScrollLogicalPositionEnd     ScrollLogicalPosition = "end"
	ScrollLogicalPositionNearest ScrollLogicalPosition = "nearest"
)

type ScrollOptions

type ScrollOptions struct {
	Behavior ScrollBehavior // default auto
}

https://www.w3.org/TR/cssom-view-1/#dictdef-scrolloptions

func (ScrollOptions) JSValue

func (p ScrollOptions) JSValue() jsValue

type ScrollRestorationType

type ScrollRestorationType string
const (
	ScrollRestorationTypeAuto   ScrollRestorationType = "auto"
	ScrollRestorationTypeManual ScrollRestorationType = "manual"
)

type ScrollToOptions

type ScrollToOptions struct {
	ScrollOptions

	Left float64
	Top  float64
}

https://www.w3.org/TR/cssom-view-1/#dictdef-scrolltooptions

func (ScrollToOptions) JSValue

func (p ScrollToOptions) JSValue() jsValue

type SelectionMode

type SelectionMode string

https://www.w3.org/TR/html52/sec-forms.html#enumdef-selectionmode

const (
	SelectionModeSelect   SelectionMode = "select"
	SelectionModeStart    SelectionMode = "start"
	SelectionModeEnd      SelectionMode = "end"
	SelectionModePreserve SelectionMode = "preserve"
)

type ShadowRootInit

type ShadowRootInit struct {
	Mode ShadowRootMode
}

https://dom.spec.whatwg.org/#dictdef-shadowrootinit

func (ShadowRootInit) JSValue

func (p ShadowRootInit) JSValue() jsValue

type ShadowRootMode

type ShadowRootMode string
const (
	ShadowRootModeOpen   ShadowRootMode = "open"
	ShadowRootModeClosed ShadowRootMode = "closed"
)

type SharedWorkerGlobalScope

type SharedWorkerGlobalScope interface {
	WorkerGlobalScope

	Name() string
	ApplicationCache() ApplicationCache
	OnConnect(func(Event)) EventHandler
}

https://w3c.github.io/workers/#sharedworkerglobalscope

type Slotable

type Slotable interface {
	AssignedSlot() HTMLSlotElement
}

https://dom.spec.whatwg.org/#slotable

type SourceBuffer

type SourceBuffer interface {
	EventTarget

	Mode() AppendMode
	SetMode(AppendMode)
	Updating() bool
	Buffered() TimeRanges
	TimestampOffset() float64
	SetTimestampOffset(float64)
	AudioTracks() AudioTrackList
	VideoTracks() VideoTrackList
	TextTracks() TextTrackList
	AppendWindowStart() float64
	SetAppendWindowStart(float64)
	AppendWindowEnd() float64
	SetAppendWindowEnd(float64)
	OnUpdatestart(fn func(Event)) EventHandler
	OnUpdate(fn func(Event)) EventHandler
	OnUpdateend(fn func(Event)) EventHandler
	OnError(fn func(Event)) EventHandler
	OnAbort(fn func(Event)) EventHandler
	AppendBuffer(BufferSource)
	Abort()
	Remove(float64, float64)
}

https://www.w3.org/TR/media-source/#idl-def-sourcebuffer

type SourceBufferList

type SourceBufferList interface {
	Length() uint
	OnAddSourceBuffer(func(Event)) EventHandler
	OnRemoveSourceBuffer(func(Event)) EventHandler
	Item(uint) SourceBuffer // getter
}

https://www.w3.org/TR/media-source/#idl-def-sourcebufferlist

type Storage

type Storage interface {
	Length() uint
	Key(uint) string
	Item(string) string
	SetItem(string, string)
	RemoveItem(string)
	Clear()
}

https://www.w3.org/TR/webstorage/#storage-0

func LocalStorage

func LocalStorage() Storage

func SessionStorage

func SessionStorage() Storage

type StorageEvent

type StorageEvent interface {
	Event

	Key() string
	OldValue() string
	NewValue() string
	Url() string
	StorageArea() Storage
}

https://www.w3.org/TR/webstorage/#storageevent

func NewStorageEvent

func NewStorageEvent(typ string, sei ...StorageEventInit) StorageEvent

type StorageEventInit

type StorageEventInit struct {
	EventInit

	Key         string
	OldValue    string
	NewValue    string
	Url         string
	StorageArea Storage
}

https://www.w3.org/TR/webstorage/#storageeventinit

func (StorageEventInit) JSValue

func (p StorageEventInit) JSValue() jsValue

type StyleSheet

type StyleSheet interface {
	Type() string
	Href() string
	OwnerNode() Node // (Element or ProcessingInstruction) common interface is Node
	ParentStyleSheet() StyleSheet
	Title() string
	Media() MediaList
	Disabled() bool
	SetDisabled(bool)
}

https://drafts.csswg.org/cssom/#stylesheet

type StyleSheetList

type StyleSheetList interface {
	Item(uint) CSSStyleSheet
	Length() uint
}

https://drafts.csswg.org/cssom/#stylesheetlist

type SupportedType

type SupportedType string

https://www.w3.org/TR/DOM-Parsing/

const (
	SupportedType_Text_HTML             SupportedType = "text/html"
	SupportedType_Text_XML              SupportedType = "text/xml"
	SupportedType_Application_XML       SupportedType = "application/xml"
	SupportedType_Application_XHTML_XML SupportedType = "application/xhtml+xml"
	SupportedType_Image_SVG_XML         SupportedType = "image/svg+xml"
)

type TexImageSource

type TexImageSource interface{}
	typedef (ImageBitmap or
         ImageData or
         HTMLImageElement or
         HTMLCanvasElement or
         HTMLVideoElement) TexImageSource;

type Text

type Text interface {
	CharacterData
	Slotable
	GeometryUtils

	SplitText(int) Text
	WholeText() string
}

https://dom.spec.whatwg.org/#text

func NewText

func NewText(data ...string) Text

type TextAlign

type TextAlign string
const (
	TextAlignStart  TextAlign = "start"
	TextAlignEnd    TextAlign = "end"
	TextAlignLeft   TextAlign = "left"
	TextAlignRight  TextAlign = "right"
	TextAlignCenter TextAlign = "center"
)

type TextBaseline

type TextBaseline string
const (
	TextBaselineTop         TextBaseline = "top"
	TextBaselineHanging     TextBaseline = "hanging"
	TextBaselineMiddle      TextBaseline = "middle"
	TextBaselineAlphabetic  TextBaseline = "alphabetic"
	TextBaselineIdeographic TextBaseline = "ideographic"
	TextBaselineBottom      TextBaseline = "bottom"
)

type TextDecodeOptions

type TextDecodeOptions struct {
	Stream bool
}

func (TextDecodeOptions) JSValue

func (p TextDecodeOptions) JSValue() jsValue

type TextDecoder

type TextDecoder interface {
	TextDecoderCommon

	Decode(...interface{}) string
}

func NewTextDecoder

func NewTextDecoder(args ...interface{}) TextDecoder

type TextDecoderCommon

type TextDecoderCommon interface {
	Encoding() string
	Fatal() bool
	IgnoreBOM() bool
}

type TextDecoderOptions

type TextDecoderOptions struct {
	Fatal     bool
	IgnoreBOM bool
}

func (TextDecoderOptions) JSValue

func (p TextDecoderOptions) JSValue() jsValue

type TextDecoderStream

type TextDecoderStream interface {
	TextDecoderCommon
	GenericTransformStream
}

func NewTextDecoderStream

func NewTextDecoderStream(args ...interface{}) TextDecoderStream

type TextEncoder

type TextEncoder interface {
	TextEncoderCommon
	Encode(...string) []byte
}

func NewTextEncoder

func NewTextEncoder() TextEncoder

type TextEncoderCommon

type TextEncoderCommon interface {
	Encoding() string
}

type TextEncoderStream

type TextEncoderStream interface {
	TextEncoderCommon
	GenericTransformStream
}

func NewTextEncoderStream

func NewTextEncoderStream() TextEncoderStream

type TextMetrics

type TextMetrics interface {
	Width() float64
}

https://www.w3.org/TR/2dcontext/#textmetrics

type TextTrack

type TextTrack interface {
	EventTarget

	Kind() TextTrackKind
	Label() string
	Language() string
	Id() string
	InBandMetadataTrackDispatchType() string
	Mode() TextTrackMode
	SetMode(TextTrackMode)
	Cues() TextTrackCueList
	ActiveCues() TextTrackCueList
	AddCue(TextTrackCue)
	RemoveCue(TextTrackCue)
	OnCueChange(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#texttrack

type TextTrackCue

type TextTrackCue interface {
	EventTarget

	Track() TextTrack
	Id() string
	SetId(string)
	StartTime() float64
	SetStartTime(float64)
	EndTime() float64
	SetEndTime(float64)
	PauseOnExit() bool
	SetPauseOnExit(bool)
	OnEnter(func(Event)) EventHandler
	OnExit(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#texttrackcue

type TextTrackKind

type TextTrackKind string

https://www.w3.org/TR/html52/semantics-embedded-content.html#enumdef-texttrackkind

const (
	TextTrackKindSubtitles    TextTrackKind = "subtitles"
	TextTrackKindCaptions     TextTrackKind = "captions"
	TextTrackKindDescriptions TextTrackKind = "descriptions"
	TextTrackKindChapters     TextTrackKind = "chapters"
	TextTrackKindMetada       TextTrackKind = "metadata"
)

type TextTrackList

type TextTrackList interface {
	EventTarget

	Length() uint
	Item(uint) TextTrack
	TrackById(string) TextTrack
	OnChange(func(Event)) EventHandler
	OnAddTrack(func(Event)) EventHandler
	OnRemoveTrack(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#texttracklist

type TextTrackMode

type TextTrackMode string

https://www.w3.org/TR/html52/semantics-embedded-content.html#enumdef-texttrackmode

const (
	TextTrackModeDisabled TextTrackMode = "disabled"
	TextTrackModeHidden   TextTrackMode = "hidden"
	TextTrackModeShowing  TextTrackMode = "showing"
)

type TimerCallback

type TimerCallback interface {
	Callback
}

for SetTimeout and SetInterval

func NewTimerCallback

func NewTimerCallback(fn func(...interface{}), args ...interface{}) TimerCallback

type Touch

type Touch interface {
	Identifier() int
	Target() EventTarget
	ScreenX() float64
	ScreenY() float64
	ClientX() float64
	ClientY() float64
	PageX() float64
	PageY() float64
	RadiusX() float64
	RadiusY() float64
	RotationAngle() float64
	Force() float64
	AltitudeAngle() float64
	AzimuthAngle() float64
	TouchType() TouchType
}

https://w3c.github.io/touch-events/#idl-def-touch

func NewTouch

func NewTouch(ti TouchInit) Touch

type TouchEvent

type TouchEvent interface {
	UIEvent

	Touches() []Touch
	TargetTouches() []Touch
	ChangedTouches() []Touch
	AltKey() bool
	MetaKey() bool
	CtrlKey() bool
	ShiftKey() bool
}

https://w3c.github.io/touch-events/#idl-def-touchevent

func NewTouchEvent

func NewTouchEvent(typ string, tei ...TouchEventInit) TouchEvent

type TouchEventInit

type TouchEventInit struct {
	EventModifierInit

	Touches        []Touch
	TargetTouches  []Touch
	ChangedTouches []Touch
}

-------------8<--------------------------------------- https://w3c.github.io/touch-events/#idl-def-touchevent

func (TouchEventInit) JSValue

func (p TouchEventInit) JSValue() jsValue

type TouchInit

type TouchInit struct {
	Identifier    int         // required
	Target        EventTarget // required
	ClientX       float64
	ClientY       float64
	ScreenX       float64
	ScreenY       float64
	PageX         float64
	PageY         float64
	RadiusX       float64
	RadiusY       float64
	RotationAngle float64
	Force         float64
	AltitudeAngle float64
	AzimuthAngle  float64
	TouchType     TouchType
}

https://w3c.github.io/touch-events/#idl-def-touchinit

func (TouchInit) JSValue

func (p TouchInit) JSValue() jsValue

type TouchType

type TouchType string
const (
	TouchTypeDirect TouchType = "direct"
	TouchTypeStylus TouchType = "stylus"
)

type TransformStream

type TransformStream struct {
	Readable ReadableStream
	Writable WritableStream
}

func (TransformStream) JSValue

func (p TransformStream) JSValue() jsValue

type TransitionEvent

type TransitionEvent interface {
	Event

	PropertyName() string
	ElapsedTime() float64
	PseudoElement() string
}

https://drafts.csswg.org/css-transitions/#transitionevent

func NewTransitionEvent

func NewTransitionEvent(typ string, tei ...TransitionEventInit) TransitionEvent

type TransitionEventInit

type TransitionEventInit struct {
	EventInit

	PropertyName  string
	ElapsedTime   float64
	PseudoElement string
}

https://drafts.csswg.org/css-transitions/#dictdef-transitioneventinit

func (TransitionEventInit) JSValue

func (p TransitionEventInit) JSValue() jsValue

type TreeWalker

type TreeWalker interface {
	Root() Node
	WhatToShow() NodeFilterShow
	Filter() NodeFilter
	CurrentNode() Node
	SetCurrentNode(Node)
	ParentNode() Node
	FirstChild() Node
	LastChild() Node
	PreviousSibling() Node
	NextSibling() Node
	PreviousNode() Node
	NextNode() Node
}

https://dom.spec.whatwg.org/#treewalker

type UIEvent

type UIEvent interface {
	Event

	View() Window
	Detail() int
}

https://www.w3.org/TR/uievents/#uievent-uievent

type UIEventInit

type UIEventInit struct {
	EventInit

	View   Window
	Detail int
}

https://www.w3.org/TR/uievents/#dictdef-uieventinit-uieventinit

func (UIEventInit) JSValue

func (p UIEventInit) JSValue() jsValue

type ULongRange

type ULongRange struct {
	Max uint
	Min uint
}

https://w3c.github.io/mediacapture-main/#dom-ulongrange

func (ULongRange) JSValue

func (p ULongRange) JSValue() jsValue

type URL

type URL interface {
	Href() string
	SetHref(string)
	Origin() string
	Protocol() string
	SetProtocol(string)
	Username() string
	SetUsername(string)
	Password() string
	SetPassword(string)
	Host() string
	SetHost(string)
	Hostname() string
	SetHostname(string)
	Port() string
	SetPort(string)
	Pathname() string
	SetPathname(string)
	Search() string
	SetSearch(string)
	SearchParams() URLSearchParams
	Hash() string
	SetHash(string)
	ToJSON() string
}

https://url.spec.whatwg.org/#url

func NewURL

func NewURL(url string, base ...string) URL

type URLSearchParams

type URLSearchParams interface {
	Append(string, string)
	Delete(string)
	Get(string) string // USVString? , maybe return bool,string
	All(string) []string
	Has(string) bool
	Set(string, string)
	Sort()
	String() string

	JSValue() jsValue
}

https://url.spec.whatwg.org/#urlsearchparams

func NewURLSearchParams

func NewURLSearchParams(args ...string) URLSearchParams

type ValidityState

type ValidityState interface {
	ValueMissing() bool
	TypeMismatch() bool
	PatternMismatch() bool
	TooLong() bool
	TooShort() bool
	RangeUnderflow() bool
	RangeOverflow() bool
	StepMismatch() bool
	BadInput() bool
	CustomError() bool
	Valid() bool
}

https://www.w3.org/TR/html52/sec-forms.html#validitystate

type Value

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

func (Value) AppendToSlice

func (p Value) AppendToSlice(t interface{}, wrapfn func(v Value) interface{})

Append's Values to given slice according to wrapfn function expects slice pointer

func (Value) JSValue

func (p Value) JSValue() js.Value

type VideoTrack

type VideoTrack interface {
	Id() string
	Kind() string
	Label() string
	Language() string
	Selected() bool
	SetSelected(bool)
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#videotrack

type VideoTrackList

type VideoTrackList interface {
	EventTarget

	Length() uint
	Item(uint) VideoTrack
	TrackById(string) VideoTrack
	SelectedIndex() int
	OnChange(func(Event)) EventHandler
	OnAddTrack(func(Event)) EventHandler
	OnRemoveTrack(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/semantics-embedded-content.html#videotracklist

type VoidFunction

type VoidFunction interface {
	Callback
}

https://heycam.github.io/webidl/#VoidFunction

func NewVoidFunction

func NewVoidFunction(fn func()) VoidFunction

type WebGLActiveInfo

type WebGLActiveInfo interface {
	Size() int
	Type() GLenum
	Name() string
}

type WebGLBuffer

type WebGLBuffer interface {
	WebGLObject
}

type WebGLContextAttributes

type WebGLContextAttributes struct {
	Alpha                        bool
	Depth                        bool
	Stencil                      bool
	Antialias                    bool
	PremultipliedAlpha           bool
	PreserveDrawingBuffer        bool
	PowerPreference              WebGLPowerPreference
	FailIfMajorPerformanceCaveat bool
}

func (WebGLContextAttributes) JSValue

func (p WebGLContextAttributes) JSValue() jsValue

type WebGLFramebuffer

type WebGLFramebuffer interface {
	WebGLObject
}

type WebGLObject

type WebGLObject interface {
	// contains filtered or unexported methods
}

type WebGLPowerPreference

type WebGLPowerPreference string
const (
	WebGLPowerPreferenceDefault         WebGLPowerPreference = "default"
	WebGLPowerPreferenceLowPower        WebGLPowerPreference = "low-power"
	WebGLPowerPreferenceHighPerformance WebGLPowerPreference = "high-performance"
)

type WebGLProgram

type WebGLProgram interface {
	WebGLObject
}

type WebGLRenderbuffer

type WebGLRenderbuffer interface {
	WebGLObject
}

type WebGLRenderingContext

type WebGLRenderingContext interface {
	WebGLRenderingContextBase
}

type WebGLRenderingContextBase

type WebGLRenderingContextBase interface {
	Canvas() HTMLCanvasElement
	DrawingBufferWidth() int

	GetContextAttributes() WebGLContextAttributes
	IsContextLost() bool
	GetSupportedExtensions() []string
	GetExtension(string) interface{}
	ActiveTexture(GLenum)
	AttachShader(WebGLProgram, WebGLShader)
	BindAttribLocation(WebGLProgram, int, string)
	BindBuffer(GLenum, WebGLBuffer)
	BindFramebuffer(GLenum, WebGLFramebuffer)
	BindRenderbuffer(GLenum, WebGLRenderbuffer)
	BindTexture(GLenum, WebGLTexture)
	BlendColor(float32, float32, float32, float32)
	BlendEquation(GLenum)
	BlendEquationSeparate(GLenum, GLenum)
	BlendFunc(GLenum, GLenum)
	BlendFuncSeparate(GLenum, GLenum, GLenum, GLenum)
	BufferData(GLenum, interface{}, GLenum)
	BufferSubData(GLenum, int, BufferSource)
	CheckFramebufferStatus(GLenum) GLenum
	Clear(GLenum)
	ClearColor(float32, float32, float32, float32)
	ClearDepth(float32)
	ClearStencil(int)
	ColorMask(bool, bool, bool, bool)
	CompileShader(WebGLShader)
	CompressedTexImage2D(GLenum, int, GLenum, int, int, int, ArrayBufferView)
	CompressedTexSubImage2D(GLenum, int, int, int, int, int, GLenum, ArrayBufferView)
	CopyTexImage2D(GLenum, int, GLenum, int, int, int, int, int)
	CopyTexSubImage2D(GLenum, int, int, int, int, int, int, int)
	CreateBuffer() WebGLBuffer
	CreateFramebuffer() WebGLFramebuffer
	CreateProgram() WebGLProgram
	CreateRenderbuffer() WebGLRenderbuffer
	CreateShader(GLenum) WebGLShader
	CreateTexture() WebGLTexture
	CullFace(GLenum)
	DeleteBuffer(WebGLBuffer)
	DeleteFramebuffer(WebGLFramebuffer)
	DeleteProgram(WebGLProgram)
	DeleteRenderbuffer(WebGLRenderbuffer)
	DeleteShader(WebGLShader)
	DeleteTexture(WebGLTexture)
	DepthFunc(GLenum)
	DepthMask(bool)
	DepthRange(float32, float32)
	DetachShader(WebGLProgram, WebGLShader)
	Disable(GLenum)
	DisableVertexAttribArray(uint)
	DrawArrays(GLenum, int, int)
	DrawElements(GLenum, int, GLenum, int)
	Enable(GLenum)
	EnableVertexAttribArray(uint)
	Finish()
	Flush()
	FramebufferRenderbuffer(GLenum, GLenum, GLenum, WebGLRenderbuffer)
	FramebufferTexture2D(GLenum, GLenum, GLenum, WebGLTexture, int)
	FrontFace(GLenum)
	GenerateMipmap(GLenum)
	GetActiveAttrib(WebGLProgram, uint) WebGLActiveInfo
	GetActiveUniform(WebGLProgram, uint) WebGLActiveInfo
	GetAttachedShaders(WebGLProgram) []WebGLShader
	GetAttribLocation(WebGLProgram, string) int
	GetBufferParameter(GLenum, GLenum) interface{}
	GetParameter(GLenum) interface{}
	GetError() GLenum
	GetFramebufferAttachmentParameter(GLenum, GLenum, GLenum)
	GetProgramParameter(WebGLProgram, GLenum) interface{}
	GetProgramInfoLog(WebGLProgram) string
	GetRenderbufferParameter(GLenum, GLenum) interface{}
	GetShaderParameter(WebGLShader, GLenum) interface{}
	GetShaderPrecisionFormat(GLenum, GLenum) WebGLShaderPrecisionFormat
	GetShaderInfoLog(WebGLShader) string
	GetShaderSource(WebGLShader) string
	GetTexParameter(GLenum, GLenum) interface{}
	GetUniform(WebGLProgram, WebGLUniformLocation) interface{}
	GetUniformLocation(WebGLProgram, string) WebGLUniformLocation
	GetVertexAttrib(uint, GLenum) interface{}
	GetVertexAttribOffset(uint, GLenum) int
	Hint(GLenum, GLenum)
	IsBuffer(WebGLBuffer) bool
	IsEnabled(GLenum) bool
	IsFramebuffer(WebGLFramebuffer) bool
	IsProgram(WebGLProgram) bool
	IsRenderbuffer(WebGLRenderbuffer) bool
	IsShader(WebGLShader) bool
	IsTexture(WebGLTexture) bool
	LineWidth(float32)
	LinkProgram(WebGLProgram)
	PixelStorei(GLenum, int)
	PolygonOffset(float32, float32)
	ReadPixels(int, int, int, int, GLenum, GLenum, ArrayBufferView)
	RenderbufferStorage(GLenum, GLenum, int, int)
	SampleCoverage(float32, bool)
	Scissor(int, int, int, int)
	ShaderSource(WebGLShader, string)
	StencilFunc(GLenum, int, uint)
	StencilFuncSeparate(GLenum, GLenum, int, uint)
	StencilMask(uint)
	StencilMaskSeparate(GLenum, uint)
	StencilOp(GLenum, GLenum, GLenum)
	StencilOpSeparate(GLenum, GLenum, GLenum, GLenum)
	TexImage2DBuffer(GLenum, int, int, int, int, int, GLenum, GLenum, ArrayBufferView)
	TexImage2DSource(GLenum, int, int, GLenum, GLenum, TexImageSource)
	TexParameterf(GLenum, GLenum, float32)
	TexParameteri(GLenum, GLenum, int)
	TexSubImage2DBuffer(GLenum, int, int, int, int, int, GLenum, GLenum, ArrayBufferView)
	TexSubImage2DSource(GLenum, int, int, int, GLenum, GLenum, TexImageSource)
	Uniform1f(WebGLUniformLocation, float32)
	Uniform2f(WebGLUniformLocation, float32, float32)
	Uniform3f(WebGLUniformLocation, float32, float32, float32)
	Uniform4f(WebGLUniformLocation, float32, float32, float32, float32)
	Uniform1i(WebGLUniformLocation, int)
	Uniform2i(WebGLUniformLocation, int, int)
	Uniform3i(WebGLUniformLocation, int, int, int)
	Uniform4i(WebGLUniformLocation, int, int, int, int)
	Uniform1fv(WebGLUniformLocation, []float32)
	Uniform2fv(WebGLUniformLocation, []float32)
	Uniform3fv(WebGLUniformLocation, []float32)
	Uniform4fv(WebGLUniformLocation, []float32)
	Uniform1iv(WebGLUniformLocation, []int)
	Uniform2iv(WebGLUniformLocation, []int)
	Uniform3iv(WebGLUniformLocation, []int)
	Uniform4iv(WebGLUniformLocation, []int)
	UniformMatrix2fv(WebGLUniformLocation, bool, []float32)
	UniformMatrix3fv(WebGLUniformLocation, bool, []float32)
	UniformMatrix4fv(WebGLUniformLocation, bool, []float32)
	UseProgram(WebGLProgram)
	ValidateProgram(WebGLProgram)
	VertexAttrib1f(uint, float32)
	VertexAttrib2f(uint, float32, float32)
	VertexAttrib3f(uint, float32, float32, float32)
	VertexAttrib4f(uint, float32, float32, float32, float32)
	VertexAttrib1fv(uint, []float32)
	VertexAttrib2fv(uint, []float32)
	VertexAttrib3fv(uint, []float32)
	VertexAttrib4fv(uint, []float32)
	VertexAttribPointer(uint, int, GLenum, bool, int, int)
	Viewport(int, int, int, int)
	// contains filtered or unexported methods
}

type WebGLShader

type WebGLShader interface {
	WebGLObject
}

type WebGLShaderPrecisionFormat

type WebGLShaderPrecisionFormat interface {
	RangeMin() int
	RangeMax() int
	Precision() int
}

type WebGLTexture

type WebGLTexture interface {
	WebGLObject
}

type WebGLUniformLocation

type WebGLUniformLocation interface{}

type WebSocket

type WebSocket interface {
	EventTarget

	URL() string
	ReadyState() WebSocketReadyState
	BufferedAmount() uint
	OnOpen(func(Event)) EventHandler
	OnError(func(ErrorEvent)) EventHandler
	OnClose(func(CloseEvent)) EventHandler
	Extensions() string
	Protocol() string
	Close(...interface{})
	OnMessage(func(MessageEvent)) EventHandler
	BinaryType() BinaryType
	SetBinaryType(BinaryType)
	Send(interface{})
}

https://html.spec.whatwg.org/multipage/web-sockets.html#websocket

func NewWebSocket

func NewWebSocket(url string, protocols ...string) WebSocket

type WebSocketReadyState

type WebSocketReadyState uint16
const (
	WebSocketReadyStateConnecting WebSocketReadyState = 0
	WebSocketReadyStateOpen       WebSocketReadyState = 1
	WebSocketReadyStateClosing    WebSocketReadyState = 2
	WebSocketReadyStateClosed     WebSocketReadyState = 3
)

type WheelEvent

type WheelEvent interface {
	MouseEvent

	DeltaX() float64
	DeltaY() float64
	DeltaZ() float64
	DeltaMode() DeltaModeCode
}

https://www.w3.org/TR/uievents/#wheelevent

func NewWheelEvent

func NewWheelEvent(typ string, ini ...WheelEventInit) WheelEvent

type WheelEventInit

type WheelEventInit struct {
	MouseEventInit

	DeltaX    float64
	DeltaY    float64
	DeltaZ    float64
	DeltaMode DeltaModeCode
}

https://www.w3.org/TR/uievents/#dictdef-wheeleventinit

func (WheelEventInit) JSValue

func (p WheelEventInit) JSValue() jsValue

type Window

type Window interface {
	EventTarget
	WindowOrWorkerGlobalScope
	GlobalEventHandlers
	WindowEventHandlers

	Console() Console
	Window() WindowProxy
	Self() WindowProxy
	Document() Document
	Name() string
	SetName(string)
	Location() Location
	History() History
	Locationbar() BarProp
	Menubar() BarProp
	Personalbar() BarProp
	Scrollbars() BarProp
	Statusbar() BarProp
	Toolbar() BarProp
	Status() string
	SetStatus(string)
	Close()
	Closed() bool
	Stop()
	Focus()
	Blur()
	Frames() WindowProxy
	Length() uint
	Top() WindowProxy
	Opener() WindowProxy
	Parent() WindowProxy
	FrameElement() Element
	Open(...interface{}) WindowProxy
	Navigator() Navigator
	Alert(...string)
	Confirm(...string) bool
	Prompt(...string) string // message,default
	Print()
	RequestAnimationFrame(FrameRequestCallback) uint
	CancelAnimationFrame(uint)

	// https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface
	MatchMedia(string) MediaQueryList
	Screen() Screen
	MoveTo(int, int)
	MoveBy(int, int)
	ResizeTo(int, int)
	ResizeBy(int, int)
	InnerWidth() int
	InnerHeight() int
	ScrollX() float64
	PageXOffset() float64
	ScrollY() float64
	PageYOffset() float64
	Scroll(...interface{})
	ScrollTo(...interface{})
	ScrollBy(...interface{})
	ScreenX() int
	ScreenLeft() int
	ScreenY() int
	ScreenTop() int
	OuterWidth() int
	OuterHeight() int
	DevicePixelRatio() float64

	// https://drafts.csswg.org/cssom/#extensions-to-the-window-interface
	ComputedStyle(Element, ...string) CSSStyleDeclaration

	// https://drafts.csswg.org/css-pseudo-4/#window-interface
	PseudoElements(Element, string) []CSSPseudoElement
}

https://www.w3.org/TR/html52/browsers.html#the-window-object

func CurrentWindow

func CurrentWindow() Window

type WindowEventHandlers

type WindowEventHandlers interface {
	OnAfterPrint(func(Event)) EventHandler
	OnBeforePrint(func(Event)) EventHandler

	// TODO
	//OnBeforeUnload(func(Event)) OnBeforeUnloadEventHandler
	OnBeforeUnload(func(BeforeUnloadEvent)) EventHandler
	OnHashChange(func(HashChangeEvent)) EventHandler
	OnLanguageChange(func(Event)) EventHandler
	OnMessage(func(MessageEvent)) EventHandler
	OnMessageError(func(Event)) EventHandler
	OnOffline(func(Event)) EventHandler
	OnOnline(func(Event)) EventHandler
	OnPageHide(func(PageTransitionEvent)) EventHandler
	OnPageShow(func(PageTransitionEvent)) EventHandler
	OnPopState(func(PopStateEvent)) EventHandler
	OnRejectionHandled(func(Event)) EventHandler
	OnStorage(func(StorageEvent)) EventHandler
	OnUnhandledRejection(func(Event)) EventHandler
	OnUnload(func(Event)) EventHandler
}

https://www.w3.org/TR/html52/webappapis.html#windoweventhandlers

type WindowLocalStorage

type WindowLocalStorage interface {
	LocalStorage() Storage
}

https://www.w3.org/TR/webstorage/#dom-localstorage

type WindowOrWorkerGlobalScope

type WindowOrWorkerGlobalScope interface {
	Origin() string
	Btoa(string) string
	Atob(string) string
	SetTimeout(TimerCallback, int) int
	ClearTimeout(int)
	SetInterval(TimerCallback, int) int
	ClearInterval(int)
	QueueMicrotask(VoidFunction)
	CreateImageBitmap(ImageBitmapSource, ...ImageBitmapOptions) func() (ImageBitmap, error)
	CreateImageBitmapWithSize(ImageBitmapSource, int, int, int, int, ...ImageBitmapOptions) func() (ImageBitmap, error)

	// https://www.w3.org/TR/IndexedDB/#idbfactory
	IndexedDB() IDBFactory

	// https://fetch.spec.whatwg.org/#fetch-method
	Fetch(RequestInfo, ...RequestInit) func() (Response, error)
}

https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin

type WindowSessionStorage

type WindowSessionStorage interface {
	SessionStorage() Storage
}

https://www.w3.org/TR/webstorage/#dom-sessionstorage

type Worker

type Worker interface {
	EventTarget
	AbstractWorker

	Terminate()
	PostMessage(interface{}) // optional sequence<Transferable> transfer
	OnMessage(func(Event)) EventHandler
	OnMessageError(func(Event)) EventHandler
}

https://w3c.github.io/workers/#worker

func NewWorker

func NewWorker(scriptURL string, wo ...WorkerOptions) Worker

type WorkerGlobalScope

type WorkerGlobalScope interface {
	EventTarget
	WindowOrWorkerGlobalScope

	Self() WorkerGlobalScope
	Location() WorkerLocation
	Navigator() WorkerNavigator
	ImportScripts(...string)
	Close()
	OnError(func(Event)) EventHandler //OnErrorEventHandler
	OnLanguageChange(func(Event)) EventHandler
	OnOffline(func(Event)) EventHandler
	OnOnline(func(Event)) EventHandler
	OnRejectionHandled(func(Event)) EventHandler
	OnUnhandledRejection(func(Event)) EventHandler
}

https://w3c.github.io/workers/#workerglobalscope0

type WorkerLocation

type WorkerLocation interface {
	Href() string
	Origin() string
	Protocol() string
	Host() string
	Hostname() string
	Port() string
	Pathname() string
	Search() string
	Hash() string
}

https://w3c.github.io/workers/#workerlocation

type WorkerOptions

type WorkerOptions struct {
	Type        WorkerType         // default classic`
	Credentials RequestCredentials // default omit
	Name        string
}

https://w3c.github.io/workers/#dictdef-workeroptions

func (WorkerOptions) JSValue

func (p WorkerOptions) JSValue() jsValue

type WorkerType

type WorkerType string

https://w3c.github.io/workers/#enumdef-workertype

const (
	WorkerTypeClassic WorkerType = "classic"
	WorkerTypeModule  WorkerType = "module"
)

type WritableStream

type WritableStream interface {
	Locked() bool
	Abort(string) Promise // Promise<reason>
	Writer() WritableStreamDefaultWriter
}

type WritableStreamDefaultWriter

type WritableStreamDefaultWriter interface {
	Closed() Promise
	DesiredSize() int
	Ready() Promise
	Abort() Promise // Promise<reason>
	Close() Promise // Promise<undefined>
	ReleaseLock()
	Write([]byte) Promise
}

type XMLDocument

type XMLDocument interface {
	Document
}

https://dom.spec.whatwg.org/#xmldocument

type XMLSerializer

type XMLSerializer interface {
	SerializeToString(Node) string
}

https://www.w3.org/TR/DOM-Parsing/

func NewXMLSerializer

func NewXMLSerializer() XMLSerializer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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