html

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

generated by js/modules/k6/html/gen/gen_elements.go directed by js/modules/k6/html/elements.go; DO NOT EDIT nolint: goconst

Index

Constants

View Source
const (
	ElementNode  = 1
	TextNode     = 3
	CommentNode  = 8
	DocumentNode = 9
	DoctypeNode  = 10
)
View Source
const (
	AnchorTagName          = "a"
	AreaTagName            = "area"
	AudioTagName           = "audio"
	BaseTagName            = "base"
	ButtonTagName          = "button"
	CanvasTagName          = "canvas"
	DataTagName            = "data"
	DataListTagName        = "datalist"
	DelTagName             = "del"
	EmbedTagName           = "embed"
	FieldSetTagName        = "fieldset"
	FormTagName            = "form"
	IFrameTagName          = "iframe"
	ImageTagName           = "img"
	InputTagName           = "input"
	InsTagName             = "ins"
	KeygenTagName          = "keygen"
	LabelTagName           = "label"
	LegendTagName          = "legend"
	LiTagName              = "li"
	LinkTagName            = "link"
	MapTagName             = "map"
	MetaTagName            = "meta"
	MeterTagName           = "meter"
	ObjectTagName          = "object"
	OListTagName           = "ol"
	OptGroupTagName        = "optgroup"
	OptionTagName          = "option"
	OutputTagName          = "output"
	ParamTagName           = "param"
	PreTagName             = "pre"
	ProgressTagName        = "progress"
	QuoteTagName           = "quote"
	ScriptTagName          = "script"
	SelectTagName          = "select"
	SourceTagName          = "source"
	StyleTagName           = "style"
	TableTagName           = "table"
	TableHeadTagName       = "thead"
	TableFootTagName       = "tfoot"
	TableBodyTagName       = "tbody"
	TableRowTagName        = "tr"
	TableColTagName        = "col"
	TableDataCellTagName   = "td"
	TableHeaderCellTagName = "th"
	TextAreaTagName        = "textarea"
	TimeTagName            = "time"
	TitleTagName           = "title"
	TrackTagName           = "track"
	UListTagName           = "ul"
	VideoTagName           = "video"
)

The code generator depends on the TagName constants being defined before the Element structs

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchorElement added in v0.18.0

type AnchorElement struct{ HrefElement }

type AreaElement added in v0.18.0

type AreaElement struct{ HrefElement }

type Attribute added in v0.18.0

type Attribute struct {
	OwnerElement *Element `json:"owner_element"`
	Name         string   `json:"name"`

	Value string `json:"value"`
	// contains filtered or unexported fields
}

func (Attribute) LocalName added in v0.18.0

func (a Attribute) LocalName() string

func (Attribute) NamespaceURI added in v0.18.0

func (a Attribute) NamespaceURI() string

func (Attribute) Prefix added in v0.18.0

func (a Attribute) Prefix() string

type AudioElement added in v0.18.0

type AudioElement struct{ MediaElement }

type BaseElement added in v0.18.0

type BaseElement struct{ Element }

func (BaseElement) Href added in v0.18.0

func (e BaseElement) Href() string

func (BaseElement) Target added in v0.18.0

func (e BaseElement) Target() string

type ButtonElement added in v0.18.0

type ButtonElement struct{ FormFieldElement }

func (ButtonElement) AccessKey added in v0.18.0

func (e ButtonElement) AccessKey() string

func (ButtonElement) Autofocus added in v0.18.0

func (e ButtonElement) Autofocus() bool

func (ButtonElement) Disabled added in v0.18.0

func (e ButtonElement) Disabled() bool

func (ButtonElement) TabIndex added in v0.18.0

func (e ButtonElement) TabIndex() int

func (ButtonElement) Type added in v0.18.0

func (e ButtonElement) Type() string

func (ButtonElement) Value added in v0.18.0

func (b ButtonElement) Value() string

type CanvasElement added in v0.18.0

type CanvasElement struct{ Element }

func (CanvasElement) Height added in v0.18.0

func (c CanvasElement) Height() int

func (CanvasElement) Width added in v0.18.0

func (c CanvasElement) Width() int

type DataElement added in v0.18.0

type DataElement struct{ Element }

func (DataElement) Value added in v0.18.0

func (e DataElement) Value() string

type DataListElement added in v0.18.0

type DataListElement struct{ Element }

func (DataListElement) Options added in v0.18.0

func (d DataListElement) Options() []goja.Value

type DelElement added in v0.18.0

type DelElement struct{ ModElement }

type Element added in v0.18.0

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

func (Element) Attributes added in v0.18.0

func (e Element) Attributes() map[string]Attribute

func (Element) ChildElementCount added in v0.18.0

func (e Element) ChildElementCount() int

func (Element) ChildNodes added in v0.18.0

func (e Element) ChildNodes() []goja.Value

func (Element) Children added in v0.18.0

func (e Element) Children() []goja.Value

func (Element) ClassList added in v0.18.0

func (e Element) ClassList() []string

func (Element) ClassName added in v0.18.0

func (e Element) ClassName() goja.Value

func (Element) Contains added in v0.18.0

func (e Element) Contains(v goja.Value) bool

func (Element) FirstChild added in v0.18.0

func (e Element) FirstChild() goja.Value

func (Element) FirstElementChild added in v0.18.0

func (e Element) FirstElementChild() goja.Value

func (Element) GetAttribute added in v0.18.0

func (e Element) GetAttribute(name string) goja.Value

func (Element) GetAttributeNode added in v0.18.0

func (e Element) GetAttributeNode(name string) goja.Value

func (Element) GetElementsByClassName added in v0.18.0

func (e Element) GetElementsByClassName(name string) []goja.Value

func (Element) GetElementsByTagName added in v0.18.0

func (e Element) GetElementsByTagName(name string) []goja.Value

func (Element) HasAttribute added in v0.18.0

func (e Element) HasAttribute(name string) bool

func (Element) HasAttributes added in v0.18.0

func (e Element) HasAttributes() bool

func (Element) HasChildNodes added in v0.18.0

func (e Element) HasChildNodes() bool

func (Element) Id added in v0.18.0

func (e Element) Id() string

func (Element) InnerHTML added in v0.18.0

func (e Element) InnerHTML() goja.Value

func (Element) IsDefaultNamespace added in v0.18.0

func (e Element) IsDefaultNamespace() bool

func (Element) IsEqualNode added in v0.18.0

func (e Element) IsEqualNode(v goja.Value) bool

func (Element) IsSameNode added in v0.18.0

func (e Element) IsSameNode(v goja.Value) bool

func (Element) Lang added in v0.18.0

func (e Element) Lang() goja.Value

func (Element) LastChild added in v0.18.0

func (e Element) LastChild() goja.Value

func (Element) LastElementChild added in v0.18.0

func (e Element) LastElementChild() goja.Value

func (Element) Matches added in v0.18.0

func (e Element) Matches(selector string) bool

func (Element) NamespaceURI added in v0.18.0

func (e Element) NamespaceURI() string

func (Element) NextElementSibling added in v0.18.0

func (e Element) NextElementSibling() goja.Value

func (Element) NextSibling added in v0.18.0

func (e Element) NextSibling() goja.Value

func (Element) NodeName added in v0.18.0

func (e Element) NodeName() string

func (Element) NodeType added in v0.18.0

func (e Element) NodeType() goja.Value

func (Element) NodeValue added in v0.18.0

func (e Element) NodeValue() goja.Value

func (Element) OwnerDocument added in v0.18.0

func (e Element) OwnerDocument() goja.Value

func (Element) ParentElement added in v0.18.0

func (e Element) ParentElement() goja.Value

func (Element) ParentNode added in v0.18.0

func (e Element) ParentNode() goja.Value

func (Element) PreviousElementSibling added in v0.18.0

func (e Element) PreviousElementSibling() goja.Value

func (Element) PreviousSibling added in v0.18.0

func (e Element) PreviousSibling() goja.Value

func (Element) QuerySelector added in v0.18.0

func (e Element) QuerySelector(selector string) goja.Value

func (Element) QuerySelectorAll added in v0.18.0

func (e Element) QuerySelectorAll(selector string) []goja.Value

func (Element) TextContent added in v0.18.0

func (e Element) TextContent() string

func (Element) ToString added in v0.18.0

func (e Element) ToString() goja.Value

type EmbedElement added in v0.18.0

type EmbedElement struct{ Element }

func (EmbedElement) Height added in v0.18.0

func (e EmbedElement) Height() string

func (EmbedElement) Src added in v0.18.0

func (e EmbedElement) Src() string

func (EmbedElement) Type added in v0.18.0

func (e EmbedElement) Type() string

func (EmbedElement) Width added in v0.18.0

func (e EmbedElement) Width() string

type FieldSetElement added in v0.18.0

type FieldSetElement struct{ Element }

func (FieldSetElement) Disabled added in v0.18.0

func (e FieldSetElement) Disabled() bool

func (FieldSetElement) Elements added in v0.18.0

func (f FieldSetElement) Elements() []goja.Value

func (FieldSetElement) Form added in v0.18.0

func (f FieldSetElement) Form() goja.Value

func (FieldSetElement) Name added in v0.18.0

func (e FieldSetElement) Name() string

func (FieldSetElement) Type added in v0.18.0

func (f FieldSetElement) Type() string

func (FieldSetElement) Validity added in v0.18.0

func (f FieldSetElement) Validity() goja.Value

type FormElement added in v0.18.0

type FormElement struct{ Element }

func (FormElement) AcceptCharset added in v0.18.0

func (e FormElement) AcceptCharset() string

func (FormElement) Action added in v0.18.0

func (e FormElement) Action() string

func (FormElement) Autocomplete added in v0.18.0

func (e FormElement) Autocomplete() string

func (FormElement) Elements added in v0.18.0

func (f FormElement) Elements() []goja.Value

func (FormElement) Encoding added in v0.18.0

func (e FormElement) Encoding() string

func (FormElement) Enctype added in v0.18.0

func (e FormElement) Enctype() string

func (FormElement) Length added in v0.18.0

func (f FormElement) Length() int

func (FormElement) Method added in v0.18.0

func (f FormElement) Method() string

func (FormElement) Name added in v0.18.0

func (e FormElement) Name() string

func (FormElement) NoValidate added in v0.18.0

func (e FormElement) NoValidate() bool

func (FormElement) Target added in v0.18.0

func (e FormElement) Target() string

type FormFieldElement added in v0.18.0

type FormFieldElement struct{ Element }

func (FormFieldElement) Form added in v0.18.0

func (f FormFieldElement) Form() goja.Value

func (FormFieldElement) FormAction added in v0.18.0

func (f FormFieldElement) FormAction() string

func (FormFieldElement) FormEnctype added in v0.18.0

func (f FormFieldElement) FormEnctype() string

nolint: goconst

func (FormFieldElement) FormMethod added in v0.18.0

func (f FormFieldElement) FormMethod() string

func (FormFieldElement) FormNoValidate added in v0.18.0

func (f FormFieldElement) FormNoValidate() bool

func (FormFieldElement) FormTarget added in v0.18.0

func (f FormFieldElement) FormTarget() string

func (FormFieldElement) Labels added in v0.18.0

func (f FormFieldElement) Labels() []goja.Value

func (FormFieldElement) Name added in v0.18.0

func (f FormFieldElement) Name() string

type FormValue added in v0.19.0

type FormValue struct {
	Name  string
	Value goja.Value
}

type HTML

type HTML struct{}

func New added in v0.18.0

func New() *HTML

func (HTML) ParseHTML

func (HTML) ParseHTML(ctx context.Context, src string) (Selection, error)

type HrefElement added in v0.18.0

type HrefElement struct{ Element }

func (HrefElement) AccessKey added in v0.18.0

func (e HrefElement) AccessKey() string

func (HrefElement) Download added in v0.18.0

func (e HrefElement) Download() string

func (HrefElement) Hash added in v0.18.0

func (h HrefElement) Hash() string

func (HrefElement) Host added in v0.18.0

func (h HrefElement) Host() string

func (HrefElement) Hostname added in v0.18.0

func (h HrefElement) Hostname() string

func (HrefElement) Href added in v0.18.0

func (e HrefElement) Href() string

func (HrefElement) HrefLang added in v0.18.0

func (e HrefElement) HrefLang() string

func (HrefElement) Origin added in v0.18.0

func (h HrefElement) Origin() string

nolint: goconst

func (HrefElement) Password added in v0.18.0

func (h HrefElement) Password() string

func (HrefElement) Pathname added in v0.18.0

func (h HrefElement) Pathname() string

func (HrefElement) Port added in v0.18.0

func (h HrefElement) Port() string

func (HrefElement) Protocol added in v0.18.0

func (h HrefElement) Protocol() string

func (HrefElement) ReferrerPolicy added in v0.18.0

func (e HrefElement) ReferrerPolicy() string

func (HrefElement) Rel added in v0.18.0

func (e HrefElement) Rel() string

func (HrefElement) RelList added in v0.18.0

func (h HrefElement) RelList() []string

func (HrefElement) Search added in v0.18.0

func (h HrefElement) Search() string

func (HrefElement) Target added in v0.18.0

func (e HrefElement) Target() string

func (HrefElement) Text added in v0.18.0

func (h HrefElement) Text() string

func (HrefElement) ToString added in v0.18.0

func (e HrefElement) ToString() string

func (HrefElement) Type added in v0.18.0

func (e HrefElement) Type() string

func (HrefElement) Username added in v0.18.0

func (h HrefElement) Username() string

type IFrameElement added in v0.18.0

type IFrameElement struct{ Element }

func (IFrameElement) Allowfullscreen added in v0.18.0

func (e IFrameElement) Allowfullscreen() bool

func (IFrameElement) Height added in v0.18.0

func (e IFrameElement) Height() string

func (IFrameElement) Name added in v0.18.0

func (e IFrameElement) Name() string

func (IFrameElement) ReferrerPolicy added in v0.18.0

func (e IFrameElement) ReferrerPolicy() string

func (IFrameElement) Src added in v0.18.0

func (e IFrameElement) Src() string

func (IFrameElement) Width added in v0.18.0

func (e IFrameElement) Width() string

type ImageElement added in v0.18.0

type ImageElement struct{ Element }

func (ImageElement) Alt added in v0.18.0

func (e ImageElement) Alt() string

func (ImageElement) CrossOrigin added in v0.18.0

func (e ImageElement) CrossOrigin() goja.Value

func (ImageElement) CurrentSrc added in v0.18.0

func (e ImageElement) CurrentSrc() string

func (ImageElement) Height added in v0.18.0

func (e ImageElement) Height() int

func (ImageElement) IsMap added in v0.18.0

func (e ImageElement) IsMap() bool

func (ImageElement) Name added in v0.18.0

func (e ImageElement) Name() string

func (ImageElement) ReferrerPolicy added in v0.18.0

func (e ImageElement) ReferrerPolicy() string

func (ImageElement) Sizes added in v0.18.0

func (e ImageElement) Sizes() string

func (ImageElement) Src added in v0.18.0

func (e ImageElement) Src() string

func (ImageElement) Srcset added in v0.18.0

func (e ImageElement) Srcset() string

func (ImageElement) UseMap added in v0.18.0

func (e ImageElement) UseMap() string

func (ImageElement) Width added in v0.18.0

func (e ImageElement) Width() int

type InputElement added in v0.18.0

type InputElement struct{ FormFieldElement }

func (InputElement) Accept added in v0.18.0

func (e InputElement) Accept() string

func (InputElement) AccessKey added in v0.18.0

func (e InputElement) AccessKey() string

func (InputElement) Alt added in v0.18.0

func (e InputElement) Alt() string

func (InputElement) Autocomplete added in v0.18.0

func (e InputElement) Autocomplete() string

func (InputElement) Autofocus added in v0.18.0

func (e InputElement) Autofocus() bool

func (InputElement) Checked added in v0.18.0

func (e InputElement) Checked() bool

func (InputElement) DefaultChecked added in v0.18.0

func (e InputElement) DefaultChecked() bool

func (InputElement) DefaultValue added in v0.18.0

func (e InputElement) DefaultValue() string

func (InputElement) DirName added in v0.18.0

func (e InputElement) DirName() string

func (InputElement) Disabled added in v0.18.0

func (e InputElement) Disabled() bool

func (InputElement) Height added in v0.18.0

func (e InputElement) Height() string

func (InputElement) List added in v0.18.0

func (i InputElement) List() goja.Value

nolint: goconst

func (InputElement) Max added in v0.18.0

func (e InputElement) Max() string

func (InputElement) MaxLength added in v0.18.0

func (e InputElement) MaxLength() int

func (InputElement) Min added in v0.18.0

func (e InputElement) Min() string

func (InputElement) Multiple added in v0.18.0

func (e InputElement) Multiple() bool

func (InputElement) Name added in v0.18.0

func (e InputElement) Name() string

func (InputElement) Pattern added in v0.18.0

func (e InputElement) Pattern() string

func (InputElement) Placeholder added in v0.18.0

func (e InputElement) Placeholder() string

func (InputElement) Readonly added in v0.18.0

func (e InputElement) Readonly() bool

func (InputElement) Required added in v0.18.0

func (e InputElement) Required() bool

func (InputElement) Size added in v0.18.0

func (e InputElement) Size() int

func (InputElement) Src added in v0.18.0

func (e InputElement) Src() string

func (InputElement) Step added in v0.18.0

func (e InputElement) Step() string

func (InputElement) TabIndex added in v0.18.0

func (e InputElement) TabIndex() int

func (InputElement) Type added in v0.18.0

func (e InputElement) Type() string

func (InputElement) Value added in v0.18.0

func (e InputElement) Value() string

func (InputElement) Width added in v0.18.0

func (e InputElement) Width() string

type InsElement added in v0.18.0

type InsElement struct{ ModElement }

type KeygenElement added in v0.18.0

type KeygenElement struct{ Element }

func (KeygenElement) Autofocus added in v0.18.0

func (e KeygenElement) Autofocus() bool

func (KeygenElement) Challenge added in v0.18.0

func (e KeygenElement) Challenge() string

func (KeygenElement) Disabled added in v0.18.0

func (e KeygenElement) Disabled() bool

func (KeygenElement) Form added in v0.18.0

func (k KeygenElement) Form() goja.Value

func (KeygenElement) Keytype added in v0.18.0

func (e KeygenElement) Keytype() string

func (KeygenElement) Labels added in v0.18.0

func (k KeygenElement) Labels() []goja.Value

func (KeygenElement) Name added in v0.18.0

func (e KeygenElement) Name() string

func (KeygenElement) Type added in v0.18.0

func (e KeygenElement) Type() string

type LabelElement added in v0.18.0

type LabelElement struct{ Element }

func (LabelElement) Control added in v0.18.0

func (l LabelElement) Control() goja.Value

func (LabelElement) Form added in v0.18.0

func (l LabelElement) Form() goja.Value

func (LabelElement) HtmlFor added in v0.18.0

func (e LabelElement) HtmlFor() string

type LegendElement added in v0.18.0

type LegendElement struct{ Element }

func (LegendElement) AccessKey added in v0.18.0

func (e LegendElement) AccessKey() string

func (LegendElement) Form added in v0.18.0

func (l LegendElement) Form() goja.Value

type LiElement added in v0.18.0

type LiElement struct{ Element }

func (LiElement) Type added in v0.18.0

func (e LiElement) Type() string

func (LiElement) Value added in v0.18.0

func (e LiElement) Value() int

type LinkElement added in v0.18.0

type LinkElement struct{ Element }

func (LinkElement) CrossOrigin added in v0.18.0

func (e LinkElement) CrossOrigin() goja.Value

func (LinkElement) Href added in v0.18.0

func (e LinkElement) Href() string

func (LinkElement) Hreflang added in v0.18.0

func (e LinkElement) Hreflang() string

func (LinkElement) Media added in v0.18.0

func (e LinkElement) Media() string

func (LinkElement) ReferrerPolicy added in v0.18.0

func (e LinkElement) ReferrerPolicy() string

func (LinkElement) Rel added in v0.18.0

func (e LinkElement) Rel() string

func (LinkElement) RelList added in v0.18.0

func (l LinkElement) RelList() []string

func (LinkElement) Target added in v0.18.0

func (e LinkElement) Target() string

func (LinkElement) Type added in v0.18.0

func (e LinkElement) Type() string

type MapElement added in v0.18.0

type MapElement struct{ Element }

func (MapElement) Areas added in v0.18.0

func (m MapElement) Areas() []goja.Value

func (MapElement) Images added in v0.18.0

func (m MapElement) Images() []goja.Value

func (MapElement) Name added in v0.18.0

func (e MapElement) Name() string

type MediaElement added in v0.18.0

type MediaElement struct{ Element }

func (MediaElement) Autoplay added in v0.18.0

func (e MediaElement) Autoplay() bool

func (MediaElement) Controls added in v0.18.0

func (e MediaElement) Controls() bool

func (MediaElement) CrossOrigin added in v0.18.0

func (e MediaElement) CrossOrigin() goja.Value

func (MediaElement) CurrentSrc added in v0.18.0

func (e MediaElement) CurrentSrc() string

func (MediaElement) DefaultMuted added in v0.18.0

func (e MediaElement) DefaultMuted() bool

func (MediaElement) Loop added in v0.18.0

func (e MediaElement) Loop() bool

func (MediaElement) MediaGroup added in v0.18.0

func (e MediaElement) MediaGroup() string

func (MediaElement) Muted added in v0.18.0

func (e MediaElement) Muted() bool

func (MediaElement) Preload added in v0.18.0

func (e MediaElement) Preload() string

func (MediaElement) Src added in v0.18.0

func (e MediaElement) Src() string

func (MediaElement) TextTracks added in v0.18.0

func (m MediaElement) TextTracks() []goja.Value

type MetaElement added in v0.18.0

type MetaElement struct{ Element }

func (MetaElement) Content added in v0.18.0

func (e MetaElement) Content() string

func (MetaElement) HttpEquiv added in v0.18.0

func (e MetaElement) HttpEquiv() string

func (MetaElement) Name added in v0.18.0

func (e MetaElement) Name() string

type MeterElement added in v0.18.0

type MeterElement struct{ Element }

func (MeterElement) High added in v0.18.0

func (e MeterElement) High() int

func (MeterElement) Labels added in v0.18.0

func (m MeterElement) Labels() []goja.Value

func (MeterElement) Low added in v0.18.0

func (e MeterElement) Low() int

func (MeterElement) Max added in v0.18.0

func (e MeterElement) Max() int

func (MeterElement) Min added in v0.18.0

func (e MeterElement) Min() int

func (MeterElement) Optimum added in v0.18.0

func (e MeterElement) Optimum() int

type ModElement added in v0.18.0

type ModElement struct{ Element }

func (ModElement) Cite added in v0.18.0

func (e ModElement) Cite() string

func (ModElement) Datetime added in v0.18.0

func (e ModElement) Datetime() string

type OListElement added in v0.18.0

type OListElement struct{ Element }

func (OListElement) Reversed added in v0.18.0

func (e OListElement) Reversed() bool

func (OListElement) Start added in v0.18.0

func (e OListElement) Start() int

func (OListElement) Type added in v0.18.0

func (e OListElement) Type() string

type ObjectElement added in v0.18.0

type ObjectElement struct{ Element }

func (ObjectElement) Data added in v0.18.0

func (e ObjectElement) Data() string

func (ObjectElement) Form added in v0.18.0

func (o ObjectElement) Form() goja.Value

func (ObjectElement) Height added in v0.18.0

func (e ObjectElement) Height() string

func (ObjectElement) Name added in v0.18.0

func (e ObjectElement) Name() string

func (ObjectElement) TabIndex added in v0.18.0

func (e ObjectElement) TabIndex() int

func (ObjectElement) Type added in v0.18.0

func (e ObjectElement) Type() string

func (ObjectElement) TypeMustMatch added in v0.18.0

func (e ObjectElement) TypeMustMatch() bool

func (ObjectElement) UseMap added in v0.18.0

func (e ObjectElement) UseMap() string

func (ObjectElement) Width added in v0.18.0

func (e ObjectElement) Width() string

type OptGroupElement added in v0.18.0

type OptGroupElement struct{ Element }

func (OptGroupElement) Disabled added in v0.18.0

func (e OptGroupElement) Disabled() bool

func (OptGroupElement) Label added in v0.18.0

func (e OptGroupElement) Label() string

type OptionElement added in v0.18.0

type OptionElement struct{ Element }

func (OptionElement) DefaultSelected added in v0.18.0

func (e OptionElement) DefaultSelected() bool

func (OptionElement) Disabled added in v0.18.0

func (o OptionElement) Disabled() bool

func (OptionElement) Form added in v0.18.0

func (o OptionElement) Form() goja.Value

func (OptionElement) Index added in v0.18.0

func (o OptionElement) Index() int

func (OptionElement) Label added in v0.18.0

func (o OptionElement) Label() string

func (OptionElement) Selected added in v0.18.0

func (e OptionElement) Selected() bool

func (OptionElement) Text added in v0.18.0

func (o OptionElement) Text() string

func (OptionElement) Value added in v0.18.0

func (o OptionElement) Value() string

type OutputElement added in v0.18.0

type OutputElement struct{ Element }

func (OutputElement) DefaultValue added in v0.18.0

func (o OutputElement) DefaultValue() string

func (OutputElement) Form added in v0.18.0

func (o OutputElement) Form() goja.Value

func (OutputElement) HtmlFor added in v0.18.0

func (e OutputElement) HtmlFor() string

func (OutputElement) Labels added in v0.18.0

func (o OutputElement) Labels() []goja.Value

func (OutputElement) Name added in v0.18.0

func (e OutputElement) Name() string

func (OutputElement) Type added in v0.18.0

func (e OutputElement) Type() string

func (OutputElement) Value added in v0.18.0

func (o OutputElement) Value() string

type ParamElement added in v0.18.0

type ParamElement struct{ Element }

func (ParamElement) Name added in v0.18.0

func (e ParamElement) Name() string

func (ParamElement) Value added in v0.18.0

func (e ParamElement) Value() string

type PreElement added in v0.18.0

type PreElement struct{ Element }

func (PreElement) Name added in v0.18.0

func (e PreElement) Name() string

func (PreElement) Value added in v0.18.0

func (e PreElement) Value() string

type ProgressElement added in v0.18.0

type ProgressElement struct{ Element }

func (ProgressElement) Labels added in v0.18.0

func (p ProgressElement) Labels() []goja.Value

func (ProgressElement) Max added in v0.18.0

func (p ProgressElement) Max() float64

func (ProgressElement) Position added in v0.18.0

func (p ProgressElement) Position() float64

func (ProgressElement) Value added in v0.18.0

func (p ProgressElement) Value() float64

type QuoteElement added in v0.18.0

type QuoteElement struct{ Element }

func (QuoteElement) Cite added in v0.18.0

func (e QuoteElement) Cite() string

type ScriptElement added in v0.18.0

type ScriptElement struct{ Element }

func (ScriptElement) Async added in v0.18.0

func (e ScriptElement) Async() bool

func (ScriptElement) Charset added in v0.18.0

func (e ScriptElement) Charset() string

func (ScriptElement) CrossOrigin added in v0.18.0

func (e ScriptElement) CrossOrigin() string

func (ScriptElement) Defer added in v0.18.0

func (e ScriptElement) Defer() bool

func (ScriptElement) NoModule added in v0.18.0

func (e ScriptElement) NoModule() bool

func (ScriptElement) Src added in v0.18.0

func (e ScriptElement) Src() string

func (ScriptElement) Text added in v0.18.0

func (s ScriptElement) Text() string

func (ScriptElement) Type added in v0.18.0

func (e ScriptElement) Type() string

type SelectElement added in v0.18.0

type SelectElement struct{ Element }

func (SelectElement) Autofocus added in v0.18.0

func (e SelectElement) Autofocus() bool

func (SelectElement) Disabled added in v0.18.0

func (e SelectElement) Disabled() bool

func (SelectElement) Form added in v0.18.0

func (s SelectElement) Form() goja.Value

func (SelectElement) Labels added in v0.18.0

func (s SelectElement) Labels() []goja.Value

func (SelectElement) Length added in v0.18.0

func (s SelectElement) Length() int

func (SelectElement) Multiple added in v0.18.0

func (e SelectElement) Multiple() bool

func (SelectElement) Name added in v0.18.0

func (e SelectElement) Name() string

func (SelectElement) Options added in v0.18.0

func (s SelectElement) Options() []goja.Value

func (SelectElement) Required added in v0.18.0

func (e SelectElement) Required() bool

func (SelectElement) SelectedIndex added in v0.18.0

func (s SelectElement) SelectedIndex() int

func (SelectElement) SelectedOptions added in v0.18.0

func (s SelectElement) SelectedOptions() []goja.Value

func (SelectElement) Size added in v0.18.0

func (s SelectElement) Size() int

func (SelectElement) TabIndex added in v0.18.0

func (e SelectElement) TabIndex() int

func (SelectElement) Type added in v0.18.0

func (s SelectElement) Type() string

func (SelectElement) Value added in v0.18.0

func (s SelectElement) Value() string

type Selection

type Selection struct {
	URL string `json:"url"`
	// contains filtered or unexported fields
}

func (Selection) Add

func (s Selection) Add(arg interface{}) Selection

func (Selection) Attr

func (s Selection) Attr(name string, def ...goja.Value) goja.Value

func (Selection) Children added in v0.18.0

func (s Selection) Children(def ...string) Selection

func (Selection) Closest added in v0.18.0

func (s Selection) Closest(arg interface{}) Selection

func (Selection) Contents added in v0.18.0

func (s Selection) Contents() Selection

func (Selection) Data added in v0.18.0

func (s Selection) Data(def ...string) goja.Value

When 0 arguments: Read all data from attributes beginning with "data-". When 1 argument: Append argument to "data-" then find for a matching attribute

func (Selection) Each added in v0.18.0

func (s Selection) Each(v goja.Value) Selection

func (Selection) End added in v0.18.0

func (s Selection) End() Selection

func (Selection) Eq added in v0.18.0

func (s Selection) Eq(idx int) Selection

func (Selection) Filter added in v0.18.0

func (s Selection) Filter(v goja.Value) Selection

func (Selection) Find

func (s Selection) Find(arg interface{}) Selection

func (Selection) First added in v0.18.0

func (s Selection) First() Selection

func (Selection) Get added in v0.18.0

func (s Selection) Get(def ...int) goja.Value

func (Selection) Has added in v0.18.0

func (s Selection) Has(arg interface{}) Selection

func (Selection) Html added in v0.18.0

func (s Selection) Html() goja.Value

func (Selection) Index added in v0.18.0

func (s Selection) Index(def ...goja.Value) int

func (Selection) Is added in v0.18.0

func (s Selection) Is(v goja.Value) bool

func (Selection) Last added in v0.18.0

func (s Selection) Last() Selection

func (Selection) Map added in v0.18.0

func (s Selection) Map(v goja.Value) (result []string)

func (Selection) Next added in v0.18.0

func (s Selection) Next(def ...string) Selection

func (Selection) NextAll added in v0.18.0

func (s Selection) NextAll(def ...string) Selection

func (Selection) NextUntil added in v0.18.0

func (s Selection) NextUntil(def ...goja.Value) Selection

func (Selection) Not added in v0.18.0

func (s Selection) Not(v goja.Value) Selection

func (Selection) Parent added in v0.18.0

func (s Selection) Parent(def ...string) Selection

func (Selection) Parents added in v0.18.0

func (s Selection) Parents(def ...string) Selection

func (Selection) ParentsUntil added in v0.18.0

func (s Selection) ParentsUntil(def ...goja.Value) Selection

func (Selection) Prev added in v0.18.0

func (s Selection) Prev(def ...string) Selection

func (Selection) PrevAll added in v0.18.0

func (s Selection) PrevAll(def ...string) Selection

func (Selection) PrevUntil added in v0.18.0

func (s Selection) PrevUntil(def ...goja.Value) Selection

prevUntil, nextUntil and parentsUntil support two arguments with mutable type. 1st argument is the selector. Either a selector string, a Selection object, or nil 2nd argument is the filter. Either a selector string or nil/undefined

func (Selection) Serialize added in v0.19.0

func (s Selection) Serialize() string

func (Selection) SerializeArray added in v0.19.0

func (s Selection) SerializeArray() []FormValue

nolint: goconst

func (Selection) SerializeObject added in v0.19.0

func (s Selection) SerializeObject() map[string]goja.Value

func (Selection) Siblings added in v0.18.0

func (s Selection) Siblings(def ...string) Selection

func (Selection) Size added in v0.18.0

func (s Selection) Size() int

func (Selection) Slice added in v0.18.0

func (s Selection) Slice(start int, def ...int) Selection

func (Selection) Text

func (s Selection) Text() string

func (Selection) ToArray added in v0.18.0

func (s Selection) ToArray() []Selection

func (Selection) Val added in v0.18.0

func (s Selection) Val() goja.Value

nolint: goconst

type SourceElement added in v0.18.0

type SourceElement struct{ Element }

func (SourceElement) KeySystem added in v0.18.0

func (e SourceElement) KeySystem() string

func (SourceElement) Media added in v0.18.0

func (e SourceElement) Media() string

func (SourceElement) Sizes added in v0.18.0

func (e SourceElement) Sizes() string

func (SourceElement) Src added in v0.18.0

func (e SourceElement) Src() string

func (SourceElement) Srcset added in v0.18.0

func (e SourceElement) Srcset() string

func (SourceElement) Type added in v0.18.0

func (e SourceElement) Type() string

type StyleElement added in v0.18.0

type StyleElement struct{ Element }

func (StyleElement) Media added in v0.18.0

func (e StyleElement) Media() string

func (StyleElement) Type added in v0.18.0

func (s StyleElement) Type() string

type TableBodyElement added in v0.18.0

type TableBodyElement struct{ TableSectionElement }

type TableCellElement added in v0.18.0

type TableCellElement struct{ Element }

func (TableCellElement) CellIndex added in v0.18.0

func (t TableCellElement) CellIndex() int

func (TableCellElement) ColSpan added in v0.18.0

func (e TableCellElement) ColSpan() int

func (TableCellElement) Headers added in v0.18.0

func (e TableCellElement) Headers() string

func (TableCellElement) RowSpan added in v0.18.0

func (e TableCellElement) RowSpan() int

type TableColElement added in v0.18.0

type TableColElement struct{ Element }

func (TableColElement) Span added in v0.18.0

func (t TableColElement) Span() int

type TableDataCellElement added in v0.18.0

type TableDataCellElement struct{ TableCellElement }

type TableElement added in v0.18.0

type TableElement struct{ Element }

func (TableElement) Caption added in v0.18.0

func (t TableElement) Caption() goja.Value

func (TableElement) Rows added in v0.18.0

func (t TableElement) Rows() []goja.Value

func (TableElement) Sortable added in v0.18.0

func (e TableElement) Sortable() bool

func (TableElement) TBodies added in v0.18.0

func (t TableElement) TBodies() []goja.Value

func (TableElement) TFoot added in v0.18.0

func (t TableElement) TFoot() goja.Value

func (TableElement) THead added in v0.18.0

func (t TableElement) THead() goja.Value

type TableFootElement added in v0.18.0

type TableFootElement struct{ TableSectionElement }

type TableHeadElement added in v0.18.0

type TableHeadElement struct{ TableSectionElement }

type TableHeaderCellElement added in v0.18.0

type TableHeaderCellElement struct{ TableCellElement }

func (TableHeaderCellElement) Abbr added in v0.18.0

func (e TableHeaderCellElement) Abbr() string

func (TableHeaderCellElement) Scope added in v0.18.0

func (e TableHeaderCellElement) Scope() string

func (TableHeaderCellElement) Sorted added in v0.18.0

func (e TableHeaderCellElement) Sorted() bool

type TableRowElement added in v0.18.0

type TableRowElement struct{ Element }

func (TableRowElement) Cells added in v0.18.0

func (t TableRowElement) Cells() []goja.Value

func (TableRowElement) RowIndex added in v0.18.0

func (t TableRowElement) RowIndex() int

func (TableRowElement) SectionRowIndex added in v0.18.0

func (t TableRowElement) SectionRowIndex() int

type TableSectionElement added in v0.18.0

type TableSectionElement struct{ Element }

func (TableSectionElement) Rows added in v0.18.0

func (t TableSectionElement) Rows() []goja.Value

type TextAreaElement added in v0.18.0

type TextAreaElement struct{ Element }

func (TextAreaElement) AccessKey added in v0.18.0

func (e TextAreaElement) AccessKey() string

func (TextAreaElement) Autocapitalize added in v0.18.0

func (e TextAreaElement) Autocapitalize() string

func (TextAreaElement) Autocomplete added in v0.18.0

func (e TextAreaElement) Autocomplete() string

func (TextAreaElement) Cols added in v0.18.0

func (e TextAreaElement) Cols() int

func (TextAreaElement) DefaultValue added in v0.18.0

func (e TextAreaElement) DefaultValue() string

func (TextAreaElement) Form added in v0.18.0

func (t TextAreaElement) Form() goja.Value

func (TextAreaElement) Labels added in v0.18.0

func (t TextAreaElement) Labels() []goja.Value

func (TextAreaElement) Length added in v0.18.0

func (t TextAreaElement) Length() int

func (TextAreaElement) MaxLength added in v0.18.0

func (e TextAreaElement) MaxLength() int

func (TextAreaElement) Placeholder added in v0.18.0

func (e TextAreaElement) Placeholder() string

func (TextAreaElement) ReadOnly added in v0.18.0

func (e TextAreaElement) ReadOnly() bool

func (TextAreaElement) Required added in v0.18.0

func (e TextAreaElement) Required() bool

func (TextAreaElement) Rows added in v0.18.0

func (e TextAreaElement) Rows() int

func (TextAreaElement) TabIndex added in v0.18.0

func (e TextAreaElement) TabIndex() int

func (TextAreaElement) Type added in v0.18.0

func (e TextAreaElement) Type() string

func (TextAreaElement) Value added in v0.18.0

func (e TextAreaElement) Value() string

func (TextAreaElement) Wrap added in v0.18.0

func (e TextAreaElement) Wrap() string

type TimeElement added in v0.18.0

type TimeElement struct{ Element }

func (TimeElement) Datetime added in v0.18.0

func (e TimeElement) Datetime() string

type TitleElement added in v0.18.0

type TitleElement struct{ Element }

func (TitleElement) Text added in v0.18.0

func (t TitleElement) Text() string

type TrackElement added in v0.18.0

type TrackElement struct{ Element }

func (TrackElement) Default added in v0.18.0

func (e TrackElement) Default() bool

func (TrackElement) Kind added in v0.18.0

func (e TrackElement) Kind() string

func (TrackElement) Label added in v0.18.0

func (e TrackElement) Label() string

func (TrackElement) Src added in v0.18.0

func (e TrackElement) Src() string

func (TrackElement) Srclang added in v0.18.0

func (e TrackElement) Srclang() string

type UListElement added in v0.18.0

type UListElement struct{ Element }

func (UListElement) Type added in v0.18.0

func (e UListElement) Type() string

type VideoElement added in v0.18.0

type VideoElement struct{ MediaElement }

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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