markup

package
v0.0.0-...-4182e41 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 18 Imported by: 0

README

Markup

Markup provide a virtual tree like DOM structure, for the structure of connecting components able to react to signals (aka events), fast in iteration and navigation.

Examples

package main

import (
	"fmt"
	"log"
	"strings"

	"github.com/influx6/npkg/markup"
)

func main() {
	var base = markup.Element("section", "767h")

	for i := 0; i < 10; i++ {
		var digit = fmt.Sprintf("%d", i)
		if err := base.AppendChild(markup.Comment(markup.TextContent("Commentary"))); err != nil {
			log.Fatalf("bad things occured: %+s\n", err)
		}
		if err := base.AppendChild(
			markup.Element(
				"div",
				digit,
				markup.ClickEvent(nil),
				markup.MouseOverEvent(nil),
				markup.NewStringAttr("count-target", digit),
				markup.Text(
					markup.TextContent(digit),
				),
			),
		); err != nil {
			log.Fatalf("bad things occured: %+s\n", err)
		}
	}

	// Render html into giving builder.
	var content strings.Builder
	if err := base.RenderNodeTo(&content, true); err != nil {
		log.Fatalf("failed to render: %+s\n", err)
	}

	fmt.Println(content.String())
}


The code above produces the underline html:

<section  id="767h" atid="bj0v2kuaa78t7ijs5070" _tid="bj0v2kuaa78t7ijs5070" _ref="/767h">
	<!-- 
	Commentary
	 -->
	<div  id="0" atid="bj0v2kuaa78t7ijs508g" _tid="bj0v2kuaa78t7ijs508g" _ref="/767h/0" count-target="0" events="click-00 MouseOver-00">
		0
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="1" atid="bj0v2kuaa78t7ijs50a0" _tid="bj0v2kuaa78t7ijs50a0" _ref="/767h/1" count-target="1" events="click-00 MouseOver-00">
		1
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="2" atid="bj0v2kuaa78t7ijs50bg" _tid="bj0v2kuaa78t7ijs50bg" _ref="/767h/2" count-target="2" events="MouseOver-00 click-00">
		2
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="3" atid="bj0v2kuaa78t7ijs50d0" _tid="bj0v2kuaa78t7ijs50d0" _ref="/767h/3" count-target="3" events="click-00 MouseOver-00">
		3
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="4" atid="bj0v2kuaa78t7ijs50eg" _tid="bj0v2kuaa78t7ijs50eg" _ref="/767h/4" count-target="4" events="MouseOver-00 click-00">
		4
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="5" atid="bj0v2kuaa78t7ijs50g0" _tid="bj0v2kuaa78t7ijs50g0" _ref="/767h/5" count-target="5" events="click-00 MouseOver-00">
		5
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="6" atid="bj0v2kuaa78t7ijs50hg" _tid="bj0v2kuaa78t7ijs50hg" _ref="/767h/6" count-target="6" events="click-00 MouseOver-00">
		6
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="7" atid="bj0v2kuaa78t7ijs50j0" _tid="bj0v2kuaa78t7ijs50j0" _ref="/767h/7" count-target="7" events="click-00 MouseOver-00">
		7
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="8" atid="bj0v2kuaa78t7ijs50kg" _tid="bj0v2kuaa78t7ijs50kg" _ref="/767h/8" count-target="8" events="click-00 MouseOver-00">
		8
	</div>
	<!-- 
	Commentary
	 -->
	<div  id="9" atid="bj0v2kuaa78t7ijs50m0" _tid="bj0v2kuaa78t7ijs50m0" _ref="/767h/9" count-target="9" events="click-00 MouseOver-00">
		9
	</div>
</section>

More so, using the Node.EncodeJSON we can actually render a JSON format of giving node, attributes events and children:

{
  "type": 1,
  "ref": "\/767h",
  "typeName": "Element",
  "atid": "bj0v36uaa78tecmm9sn0",
  "name": "section",
  "id": "767h",
  "tid": "bj0v36uaa78tecmm9sn0",
  "attrs": [
    
  ],
  "events": [
    
  ],
  "children": [
    {
      "type": 8,
      "ref": "\/767h\/comment-2042p7w9cx",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9sng",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042p7w9cx",
      "tid": "bj0v36uaa78tecmm9sng",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/0",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9sog",
      "name": "div",
      "id": "0",
      "tid": "bj0v36uaa78tecmm9sog",
      "attrs": [
        {
          "name": "count-target",
          "value": "0"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/0\/text-204250vbsc",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9so0",
          "name": "Text",
          "content": "0",
          "id": "text-204250vbsc",
          "tid": "bj0v36uaa78tecmm9so0",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042q98s1h",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9sp0",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042q98s1h",
      "tid": "bj0v36uaa78tecmm9sp0",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/1",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9sq0",
      "name": "div",
      "id": "1",
      "tid": "bj0v36uaa78tecmm9sq0",
      "attrs": [
        {
          "name": "count-target",
          "value": "1"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/1\/text-2042w6hjl8",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9spg",
          "name": "Text",
          "content": "1",
          "id": "text-2042w6hjl8",
          "tid": "bj0v36uaa78tecmm9spg",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-20427kk8bt",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9sqg",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-20427kk8bt",
      "tid": "bj0v36uaa78tecmm9sqg",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/2",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9srg",
      "name": "div",
      "id": "2",
      "tid": "bj0v36uaa78tecmm9srg",
      "attrs": [
        {
          "name": "count-target",
          "value": "2"
        }
      ],
      "events": [
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/2\/text-2042cxwpm6",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9sr0",
          "name": "Text",
          "content": "2",
          "id": "text-2042cxwpm6",
          "tid": "bj0v36uaa78tecmm9sr0",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-20427ctjrn",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9ss0",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-20427ctjrn",
      "tid": "bj0v36uaa78tecmm9ss0",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/3",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9st0",
      "name": "div",
      "id": "3",
      "tid": "bj0v36uaa78tecmm9st0",
      "attrs": [
        {
          "name": "count-target",
          "value": "3"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/3\/text-2042gfr78g",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9ssg",
          "name": "Text",
          "content": "3",
          "id": "text-2042gfr78g",
          "tid": "bj0v36uaa78tecmm9ssg",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042zf7cmm",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9stg",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042zf7cmm",
      "tid": "bj0v36uaa78tecmm9stg",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/4",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9sug",
      "name": "div",
      "id": "4",
      "tid": "bj0v36uaa78tecmm9sug",
      "attrs": [
        {
          "name": "count-target",
          "value": "4"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/4\/text-2042n5lxrh",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9su0",
          "name": "Text",
          "content": "4",
          "id": "text-2042n5lxrh",
          "tid": "bj0v36uaa78tecmm9su0",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042pbtjvl",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9sv0",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042pbtjvl",
      "tid": "bj0v36uaa78tecmm9sv0",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/5",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9t00",
      "name": "div",
      "id": "5",
      "tid": "bj0v36uaa78tecmm9t00",
      "attrs": [
        {
          "name": "count-target",
          "value": "5"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/5\/text-2042pd36rj",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9svg",
          "name": "Text",
          "content": "5",
          "id": "text-2042pd36rj",
          "tid": "bj0v36uaa78tecmm9svg",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042dl74kr",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9t0g",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042dl74kr",
      "tid": "bj0v36uaa78tecmm9t0g",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/6",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9t1g",
      "name": "div",
      "id": "6",
      "tid": "bj0v36uaa78tecmm9t1g",
      "attrs": [
        {
          "name": "count-target",
          "value": "6"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/6\/text-2042v0ffkr",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9t10",
          "name": "Text",
          "content": "6",
          "id": "text-2042v0ffkr",
          "tid": "bj0v36uaa78tecmm9t10",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042pz33p2",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9t20",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042pz33p2",
      "tid": "bj0v36uaa78tecmm9t20",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/7",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9t30",
      "name": "div",
      "id": "7",
      "tid": "bj0v36uaa78tecmm9t30",
      "attrs": [
        {
          "name": "count-target",
          "value": "7"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/7\/text-2042lvjkbr",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9t2g",
          "name": "Text",
          "content": "7",
          "id": "text-2042lvjkbr",
          "tid": "bj0v36uaa78tecmm9t2g",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042qf5ltc",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9t3g",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042qf5ltc",
      "tid": "bj0v36uaa78tecmm9t3g",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/8",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9t4g",
      "name": "div",
      "id": "8",
      "tid": "bj0v36uaa78tecmm9t4g",
      "attrs": [
        {
          "name": "count-target",
          "value": "8"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/8\/text-2042tww0n5",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9t40",
          "name": "Text",
          "content": "8",
          "id": "text-2042tww0n5",
          "tid": "bj0v36uaa78tecmm9t40",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    },
    {
      "type": 8,
      "ref": "\/767h\/comment-2042b2xrcd",
      "typeName": "Comment",
      "atid": "bj0v36uaa78tecmm9t50",
      "name": "Comment",
      "content": "Commentary",
      "id": "comment-2042b2xrcd",
      "tid": "bj0v36uaa78tecmm9t50",
      "attrs": [
        
      ],
      "events": [
        
      ],
      "children": [
        
      ]
    },
    {
      "type": 1,
      "ref": "\/767h\/9",
      "typeName": "Element",
      "atid": "bj0v36uaa78tecmm9t60",
      "name": "div",
      "id": "9",
      "tid": "bj0v36uaa78tecmm9t60",
      "attrs": [
        {
          "name": "count-target",
          "value": "9"
        }
      ],
      "events": [
        {
          "name": "click",
          "preventDefault": false,
          "stopPropagation": false
        },
        {
          "name": "MouseOver",
          "preventDefault": false,
          "stopPropagation": false
        }
      ],
      "children": [
        {
          "type": 3,
          "ref": "\/767h\/9\/text-20424kwk14",
          "typeName": "Text",
          "atid": "bj0v36uaa78tecmm9t5g",
          "name": "Text",
          "content": "9",
          "id": "text-20424kwk14",
          "tid": "bj0v36uaa78tecmm9t5g",
          "attrs": [
            
          ],
          "events": [
            
          ],
          "children": [
            
          ]
        }
      ]
    }
  ]
}

Documentation

Overview

package markup provide a virtual tree like DOM structure, for the structure of connecting components able to react to signals (aka events), fast in iteration and navigation.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidIndex is returned when giving index is out of range or below 0.
	ErrInvalidIndex = errors.New("index is out of range")

	// ErrInvalidOp is returned when an operation is impossible.
	ErrInvalidOp = errors.New("operation can not be performed")

	// ErrEmptyList is returned when given list is empty.
	ErrEmptyList = errors.New("list is empty")

	// ErrIndexNotEmpty is returned when index has a element and not empty.
	ErrIndexNotEmpty = errors.New("index has element")

	// ErrEmptyIndex is returned when index has no element.
	ErrEmptyIndex = errors.New("index has no element")
)

errors

View Source
var (
	// ErrInvalidNodeType returns if giving node type is not supported.
	ErrInvalidNodeType = nerror.New("invalid node type, unsupported")
)

Functions

func MakeHTMLSpace

func MakeHTMLSpace(count int) string

MakeHTMLSpace returns a text containing '&nsbp;' the provided number 'count' times.

func ParseTemplateInto

func ParseTemplateInto(root *Node, markup string, binding interface{})

ParseTemplateInto parses the provided string has a template which is processed with the provided binding and passed into the root.

func ParseToRoot

func ParseToRoot(root *Node, markup string)

ParseToRoot passes the markup generated from the markup added to the provided root.

Types

type Atom

type Atom interface {
	AtomSet
	AtomRead

	natomic.SignalResponder
}

Atom exposes methods to safely set and get a giving underline value which can be safely retrieved atomically and concurrently.

type AtomRead

type AtomRead interface {
	Read() interface{}
}

AtomRead defines the get method requirements for a safe concurrently usable implementer.

type AtomSet

type AtomSet interface {
	Set(interface{}) error
}

AtomSet defines the set method requirements for a safe concurrently usable implementer.

type Attr

type Attr interface {
	AttrEncodable
	npkg.EncodableObject

	// Key returns the key for the attribute.
	Key() string

	// Text returns a textual representation of giving attribute value.
	Text() string

	// Value return the value of giving attribute as an interface.
	Value() interface{}

	// Match must match against provided attribute validating if
	// it is equal both in type and key with value.
	Match(Attr) bool

	// Contains should return true/false if giving attribute
	// contains provided value.
	Contains(value string) bool
}

Attr defines a series of method representing a Attribute.

type AttrEncodable

type AttrEncodable interface {
	EncodeAttr(encoder AttrEncoder) error
}

AttrEncodable exposes a interface which provides method for encoder attributes using provided encoder.

type AttrEncoder

type AttrEncoder interface {
	Attr(string, AttrEncodable) error

	Int(string, int) error
	Float(string, float64) error
	List(string, ...string) error
	QuotedString(string, string) error
	UnquotedString(string, string) error
}

AttrEncoder defines an interface which provides means of encoding attribute key-value pairs and possible sub-attributes using provided type functions.

type AttrList

type AttrList []Attr

AttrList implements Attrs interface.

func (*AttrList) Add

func (l *AttrList) Add(v Attr)

Add adds giving attribute into list.

func (AttrList) Attr

func (l AttrList) Attr(key string) (Attr, bool)

Attr returns giving Attribute with provided key.

func (AttrList) Each

func (l AttrList) Each(fx func(Attr) bool)

Each runs through all attributes within list.

func (AttrList) EncodeAttr

func (l AttrList) EncodeAttr(encoder AttrEncoder) error

EncodeAttr encodes all attributes within it's list with provided encoder.

func (AttrList) EncodeList

func (l AttrList) EncodeList(encoder npkg.ListEncoder)

EncodeList encodes list of all attributes.

func (AttrList) Has

func (l AttrList) Has(key string) bool

Has returns true/false if giving list has giving key.

func (*AttrList) Len

func (l *AttrList) Len() int

Len returns the underline length of slice.

func (AttrList) Match

func (l AttrList) Match(key string, value string) bool

Match validates if giving value matches attribute's value.

func (AttrList) MatchAttrs

func (l AttrList) MatchAttrs(attrs Attrs) bool

MatchAttrs returns true/false if giving attrs match.

type Attrs

type Attrs interface {
	AttrEncodable

	// Has should return true/false if giving Attrs has giving key.
	Has(key string) bool

	// MatchAttrs returns true/false if provided Attrs match each other.
	MatchAttrs(Attrs) bool

	// Each should handle the need of iterating through all
	// values of a key.
	Each(fx func(Attr) bool)

	// Attr should return the Attr for giving key of giving type.
	Attr(key string) (Attr, bool)

	// Match must match against provided key and string value returning
	// true/false if value matches internal representation of key value/values.
	Match(key string, value string) bool
}

Attrs exposes a interface defining a giving attribute host which provides method for accessing all attributes.

type DOMAttrEncoder

type DOMAttrEncoder struct {
	Key     string
	Content *strings.Builder
}

DOMAttrEncoder implements a not to optimized AttrEncoder interface.

func DOMAttrEncoderWith

func DOMAttrEncoderWith(key string, content *strings.Builder) *DOMAttrEncoder

DOMAttrEncoderWith returns a new DOMAttrEncoder.

func NewDOMAttrEncoder

func NewDOMAttrEncoder(key string) *DOMAttrEncoder

NewDOMAttrEncoder returns a new DOMAttrEncoder.

func (*DOMAttrEncoder) Attr

func (dm *DOMAttrEncoder) Attr(key string, attrs AttrEncodable) error

Attr implements encoding of multi-attribute based values.

func (*DOMAttrEncoder) Float

func (dm *DOMAttrEncoder) Float(key string, val float64) error

Float encodes giving int value for string key.

func (*DOMAttrEncoder) Int

func (dm *DOMAttrEncoder) Int(key string, val int) error

Int encodes giving int value for string key.

func (*DOMAttrEncoder) List

func (dm *DOMAttrEncoder) List(key string, set ...string) error

Attr encodes giving list of string values for string key.

func (*DOMAttrEncoder) QuotedString

func (dm *DOMAttrEncoder) QuotedString(key string, val string) error

QuotedString encodes giving string value for string key.

func (*DOMAttrEncoder) String

func (dm *DOMAttrEncoder) String() string

String returns the encoded attribute list of elements.

func (*DOMAttrEncoder) UnquotedString

func (dm *DOMAttrEncoder) UnquotedString(key string, val string) error

UnquotedString encodes giving string value for string key.

func (*DOMAttrEncoder) WithAttr

func (dm *DOMAttrEncoder) WithAttr(key string, fn func(encoder AttrEncoder) error) error

Attr implements encoding of multi-attribute based values.

func (*DOMAttrEncoder) WriteTo

func (dm *DOMAttrEncoder) WriteTo(w io.Writer) (int64, error)

String returns the encoded attribute list of elements.

type Event

type Event struct {
	TypeName string
	SourceID string
	TargetID string
	Data     interface{}
}

Event defines a giving underline signal representing an event.

func NewAbortEvent

func NewAbortEvent(data interface{}, mods ...EventModder) *Event

NewAbortEvent returns a new object representing a triggered event of "abort" type.

A transaction has been aborted. https://developer.mozilla.org/docs/Web/Reference/Events/abort_indexedDB

func NewAfterPrintEvent

func NewAfterPrintEvent(data interface{}, mods ...EventModder) *Event

NewAfterPrintEvent returns a new object representing a triggered event of "AfterPrint" type.

The associated document has started printing or the print preview has been closed. https://developer.mozilla.org/docs/Web/Events/afterprint

func NewAfterScriptExecuteEvent

func NewAfterScriptExecuteEvent(data interface{}, mods ...EventModder) *Event

NewAfterScriptExecuteEvent returns a new object representing a triggered event of "AfterScriptExecute" type.

A script has been executed. https://developer.mozilla.org/docs/Web/Events/afterscriptexecute

func NewAlertActiveEvent

func NewAlertActiveEvent(data interface{}, mods ...EventModder) *Event

NewAlertActiveEvent returns a new object representing a triggered event of "AlertActive" type.

A notification element is shown. https://developer.mozilla.org/docs/Web/Reference/Events/AlertActive

func NewAlertCloseEvent

func NewAlertCloseEvent(data interface{}, mods ...EventModder) *Event

NewAlertCloseEvent returns a new object representing a triggered event of "AlertClose" type.

A notification element is closed. https://developer.mozilla.org/docs/Web/Reference/Events/AlertClose

func NewAlertingEvent

func NewAlertingEvent(data interface{}, mods ...EventModder) *Event

NewAlertingEvent returns a new object representing a triggered event of "alerting" type.

The correspondent is being alerted (his/her phone is ringing). https://developer.mozilla.org/docs/Web/Events/alerting

func NewAnimationEndEvent

func NewAnimationEndEvent(data interface{}, mods ...EventModder) *Event

NewAnimationEndEvent returns a new object representing a triggered event of "AnimationEnd" type.

A CSS animation has completed. https://developer.mozilla.org/docs/Web/Events/animationend

func NewAnimationIterationEvent

func NewAnimationIterationEvent(data interface{}, mods ...EventModder) *Event

NewAnimationIterationEvent returns a new object representing a triggered event of "AnimationIteration" type.

A CSS animation is repeated. https://developer.mozilla.org/docs/Web/Events/animationiteration

func NewAnimationStartEvent

func NewAnimationStartEvent(data interface{}, mods ...EventModder) *Event

NewAnimationStartEvent returns a new object representing a triggered event of "AnimationStart" type.

A CSS animation has started. https://developer.mozilla.org/docs/Web/Events/animationstart

func NewApplicationInstalledEvent

func NewApplicationInstalledEvent(data interface{}, mods ...EventModder) *Event

NewApplicationInstalledEvent returns a new object representing a triggered event of "ApplicationInstalled" type.

A web application is successfully installed as a progressive web app. https://developer.mozilla.org/docs/Web/Events/appinstalled

func NewAudioEndEvent

func NewAudioEndEvent(data interface{}, mods ...EventModder) *Event

NewAudioEndEvent returns a new object representing a triggered event of "AudioEnd" type.

The user agent has finished capturing audio for speech recognition. https://developer.mozilla.org/docs/Web/Events/audioend

func NewAudioProcessEvent

func NewAudioProcessEvent(data interface{}, mods ...EventModder) *Event

NewAudioProcessEvent returns a new object representing a triggered event of "AudioProcess" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/audioprocess

func NewAudioStartEvent

func NewAudioStartEvent(data interface{}, mods ...EventModder) *Event

NewAudioStartEvent returns a new object representing a triggered event of "AudioStart" type.

The user agent has started to capture audio for speech recognition. https://developer.mozilla.org/docs/Web/Events/audiostart

func NewAuxclickEvent

func NewAuxclickEvent(data interface{}, mods ...EventModder) *Event

NewAuxclickEvent returns a new object representing a triggered event of "auxclick" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/auxclick

func NewBeforePrintEvent

func NewBeforePrintEvent(data interface{}, mods ...EventModder) *Event

NewBeforePrintEvent returns a new object representing a triggered event of "BeforePrint" type.

The associated document is about to be printed or previewed for printing. https://developer.mozilla.org/docs/Web/Events/beforeprint

func NewBeforeUnloadEvent

func NewBeforeUnloadEvent(data interface{}, mods ...EventModder) *Event

NewBeforeUnloadEvent returns a new object representing a triggered event of "BeforeUnload" type.

The window, the document and its resources are about to be unloaded. https://developer.mozilla.org/docs/Web/Events/beforeunload

func NewBeforeinstallpromptEvent

func NewBeforeinstallpromptEvent(data interface{}, mods ...EventModder) *Event

NewBeforeinstallpromptEvent returns a new object representing a triggered event of "beforeinstallprompt" type.

A user is prompted to save a web site to a home screen on mobile. https://developer.mozilla.org/docs/Web/Events/beforeinstallprompt

func NewBeforescriptexecuteEvent

func NewBeforescriptexecuteEvent(data interface{}, mods ...EventModder) *Event

NewBeforescriptexecuteEvent returns a new object representing a triggered event of "beforescriptexecute" type.

A script is about to be executed. https://developer.mozilla.org/docs/Web/Events/beforescriptexecute

func NewBeginEventEvent

func NewBeginEventEvent(data interface{}, mods ...EventModder) *Event

NewBeginEventEvent returns a new object representing a triggered event of "beginEvent" type.

A SMIL animation element begins. https://developer.mozilla.org/docs/Web/Events/beginEvent

func NewBlockedEvent

func NewBlockedEvent(data interface{}, mods ...EventModder) *Event

NewBlockedEvent returns a new object representing a triggered event of "blocked" type.

An open connection to a database is blocking a versionchange transaction on the same database. https://developer.mozilla.org/docs/Web/Reference/Events/blocked_indexedDB

func NewBlurEvent

func NewBlurEvent(data interface{}, mods ...EventModder) *Event

NewBlurEvent returns a new object representing a triggered event of "blur" type.

An element has lost focus (does not bubble). https://developer.mozilla.org/docs/Web/Events/blur

func NewBoundaryEvent

func NewBoundaryEvent(data interface{}, mods ...EventModder) *Event

NewBoundaryEvent returns a new object representing a triggered event of "boundary" type.

The spoken utterance reaches a word or sentence boundary https://developer.mozilla.org/docs/Web/Events/boundary

func NewBroadcastEvent

func NewBroadcastEvent(data interface{}, mods ...EventModder) *Event

NewBroadcastEvent returns a new object representing a triggered event of "broadcast" type.

An observer noticed a change to the attributes of a watched broadcaster. https://developer.mozilla.org/docs/Web/Events/broadcast

func NewBusyEvent

func NewBusyEvent(data interface{}, mods ...EventModder) *Event

NewBusyEvent returns a new object representing a triggered event of "busy" type.

The line of the correspondent is busy. https://developer.mozilla.org/docs/Web/Events/busy

func NewCSSRuleViewCSSLinkClickedEvent

func NewCSSRuleViewCSSLinkClickedEvent(data interface{}, mods ...EventModder) *Event

NewCSSRuleViewCSSLinkClickedEvent returns a new object representing a triggered event of "CSSRuleViewCSSLinkClicked" type.

A link to a CSS file has been clicked in the "Rules" view of the style inspector. https://developer.mozilla.org/docs/Web/Reference/Events/CssRuleViewCSSLinkClicked

func NewCSSRuleViewChangeEvent

func NewCSSRuleViewChangeEvent(data interface{}, mods ...EventModder) *Event

NewCSSRuleViewChangeEvent returns a new object representing a triggered event of "CSSRuleViewChange" type.

The "Rules" view of the style inspector has been changed. https://developer.mozilla.org/docs/Web/Reference/Events/CssRuleViewChanged

func NewCSSRuleViewRefreshedEvent

func NewCSSRuleViewRefreshedEvent(data interface{}, mods ...EventModder) *Event

NewCSSRuleViewRefreshedEvent returns a new object representing a triggered event of "CSSRuleViewRefreshed" type.

The "Rules" view of the style inspector has been updated. https://developer.mozilla.org/docs/Web/Reference/Events/CssRuleViewRefreshed

func NewCachedEvent

func NewCachedEvent(data interface{}, mods ...EventModder) *Event

NewCachedEvent returns a new object representing a triggered event of "cached" type.

The resources listed in the manifest have been downloaded, and the application is now cached. https://developer.mozilla.org/docs/Web/Events/cached

func NewCallschangedEvent

func NewCallschangedEvent(data interface{}, mods ...EventModder) *Event

NewCallschangedEvent returns a new object representing a triggered event of "callschanged" type.

A call has been added or removed from the list of current calls. https://developer.mozilla.org/docs/Web/Events/callschanged

func NewCanPlayEvent

func NewCanPlayEvent(data interface{}, mods ...EventModder) *Event

NewCanPlayEvent returns a new object representing a triggered event of "CanPlay" type.

The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. https://developer.mozilla.org/docs/Web/Events/canplay

func NewCanPlayThroughEvent

func NewCanPlayThroughEvent(data interface{}, mods ...EventModder) *Event

NewCanPlayThroughEvent returns a new object representing a triggered event of "CanPlayThrough" type.

The user agent can play the media up to its end without having to stop for further buffering of content. https://developer.mozilla.org/docs/Web/Events/canplaythrough

func NewCardstatechangeEvent

func NewCardstatechangeEvent(data interface{}, mods ...EventModder) *Event

NewCardstatechangeEvent returns a new object representing a triggered event of "cardstatechange" type.

The MozMobileConnection.cardState property changes value. https://developer.mozilla.org/docs/Web/Events/cardstatechange

func NewCfstatechangeEvent

func NewCfstatechangeEvent(data interface{}, mods ...EventModder) *Event

NewCfstatechangeEvent returns a new object representing a triggered event of "cfstatechange" type.

The call forwarding state changes. https://developer.mozilla.org/docs/Web/Events/cfstatechange

func NewChangeEvent

func NewChangeEvent(data interface{}, mods ...EventModder) *Event

NewChangeEvent returns a new object representing a triggered event of "change" type.

This event is triggered each time a file is created, modified or deleted on a given storage area. https://developer.mozilla.org/docs/Web/Events/change

func NewChargingChangeEvent

func NewChargingChangeEvent(data interface{}, mods ...EventModder) *Event

NewChargingChangeEvent returns a new object representing a triggered event of "ChargingChange" type.

The battery begins or stops charging. https://developer.mozilla.org/docs/Web/Events/chargingchange

func NewChargingTimeChangeEvent

func NewChargingTimeChangeEvent(data interface{}, mods ...EventModder) *Event

NewChargingTimeChangeEvent returns a new object representing a triggered event of "ChargingTimeChange" type.

The chargingTime attribute has been updated. https://developer.mozilla.org/docs/Web/Events/chargingtimechange

func NewCheckboxStateChangeEvent

func NewCheckboxStateChangeEvent(data interface{}, mods ...EventModder) *Event

NewCheckboxStateChangeEvent returns a new object representing a triggered event of "CheckboxStateChange" type.

The state of a checkbox has been changed either by a user action or by a script (useful for accessibility). https://developer.mozilla.org/docs/Web/Events/CheckboxStateChange

func NewCheckingEvent

func NewCheckingEvent(data interface{}, mods ...EventModder) *Event

NewCheckingEvent returns a new object representing a triggered event of "checking" type.

The user agent is checking for an update, or attempting to download the cache manifest for the first time. https://developer.mozilla.org/docs/Web/Events/checking

func NewClickEvent

func NewClickEvent(data interface{}, mods ...EventModder) *Event

NewClickEvent returns a new object representing a triggered event of "click" type.

A pointing device button has been pressed and released on an element. https://developer.mozilla.org/docs/Web/Events/click

func NewCloseEvent

func NewCloseEvent(data interface{}, mods ...EventModder) *Event

NewCloseEvent returns a new object representing a triggered event of "close" type.

The close button of the window has been clicked. https://developer.mozilla.org/docs/Web/Reference/Events/close_event

func NewCommandEvent

func NewCommandEvent(data interface{}, mods ...EventModder) *Event

NewCommandEvent returns a new object representing a triggered event of "command" type.

An element has been activated. https://developer.mozilla.org/docs/Web/Events/command

func NewCommandupdateEvent

func NewCommandupdateEvent(data interface{}, mods ...EventModder) *Event

NewCommandupdateEvent returns a new object representing a triggered event of "commandupdate" type.

A command update occurred on a commandset element. https://developer.mozilla.org/docs/Web/Events/commandupdate

func NewCompleteEvent

func NewCompleteEvent(data interface{}, mods ...EventModder) *Event

NewCompleteEvent returns a new object representing a triggered event of "complete" type.

A transaction successfully completed. https://developer.mozilla.org/docs/Web/Reference/Events/complete_indexedDB

func NewCompositionEndEvent

func NewCompositionEndEvent(data interface{}, mods ...EventModder) *Event

NewCompositionEndEvent returns a new object representing a triggered event of "CompositionEnd" type.

The composition of a passage of text has been completed or canceled. https://developer.mozilla.org/docs/Web/Events/compositionend

func NewCompositionStartEvent

func NewCompositionStartEvent(data interface{}, mods ...EventModder) *Event

NewCompositionStartEvent returns a new object representing a triggered event of "CompositionStart" type.

The composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition). https://developer.mozilla.org/docs/Web/Events/compositionstart

func NewCompositionUpdateEvent

func NewCompositionUpdateEvent(data interface{}, mods ...EventModder) *Event

NewCompositionUpdateEvent returns a new object representing a triggered event of "CompositionUpdate" type.

A character is added to a passage of text being composed. https://developer.mozilla.org/docs/Web/Events/compositionupdate

func NewConnectingEvent

func NewConnectingEvent(data interface{}, mods ...EventModder) *Event

NewConnectingEvent returns a new object representing a triggered event of "connecting" type.

A call is about to connect. https://developer.mozilla.org/docs/Web/Events/connecting

func NewConnectionInfoUpdateEvent

func NewConnectionInfoUpdateEvent(data interface{}, mods ...EventModder) *Event

NewConnectionInfoUpdateEvent returns a new object representing a triggered event of "connectionInfoUpdate" type.

The informations about the signal strength and the link speed have been updated. https://developer.mozilla.org/docs/Web/Events/connectionInfoUpdate

func NewContextMenuEvent

func NewContextMenuEvent(data interface{}, mods ...EventModder) *Event

NewContextMenuEvent returns a new object representing a triggered event of "ContextMenu" type.

The right button of the mouse is clicked (before the context menu is displayed). https://developer.mozilla.org/docs/Web/Events/contextmenu

func NewCopyEvent

func NewCopyEvent(data interface{}, mods ...EventModder) *Event

NewCopyEvent returns a new object representing a triggered event of "copy" type.

The text selection has been added to the clipboard. https://developer.mozilla.org/docs/Web/Events/copy

func NewCutEvent

func NewCutEvent(data interface{}, mods ...EventModder) *Event

NewCutEvent returns a new object representing a triggered event of "cut" type.

The text selection has been removed from the document and added to the clipboard. https://developer.mozilla.org/docs/Web/Events/cut

func NewDOMAutoCompleteEvent

func NewDOMAutoCompleteEvent(data interface{}, mods ...EventModder) *Event

NewDOMAutoCompleteEvent returns a new object representing a triggered event of "DOMAutoComplete" type.

The content of an element has been auto-completed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMAutoComplete

func NewDOMContentLoadedEvent

func NewDOMContentLoadedEvent(data interface{}, mods ...EventModder) *Event

NewDOMContentLoadedEvent returns a new object representing a triggered event of "DOMContentLoaded" type.

The document has finished loading (but not its dependent resources). https://developer.mozilla.org/docs/Web/Events/DOMContentLoaded

func NewDOMFrameContentLoadedEvent

func NewDOMFrameContentLoadedEvent(data interface{}, mods ...EventModder) *Event

NewDOMFrameContentLoadedEvent returns a new object representing a triggered event of "DOMFrameContentLoaded" type.

The frame has finished loading (but not its dependent resources). https://developer.mozilla.org/docs/Web/Reference/Events/DOMFrameContentLoaded

func NewDOMLinkAddedEvent

func NewDOMLinkAddedEvent(data interface{}, mods ...EventModder) *Event

NewDOMLinkAddedEvent returns a new object representing a triggered event of "DOMLinkAdded" type.

A link has been added a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMLinkAdded

func NewDOMLinkRemovedEvent

func NewDOMLinkRemovedEvent(data interface{}, mods ...EventModder) *Event

NewDOMLinkRemovedEvent returns a new object representing a triggered event of "DOMLinkRemoved" type.

A link has been removed inside from a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMLinkRemoved

func NewDOMMenuItemActiveEvent

func NewDOMMenuItemActiveEvent(data interface{}, mods ...EventModder) *Event

NewDOMMenuItemActiveEvent returns a new object representing a triggered event of "DOMMenuItemActive" type.

A menu or menuitem has been hovered or highlighted. https://developer.mozilla.org/docs/Web/Events/DOMMenuItemActive

func NewDOMMenuItemInactiveEvent

func NewDOMMenuItemInactiveEvent(data interface{}, mods ...EventModder) *Event

NewDOMMenuItemInactiveEvent returns a new object representing a triggered event of "DOMMenuItemInactive" type.

A menu or menuitem is no longer hovered or highlighted. https://developer.mozilla.org/docs/Web/Events/DOMMenuItemInactive

func NewDOMMetaAddedEvent

func NewDOMMetaAddedEvent(data interface{}, mods ...EventModder) *Event

NewDOMMetaAddedEvent returns a new object representing a triggered event of "DOMMetaAdded" type.

A meta element has been added to a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMMetaAdded

func NewDOMMetaRemovedEvent

func NewDOMMetaRemovedEvent(data interface{}, mods ...EventModder) *Event

NewDOMMetaRemovedEvent returns a new object representing a triggered event of "DOMMetaRemoved" type.

A meta element has been removed from a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMMetaRemoved

func NewDOMModalDialogClosedEvent

func NewDOMModalDialogClosedEvent(data interface{}, mods ...EventModder) *Event

NewDOMModalDialogClosedEvent returns a new object representing a triggered event of "DOMModalDialogClosed" type.

A modal dialog has been closed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMModalDialogClosed

func NewDOMPopupBlockedEvent

func NewDOMPopupBlockedEvent(data interface{}, mods ...EventModder) *Event

NewDOMPopupBlockedEvent returns a new object representing a triggered event of "DOMPopupBlocked" type.

A popup has been blocked https://developer.mozilla.org/docs/Web/Reference/Events/DOMPopupBlocked

func NewDOMTitleChangedEvent

func NewDOMTitleChangedEvent(data interface{}, mods ...EventModder) *Event

NewDOMTitleChangedEvent returns a new object representing a triggered event of "DOMTitleChanged" type.

The title of a window has changed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMTitleChanged

func NewDOMWillOpenModalDialogEvent

func NewDOMWillOpenModalDialogEvent(data interface{}, mods ...EventModder) *Event

NewDOMWillOpenModalDialogEvent returns a new object representing a triggered event of "DOMWillOpenModalDialog" type.

A modal dialog is about to open. https://developer.mozilla.org/docs/Web/Reference/Events/DOMWillOpenModalDialog

func NewDOMWindowCloseEvent

func NewDOMWindowCloseEvent(data interface{}, mods ...EventModder) *Event

NewDOMWindowCloseEvent returns a new object representing a triggered event of "DOMWindowClose" type.

A window is about to be closed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMWindowClose

func NewDOMWindowCreatedEvent

func NewDOMWindowCreatedEvent(data interface{}, mods ...EventModder) *Event

NewDOMWindowCreatedEvent returns a new object representing a triggered event of "DOMWindowCreated" type.

A window has been created. https://developer.mozilla.org/docs/Web/Reference/Events/DOMWindowCreated

func NewDatachangeEvent

func NewDatachangeEvent(data interface{}, mods ...EventModder) *Event

NewDatachangeEvent returns a new object representing a triggered event of "datachange" type.

The MozMobileConnection.data object changes values. https://developer.mozilla.org/docs/Web/Events/datachange

func NewDataerrorEvent

func NewDataerrorEvent(data interface{}, mods ...EventModder) *Event

NewDataerrorEvent returns a new object representing a triggered event of "dataerror" type.

The MozMobileConnection.data object receive an error from the RIL. https://developer.mozilla.org/docs/Web/Events/dataerror

func NewDeliveredEvent

func NewDeliveredEvent(data interface{}, mods ...EventModder) *Event

NewDeliveredEvent returns a new object representing a triggered event of "delivered" type.

An SMS has been successfully delivered. https://developer.mozilla.org/docs/Web/Events/delivered

func NewDeviceChangeEvent

func NewDeviceChangeEvent(data interface{}, mods ...EventModder) *Event

NewDeviceChangeEvent returns a new object representing a triggered event of "DeviceChange" type.

A media device such as a camera, microphone, or speaker is connected or removed from the system. https://developer.mozilla.org/docs/Web/Events/devicechange

func NewDeviceLightEvent

func NewDeviceLightEvent(data interface{}, mods ...EventModder) *Event

NewDeviceLightEvent returns a new object representing a triggered event of "DeviceLight" type.

Fresh data is available from a light sensor. https://developer.mozilla.org/docs/Web/Events/devicelight

func NewDeviceMotionEvent

func NewDeviceMotionEvent(data interface{}, mods ...EventModder) *Event

NewDeviceMotionEvent returns a new object representing a triggered event of "DeviceMotion" type.

Fresh data is available from a motion sensor. https://developer.mozilla.org/docs/Web/Events/devicemotion

func NewDeviceOrientationEvent

func NewDeviceOrientationEvent(data interface{}, mods ...EventModder) *Event

NewDeviceOrientationEvent returns a new object representing a triggered event of "DeviceOrientation" type.

Fresh data is available from an orientation sensor. https://developer.mozilla.org/docs/Web/Events/deviceorientation

func NewDeviceProximityEvent

func NewDeviceProximityEvent(data interface{}, mods ...EventModder) *Event

NewDeviceProximityEvent returns a new object representing a triggered event of "DeviceProximity" type.

Fresh data is available from a proximity sensor (indicates an approximated distance between the device and a nearby object). https://developer.mozilla.org/docs/Web/Events/deviceproximity

func NewDialingEvent

func NewDialingEvent(data interface{}, mods ...EventModder) *Event

NewDialingEvent returns a new object representing a triggered event of "dialing" type.

The number of a correspondent has been dialed. https://developer.mozilla.org/docs/Web/Events/dialing

func NewDisabledEvent

func NewDisabledEvent(data interface{}, mods ...EventModder) *Event

NewDisabledEvent returns a new object representing a triggered event of "disabled" type.

Wifi has been disabled on the device. https://developer.mozilla.org/docs/Web/Events/disabled

func NewDischargingTimeChangeEvent

func NewDischargingTimeChangeEvent(data interface{}, mods ...EventModder) *Event

NewDischargingTimeChangeEvent returns a new object representing a triggered event of "DischargingTimeChange" type.

The dischargingTime attribute has been updated. https://developer.mozilla.org/docs/Web/Events/dischargingtimechange

func NewDisconnectedEvent

func NewDisconnectedEvent(data interface{}, mods ...EventModder) *Event

NewDisconnectedEvent returns a new object representing a triggered event of "disconnected" type.

A call has been disconnected. https://developer.mozilla.org/docs/Web/Events/disconnected

func NewDisconnectingEvent

func NewDisconnectingEvent(data interface{}, mods ...EventModder) *Event

NewDisconnectingEvent returns a new object representing a triggered event of "disconnecting" type.

A call is about to disconnect. https://developer.mozilla.org/docs/Web/Events/disconnecting

func NewDoubleClickEvent

func NewDoubleClickEvent(data interface{}, mods ...EventModder) *Event

NewDoubleClickEvent returns a new object representing a triggered event of "DoubleClick" type.

A pointing device button is clicked twice on an element. https://developer.mozilla.org/docs/Web/Events/dblclick

func NewDownloadingEvent

func NewDownloadingEvent(data interface{}, mods ...EventModder) *Event

NewDownloadingEvent returns a new object representing a triggered event of "downloading" type.

The user agent has found an update and is fetching it, or is downloading the resources listed by the cache manifest for the first time. https://developer.mozilla.org/docs/Web/Events/downloading

func NewDragEndEvent

func NewDragEndEvent(data interface{}, mods ...EventModder) *Event

NewDragEndEvent returns a new object representing a triggered event of "DragEnd" type.

A drag operation is being ended (by releasing a mouse button or hitting the escape key). https://developer.mozilla.org/docs/Web/Events/dragend

func NewDragEnterEvent

func NewDragEnterEvent(data interface{}, mods ...EventModder) *Event

NewDragEnterEvent returns a new object representing a triggered event of "DragEnter" type.

A dragged element or text selection enters a valid drop target. https://developer.mozilla.org/docs/Web/Events/dragenter

func NewDragEvent

func NewDragEvent(data interface{}, mods ...EventModder) *Event

NewDragEvent returns a new object representing a triggered event of "drag" type.

An element or text selection is being dragged (every 350ms). https://developer.mozilla.org/docs/Web/Events/drag

func NewDragLeaveEvent

func NewDragLeaveEvent(data interface{}, mods ...EventModder) *Event

NewDragLeaveEvent returns a new object representing a triggered event of "DragLeave" type.

A dragged element or text selection leaves a valid drop target. https://developer.mozilla.org/docs/Web/Events/dragleave

func NewDragOverEvent

func NewDragOverEvent(data interface{}, mods ...EventModder) *Event

NewDragOverEvent returns a new object representing a triggered event of "DragOver" type.

An element or text selection is being dragged over a valid drop target (every 350ms). https://developer.mozilla.org/docs/Web/Events/dragover

func NewDragStartEvent

func NewDragStartEvent(data interface{}, mods ...EventModder) *Event

NewDragStartEvent returns a new object representing a triggered event of "DragStart" type.

The user starts dragging an element or text selection. https://developer.mozilla.org/docs/Web/Events/dragstart

func NewDropEvent

func NewDropEvent(data interface{}, mods ...EventModder) *Event

NewDropEvent returns a new object representing a triggered event of "drop" type.

An element is dropped on a valid drop target. https://developer.mozilla.org/docs/Web/Events/drop

func NewDurationChangeEvent

func NewDurationChangeEvent(data interface{}, mods ...EventModder) *Event

NewDurationChangeEvent returns a new object representing a triggered event of "DurationChange" type.

The duration attribute has been updated. https://developer.mozilla.org/docs/Web/Events/durationchange

func NewEmptiedEvent

func NewEmptiedEvent(data interface{}, mods ...EventModder) *Event

NewEmptiedEvent returns a new object representing a triggered event of "emptied" type.

The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it. https://developer.mozilla.org/docs/Web/Events/emptied

func NewEnabledEvent

func NewEnabledEvent(data interface{}, mods ...EventModder) *Event

NewEnabledEvent returns a new object representing a triggered event of "enabled" type.

Wifi has been enabled on the device. https://developer.mozilla.org/docs/Web/Events/enabled

func NewEndEvent

func NewEndEvent(data interface{}, mods ...EventModder) *Event

NewEndEvent returns a new object representing a triggered event of "end" type.

The utterance has finished being spoken. https://developer.mozilla.org/docs/Web/Events/end_(SpeechSynthesis)

func NewEndEventEvent

func NewEndEventEvent(data interface{}, mods ...EventModder) *Event

NewEndEventEvent returns a new object representing a triggered event of "endEvent" type.

A SMIL animation element ends. https://developer.mozilla.org/docs/Web/Events/endEvent

func NewEndedEvent

func NewEndedEvent(data interface{}, mods ...EventModder) *Event

NewEndedEvent returns a new object representing a triggered event of "ended" type.

Playback has stopped because the end of the media was reached. https://developer.mozilla.org/docs/Web/Events/ended_(Web_Audio)

func NewEvent

func NewEvent(eventName string, data interface{}, mods ...EventModder) *Event

NewEvent returns a new instance of a Event.

func NewFocusEvent

func NewFocusEvent(data interface{}, mods ...EventModder) *Event

NewFocusEvent returns a new object representing a triggered event of "focus" type.

An element has received focus (does not bubble). https://developer.mozilla.org/docs/Web/Events/focus

func NewFocusInEvent

func NewFocusInEvent(data interface{}, mods ...EventModder) *Event

NewFocusInEvent returns a new object representing a triggered event of "FocusIn" type.

An element is about to receive focus (bubbles). https://developer.mozilla.org/docs/Web/Events/focusin

func NewFocusOutEvent

func NewFocusOutEvent(data interface{}, mods ...EventModder) *Event

NewFocusOutEvent returns a new object representing a triggered event of "FocusOut" type.

An element is about to lose focus (bubbles). https://developer.mozilla.org/docs/Web/Events/focusout

func NewFullScreenChangeEvent

func NewFullScreenChangeEvent(data interface{}, mods ...EventModder) *Event

NewFullScreenChangeEvent returns a new object representing a triggered event of "FullScreenChange" type.

An element was turned to fullscreen mode or back to normal mode. https://developer.mozilla.org/docs/Web/Events/fullscreenchange

func NewFullScreenErrorEvent

func NewFullScreenErrorEvent(data interface{}, mods ...EventModder) *Event

NewFullScreenErrorEvent returns a new object representing a triggered event of "FullScreenError" type.

It was impossible to switch to fullscreen mode for technical reasons or because the permission was denied. https://developer.mozilla.org/docs/Web/Events/fullscreenerror

func NewFullscreenEvent

func NewFullscreenEvent(data interface{}, mods ...EventModder) *Event

NewFullscreenEvent returns a new object representing a triggered event of "fullscreen" type.

Browser fullscreen mode has been entered or left. https://developer.mozilla.org/docs/Web/Reference/Events/fullscreen

func NewGamepadConnectedEvent

func NewGamepadConnectedEvent(data interface{}, mods ...EventModder) *Event

NewGamepadConnectedEvent returns a new object representing a triggered event of "GamepadConnected" type.

A gamepad has been connected. https://developer.mozilla.org/docs/Web/Events/gamepadconnected

func NewGamepadDisconnectedEvent

func NewGamepadDisconnectedEvent(data interface{}, mods ...EventModder) *Event

NewGamepadDisconnectedEvent returns a new object representing a triggered event of "GamepadDisconnected" type.

A gamepad has been disconnected. https://developer.mozilla.org/docs/Web/Events/gamepaddisconnected

func NewGotPointerCaptureEvent

func NewGotPointerCaptureEvent(data interface{}, mods ...EventModder) *Event

NewGotPointerCaptureEvent returns a new object representing a triggered event of "GotPointerCapture" type.

Element receives pointer capture. https://developer.mozilla.org/docs/Web/Events/gotpointercapture

func NewHashChangeEvent

func NewHashChangeEvent(data interface{}, mods ...EventModder) *Event

NewHashChangeEvent returns a new object representing a triggered event of "HashChange" type.

The fragment identifier of the URL has changed (the part of the URL after the #). https://developer.mozilla.org/docs/Web/Events/hashchange

func NewHeldEvent

func NewHeldEvent(data interface{}, mods ...EventModder) *Event

NewHeldEvent returns a new object representing a triggered event of "held" type.

A call has been held. https://developer.mozilla.org/docs/Web/Events/held

func NewHoldingEvent

func NewHoldingEvent(data interface{}, mods ...EventModder) *Event

NewHoldingEvent returns a new object representing a triggered event of "holding" type.

A call is about to be held. https://developer.mozilla.org/docs/Web/Events/holding

func NewICCCardLockErrorEvent

func NewICCCardLockErrorEvent(data interface{}, mods ...EventModder) *Event

NewICCCardLockErrorEvent returns a new object representing a triggered event of "ICCCardLockError" type.

the MozMobileConnection.unlockCardLock() or MozMobileConnection.setCardLock() methods fails. https://developer.mozilla.org/docs/Web/Events/icccardlockerror

func NewIccinfochangeEvent

func NewIccinfochangeEvent(data interface{}, mods ...EventModder) *Event

NewIccinfochangeEvent returns a new object representing a triggered event of "iccinfochange" type.

The MozMobileConnection.iccInfo object changes. https://developer.mozilla.org/docs/Web/Events/iccinfochange

func NewIncomingEvent

func NewIncomingEvent(data interface{}, mods ...EventModder) *Event

NewIncomingEvent returns a new object representing a triggered event of "incoming" type.

A call is being received. https://developer.mozilla.org/docs/Web/Events/incoming

func NewInputEvent

func NewInputEvent(data interface{}, mods ...EventModder) *Event

NewInputEvent returns a new object representing a triggered event of "input" type.

The value of an element changes or the content of an element with the attribute contenteditable is modified. https://developer.mozilla.org/docs/Web/Events/input

func NewInvalidEvent

func NewInvalidEvent(data interface{}, mods ...EventModder) *Event

NewInvalidEvent returns a new object representing a triggered event of "invalid" type.

A submittable element has been checked and doesn't satisfy its constraints. https://developer.mozilla.org/docs/Web/Events/invalid

func NewKeyDownEvent

func NewKeyDownEvent(data interface{}, mods ...EventModder) *Event

NewKeyDownEvent returns a new object representing a triggered event of "KeyDown" type.

A key is pressed down. https://developer.mozilla.org/docs/Web/Events/keydown

func NewKeyPressEvent

func NewKeyPressEvent(data interface{}, mods ...EventModder) *Event

NewKeyPressEvent returns a new object representing a triggered event of "KeyPress" type.

A key is pressed down and that key normally produces a character value (use input instead). https://developer.mozilla.org/docs/Web/Events/keypress

func NewKeyUpEvent

func NewKeyUpEvent(data interface{}, mods ...EventModder) *Event

NewKeyUpEvent returns a new object representing a triggered event of "KeyUp" type.

A key is released. https://developer.mozilla.org/docs/Web/Events/keyup

func NewLanguageChangeEvent

func NewLanguageChangeEvent(data interface{}, mods ...EventModder) *Event

NewLanguageChangeEvent returns a new object representing a triggered event of "LanguageChange" type.

The user's preferred languages have changed. https://developer.mozilla.org/docs/Web/Events/languagechange

func NewLevelChangeEvent

func NewLevelChangeEvent(data interface{}, mods ...EventModder) *Event

NewLevelChangeEvent returns a new object representing a triggered event of "LevelChange" type.

The level attribute has been updated. https://developer.mozilla.org/docs/Web/Events/levelchange

func NewLoadEndEvent

func NewLoadEndEvent(data interface{}, mods ...EventModder) *Event

NewLoadEndEvent returns a new object representing a triggered event of "LoadEnd" type.

Progress has stopped (after "error", "abort" or "load" have been dispatched). https://developer.mozilla.org/docs/Web/Events/loadend

func NewLoadEvent

func NewLoadEvent(data interface{}, mods ...EventModder) *Event

NewLoadEvent returns a new object representing a triggered event of "load" type.

Progression has been successful. https://developer.mozilla.org/docs/Web/Reference/Events/load_(ProgressEvent)

func NewLoadStartEvent

func NewLoadStartEvent(data interface{}, mods ...EventModder) *Event

NewLoadStartEvent returns a new object representing a triggered event of "LoadStart" type.

Progress has begun. https://developer.mozilla.org/docs/Web/Events/loadstart

func NewLoadedDataEvent

func NewLoadedDataEvent(data interface{}, mods ...EventModder) *Event

NewLoadedDataEvent returns a new object representing a triggered event of "LoadedData" type.

The first frame of the media has finished loading. https://developer.mozilla.org/docs/Web/Events/loadeddata

func NewLoadedMetadataEvent

func NewLoadedMetadataEvent(data interface{}, mods ...EventModder) *Event

NewLoadedMetadataEvent returns a new object representing a triggered event of "LoadedMetadata" type.

The metadata has been loaded. https://developer.mozilla.org/docs/Web/Events/loadedmetadata

func NewLocalizedEvent

func NewLocalizedEvent(data interface{}, mods ...EventModder) *Event

NewLocalizedEvent returns a new object representing a triggered event of "localized" type.

The page has been localized using data-l10n-* attributes. https://developer.mozilla.org/docs/Web/Events/localized

func NewLostPointerCaptureEvent

func NewLostPointerCaptureEvent(data interface{}, mods ...EventModder) *Event

NewLostPointerCaptureEvent returns a new object representing a triggered event of "LostPointerCapture" type.

Element lost pointer capture. https://developer.mozilla.org/docs/Web/Events/lostpointercapture

func NewMSManipulationStateChangedEvent

func NewMSManipulationStateChangedEvent(data interface{}, mods ...EventModder) *Event

NewMSManipulationStateChangedEvent returns a new object representing a triggered event of "MSManipulationStateChanged" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/MSManipulationStateChanged

func NewMarkEvent

func NewMarkEvent(data interface{}, mods ...EventModder) *Event

NewMarkEvent returns a new object representing a triggered event of "mark" type.

The spoken utterance reaches a named SSML "mark" tag. https://developer.mozilla.org/docs/Web/Events/mark

func NewMessageErrorEvent

func NewMessageErrorEvent(data interface{}, mods ...EventModder) *Event

NewMessageErrorEvent returns a new object representing a triggered event of "MessageError" type.

A message error is raised when a message is received by an object. https://developer.mozilla.org/docs/Web/Events/messageerror

func NewMessageEvent

func NewMessageEvent(data interface{}, mods ...EventModder) *Event

NewMessageEvent returns a new object representing a triggered event of "message" type.

A message is received from a service worker, or a message is received in a service worker from another context. https://developer.mozilla.org/docs/Web/Events/message_(ServiceWorker)

func NewMouseDownEvent

func NewMouseDownEvent(data interface{}, mods ...EventModder) *Event

NewMouseDownEvent returns a new object representing a triggered event of "MouseDown" type.

A pointing device button (usually a mouse) is pressed on an element. https://developer.mozilla.org/docs/Web/Events/mousedown

func NewMouseEnterEvent

func NewMouseEnterEvent(data interface{}, mods ...EventModder) *Event

NewMouseEnterEvent returns a new object representing a triggered event of "MouseEnter" type.

A pointing device is moved onto the element that has the listener attached. https://developer.mozilla.org/docs/Web/Events/mouseenter

func NewMouseLeaveEvent

func NewMouseLeaveEvent(data interface{}, mods ...EventModder) *Event

NewMouseLeaveEvent returns a new object representing a triggered event of "MouseLeave" type.

A pointing device is moved off the element that has the listener attached. https://developer.mozilla.org/docs/Web/Events/mouseleave

func NewMouseMoveEvent

func NewMouseMoveEvent(data interface{}, mods ...EventModder) *Event

NewMouseMoveEvent returns a new object representing a triggered event of "MouseMove" type.

A pointing device is moved over an element. https://developer.mozilla.org/docs/Web/Events/mousemove

func NewMouseOutEvent

func NewMouseOutEvent(data interface{}, mods ...EventModder) *Event

NewMouseOutEvent returns a new object representing a triggered event of "MouseOut" type.

A pointing device is moved off the element that has the listener attached or off one of its children. https://developer.mozilla.org/docs/Web/Events/mouseout

func NewMouseOverEvent

func NewMouseOverEvent(data interface{}, mods ...EventModder) *Event

NewMouseOverEvent returns a new object representing a triggered event of "MouseOver" type.

A pointing device is moved onto the element that has the listener attached or onto one of its children. https://developer.mozilla.org/docs/Web/Events/mouseover

func NewMouseUpEvent

func NewMouseUpEvent(data interface{}, mods ...EventModder) *Event

NewMouseUpEvent returns a new object representing a triggered event of "MouseUp" type.

A pointing device button is released over an element. https://developer.mozilla.org/docs/Web/Events/mouseup

func NewMozAfterPaintEvent

func NewMozAfterPaintEvent(data interface{}, mods ...EventModder) *Event

NewMozAfterPaintEvent returns a new object representing a triggered event of "MozAfterPaint" type.

Content has been repainted. https://developer.mozilla.org/docs/Web/Reference/Events/MozAfterPaint

func NewMozAudioAvailableEvent

func NewMozAudioAvailableEvent(data interface{}, mods ...EventModder) *Event

NewMozAudioAvailableEvent returns a new object representing a triggered event of "MozAudioAvailable" type.

The audio buffer is full and the corresponding raw samples are available. https://developer.mozilla.org/docs/Web/Events/MozAudioAvailable

func NewMozBeforeResizeEvent

func NewMozBeforeResizeEvent(data interface{}, mods ...EventModder) *Event

NewMozBeforeResizeEvent returns a new object representing a triggered event of "MozBeforeResize" type.

A window is about to be resized. https://developer.mozilla.org/docs/Web/Reference/Events/MozBeforeResize

func NewMozEdgeUIGestureEvent

func NewMozEdgeUIGestureEvent(data interface{}, mods ...EventModder) *Event

NewMozEdgeUIGestureEvent returns a new object representing a triggered event of "MozEdgeUIGesture" type.

A touch point is swiped across the touch surface to invoke the edge UI (Win8 only). https://developer.mozilla.org/docs/Web/Reference/Events/MozEdgeUIGesture

func NewMozEnteredDomFullscreenEvent

func NewMozEnteredDomFullscreenEvent(data interface{}, mods ...EventModder) *Event

NewMozEnteredDomFullscreenEvent returns a new object representing a triggered event of "MozEnteredDomFullscreen" type.

DOM fullscreen mode has been entered. https://developer.mozilla.org/docs/Web/Reference/Events/MozEnteredDomFullscreen

func NewMozGamepadButtonDownEvent

func NewMozGamepadButtonDownEvent(data interface{}, mods ...EventModder) *Event

NewMozGamepadButtonDownEvent returns a new object representing a triggered event of "MozGamepadButtonDown" type.

A gamepad button is pressed down. https://developer.mozilla.org/docs/Web/Events/MozGamepadButtonDown

func NewMozGamepadButtonUpEvent

func NewMozGamepadButtonUpEvent(data interface{}, mods ...EventModder) *Event

NewMozGamepadButtonUpEvent returns a new object representing a triggered event of "MozGamepadButtonUp" type.

A gamepad button is released. https://developer.mozilla.org/docs/Web/Events/MozGamepadButtonUp

func NewMozMagnifyGestureEvent

func NewMozMagnifyGestureEvent(data interface{}, mods ...EventModder) *Event

NewMozMagnifyGestureEvent returns a new object representing a triggered event of "MozMagnifyGesture" type.

Two touch points moved away from each other (after a sequence of MozMagnifyGestureUpdate). https://developer.mozilla.org/docs/Web/Reference/Events/MozMagnifyGesture

func NewMozMagnifyGestureStartEvent

func NewMozMagnifyGestureStartEvent(data interface{}, mods ...EventModder) *Event

NewMozMagnifyGestureStartEvent returns a new object representing a triggered event of "MozMagnifyGestureStart" type.

Two touch points start to move away from each other. https://developer.mozilla.org/docs/Web/Reference/Events/MozMagnifyGestureStart

func NewMozMagnifyGestureUpdateEvent

func NewMozMagnifyGestureUpdateEvent(data interface{}, mods ...EventModder) *Event

NewMozMagnifyGestureUpdateEvent returns a new object representing a triggered event of "MozMagnifyGestureUpdate" type.

Two touch points move away from each other (after a MozMagnifyGestureStart). https://developer.mozilla.org/docs/Web/Reference/Events/MozMagnifyGestureUpdate

func NewMozPressTapGestureEvent

func NewMozPressTapGestureEvent(data interface{}, mods ...EventModder) *Event

NewMozPressTapGestureEvent returns a new object representing a triggered event of "MozPressTapGesture" type.

A "press-tap" gesture happened on the touch surface (first finger down, second finger down, second finger up, first finger up). https://developer.mozilla.org/docs/Web/Reference/Events/MozPressTapGesture

func NewMozRotateGestureEvent

func NewMozRotateGestureEvent(data interface{}, mods ...EventModder) *Event

NewMozRotateGestureEvent returns a new object representing a triggered event of "MozRotateGesture" type.

Two touch points rotate around a point (after a sequence of MozRotateGestureUpdate). https://developer.mozilla.org/docs/Web/Reference/Events/MozRotateGesture

func NewMozRotateGestureStartEvent

func NewMozRotateGestureStartEvent(data interface{}, mods ...EventModder) *Event

NewMozRotateGestureStartEvent returns a new object representing a triggered event of "MozRotateGestureStart" type.

Two touch points start to rotate around a point. https://developer.mozilla.org/docs/Web/Reference/Events/MozRotateGestureStart

func NewMozRotateGestureUpdateEvent

func NewMozRotateGestureUpdateEvent(data interface{}, mods ...EventModder) *Event

NewMozRotateGestureUpdateEvent returns a new object representing a triggered event of "MozRotateGestureUpdate" type.

Two touch points rotate around a point (after a MozRotateGestureStart). https://developer.mozilla.org/docs/Web/Reference/Events/MozRotateGestureUpdate

func NewMozScrolledAreaChangedEvent

func NewMozScrolledAreaChangedEvent(data interface{}, mods ...EventModder) *Event

NewMozScrolledAreaChangedEvent returns a new object representing a triggered event of "MozScrolledAreaChanged" type.

The document view has been scrolled or resized. https://developer.mozilla.org/docs/Web/Events/MozScrolledAreaChanged

func NewMozSwipeGestureEvent

func NewMozSwipeGestureEvent(data interface{}, mods ...EventModder) *Event

NewMozSwipeGestureEvent returns a new object representing a triggered event of "MozSwipeGesture" type.

A touch point is swiped across the touch surface https://developer.mozilla.org/docs/Web/Reference/Events/MozSwipeGesture

func NewMozTapGestureEvent

func NewMozTapGestureEvent(data interface{}, mods ...EventModder) *Event

NewMozTapGestureEvent returns a new object representing a triggered event of "MozTapGesture" type.

Two touch points are tapped on the touch surface. https://developer.mozilla.org/docs/Web/Reference/Events/MozTapGesture

func NewMozbrowseractivitydoneEvent

func NewMozbrowseractivitydoneEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowseractivitydoneEvent returns a new object representing a triggered event of "mozbrowseractivitydone" type.

Sent when some activity has been completed (complete description TBD.) https://developer.mozilla.org/docs/Web/Events/mozbrowseractivitydone

func NewMozbrowserasyncscrollEvent

func NewMozbrowserasyncscrollEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserasyncscrollEvent returns a new object representing a triggered event of "mozbrowserasyncscroll" type.

Sent when the scroll position within a browser <iframe> changes. https://developer.mozilla.org/docs/Web/Events/mozbrowserasyncscroll

func NewMozbrowseraudioplaybackchangeEvent

func NewMozbrowseraudioplaybackchangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowseraudioplaybackchangeEvent returns a new object representing a triggered event of "mozbrowseraudioplaybackchange" type.

Sent when audio starts or stops playing within the browser <iframe> content. https://developer.mozilla.org/docs/Web/Events/mozbrowseraudioplaybackchange

func NewMozbrowsercaretstatechangedEvent

func NewMozbrowsercaretstatechangedEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsercaretstatechangedEvent returns a new object representing a triggered event of "mozbrowsercaretstatechanged" type.

Sent when the text selected inside the browser <iframe> content changes. https://developer.mozilla.org/docs/Web/Events/mozbrowsercaretstatechanged

func NewMozbrowsercloseEvent

func NewMozbrowsercloseEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsercloseEvent returns a new object representing a triggered event of "mozbrowserclose" type.

Sent when window.close() is called within a browser <iframe>. https://developer.mozilla.org/docs/Web/Events/mozbrowserclose

func NewMozbrowsercontextmenuEvent

func NewMozbrowsercontextmenuEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsercontextmenuEvent returns a new object representing a triggered event of "mozbrowsercontextmenu" type.

Sent when a browser <iframe> try to open a context menu. https://developer.mozilla.org/docs/Web/Events/mozbrowsercontextmenu

func NewMozbrowserdocumentfirstpaintEvent

func NewMozbrowserdocumentfirstpaintEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserdocumentfirstpaintEvent returns a new object representing a triggered event of "mozbrowserdocumentfirstpaint" type.

Sent when a new paint occurs on any document in the browser <iframe>. https://developer.mozilla.org/docs/Web/Events/mozbrowserdocumentfirstpaint

func NewMozbrowsererrorEvent

func NewMozbrowsererrorEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsererrorEvent returns a new object representing a triggered event of "mozbrowsererror" type.

Sent when an error occured while trying to load a content within a browser iframe https://developer.mozilla.org/docs/Web/Events/mozbrowsererror

func NewMozbrowserfindchangeEvent

func NewMozbrowserfindchangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserfindchangeEvent returns a new object representing a triggered event of "mozbrowserfindchange" type.

Sent when a search operation is performed on the browser <iframe> content (see HTMLIFrameElement search methods.) https://developer.mozilla.org/docs/Web/Events/mozbrowserfindchange

func NewMozbrowserfirstpaintEvent

func NewMozbrowserfirstpaintEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserfirstpaintEvent returns a new object representing a triggered event of "mozbrowserfirstpaint" type.

Sent when the <iframe> paints content for the first time (this doesn't include the initial paint from about:blank.) https://developer.mozilla.org/docs/Web/Events/mozbrowserfirstpaint

func NewMozbrowsericonchangeEvent

func NewMozbrowsericonchangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsericonchangeEvent returns a new object representing a triggered event of "mozbrowsericonchange" type.

Sent when the favicon of a browser iframe changes. https://developer.mozilla.org/docs/Web/Events/mozbrowsericonchange

func NewMozbrowserloadendEvent

func NewMozbrowserloadendEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserloadendEvent returns a new object representing a triggered event of "mozbrowserloadend" type.

Sent when the browser iframe has finished loading all its assets. https://developer.mozilla.org/docs/Web/Events/mozbrowserloadend

func NewMozbrowserloadstartEvent

func NewMozbrowserloadstartEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserloadstartEvent returns a new object representing a triggered event of "mozbrowserloadstart" type.

Sent when the browser iframe starts to load a new page. https://developer.mozilla.org/docs/Web/Events/mozbrowserloadstart

func NewMozbrowserlocationchangeEvent

func NewMozbrowserlocationchangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserlocationchangeEvent returns a new object representing a triggered event of "mozbrowserlocationchange" type.

Sent when an browser iframe's location changes. https://developer.mozilla.org/docs/Web/Events/mozbrowserlocationchange

func NewMozbrowsermanifestchangeEvent

func NewMozbrowsermanifestchangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsermanifestchangeEvent returns a new object representing a triggered event of "mozbrowsermanifestchange" type.

Sent when a the path to the app manifest changes, in the case of a browser <iframe> with an open web app embedded in it. https://developer.mozilla.org/docs/Web/Events/mozbrowsermanifestchange

func NewMozbrowsermetachangeEvent

func NewMozbrowsermetachangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsermetachangeEvent returns a new object representing a triggered event of "mozbrowsermetachange" type.

Sent when a <meta> elelment is added to, removed from or changed in the browser <iframe>'s content. https://developer.mozilla.org/docs/Web/Events/mozbrowsermetachange

func NewMozbrowseropensearchEvent

func NewMozbrowseropensearchEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowseropensearchEvent returns a new object representing a triggered event of "mozbrowseropensearch" type.

Sent when a link to a search engine is found. https://developer.mozilla.org/docs/Web/Events/mozbrowseropensearch

func NewMozbrowseropentabEvent

func NewMozbrowseropentabEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowseropentabEvent returns a new object representing a triggered event of "mozbrowseropentab" type.

Sent when a new tab is opened within a browser <iframe> as a result of the user issuing a command to open a link target in a new tab (for example ctrl/cmd + click.) https://developer.mozilla.org/docs/Web/Events/mozbrowseropentab

func NewMozbrowseropenwindowEvent

func NewMozbrowseropenwindowEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowseropenwindowEvent returns a new object representing a triggered event of "mozbrowseropenwindow" type.

Sent when window.open() is called within a browser iframe. https://developer.mozilla.org/docs/Web/Events/mozbrowseropenwindow

func NewMozbrowserresizeEvent

func NewMozbrowserresizeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserresizeEvent returns a new object representing a triggered event of "mozbrowserresize" type.

Sent when the browser <iframe>'s window size has changed. https://developer.mozilla.org/docs/Web/Events/mozbrowserresize

func NewMozbrowserscrollEvent

func NewMozbrowserscrollEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserscrollEvent returns a new object representing a triggered event of "mozbrowserscroll" type.

Sent when the browser <iframe> content scrolls. https://developer.mozilla.org/docs/Web/Events/mozbrowserscroll

func NewMozbrowserscrollareachangedEvent

func NewMozbrowserscrollareachangedEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserscrollareachangedEvent returns a new object representing a triggered event of "mozbrowserscrollareachanged" type.

Sent when the available scrolling area in the browser <iframe> changes. This can occur on resize and when the page size changes (while loading for example.) https://developer.mozilla.org/docs/Web/Events/mozbrowserscrollareachanged

func NewMozbrowserscrollviewchangeEvent

func NewMozbrowserscrollviewchangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserscrollviewchangeEvent returns a new object representing a triggered event of "mozbrowserscrollviewchange" type.

Sent when asynchronous scrolling (i.e. APCZ) starts or stops. https://developer.mozilla.org/docs/Web/Events/mozbrowserscrollviewchange

func NewMozbrowsersecuritychangeEvent

func NewMozbrowsersecuritychangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsersecuritychangeEvent returns a new object representing a triggered event of "mozbrowsersecuritychange" type.

Sent when the SSL state changes within a browser iframe. https://developer.mozilla.org/docs/Web/Events/mozbrowsersecuritychange

func NewMozbrowserselectionstatechangedEvent

func NewMozbrowserselectionstatechangedEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserselectionstatechangedEvent returns a new object representing a triggered event of "mozbrowserselectionstatechanged" type.

Sent when the text selected inside the browser <iframe> content changes. Note that this is deprecated, and newer implementations use mozbrowsercaretstatechanged instead. https://developer.mozilla.org/docs/Web/Events/mozbrowserselectionstatechanged

func NewMozbrowsershowmodalpromptEvent

func NewMozbrowsershowmodalpromptEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsershowmodalpromptEvent returns a new object representing a triggered event of "mozbrowsershowmodalprompt" type.

Sent when alert(), confirm() or prompt() are called within a browser iframe https://developer.mozilla.org/docs/Web/Events/mozbrowsershowmodalprompt

func NewMozbrowsertitlechangeEvent

func NewMozbrowsertitlechangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowsertitlechangeEvent returns a new object representing a triggered event of "mozbrowsertitlechange" type.

Sent when the document.title changes within a browser iframe. https://developer.mozilla.org/docs/Web/Events/mozbrowsertitlechange

func NewMozbrowserusernameandpasswordrequiredEvent

func NewMozbrowserusernameandpasswordrequiredEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowserusernameandpasswordrequiredEvent returns a new object representing a triggered event of "mozbrowserusernameandpasswordrequired" type.

Sent when an HTTP authentification is requested. https://developer.mozilla.org/docs/Web/Events/mozbrowserusernameandpasswordrequired

func NewMozbrowservisibilitychangeEvent

func NewMozbrowservisibilitychangeEvent(data interface{}, mods ...EventModder) *Event

NewMozbrowservisibilitychangeEvent returns a new object representing a triggered event of "mozbrowservisibilitychange" type.

Sent when the visibility state of the current browser iframe <iframe> changes, for example due to a call to setVisible(). https://developer.mozilla.org/docs/Web/Events/mozbrowservisibilitychange

func NewMoztimechangeEvent

func NewMoztimechangeEvent(data interface{}, mods ...EventModder) *Event

NewMoztimechangeEvent returns a new object representing a triggered event of "moztimechange" type.

The time of the device has been changed. https://developer.mozilla.org/docs/Web/Events/moztimechange

func NewMsContentZoomEvent

func NewMsContentZoomEvent(data interface{}, mods ...EventModder) *Event

NewMsContentZoomEvent returns a new object representing a triggered event of "msContentZoom" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/msContentZoom

func NewNoMatchEvent

func NewNoMatchEvent(data interface{}, mods ...EventModder) *Event

NewNoMatchEvent returns a new object representing a triggered event of "NoMatch" type.

The speech recognition service returns a final result with no significant recognition. https://developer.mozilla.org/docs/Web/Events/nomatch

func NewNoUpdateEvent

func NewNoUpdateEvent(data interface{}, mods ...EventModder) *Event

NewNoUpdateEvent returns a new object representing a triggered event of "NoUpdate" type.

The manifest hadn't changed. https://developer.mozilla.org/docs/Web/Events/noupdate

func NewNotificationClickEvent

func NewNotificationClickEvent(data interface{}, mods ...EventModder) *Event

NewNotificationClickEvent returns a new object representing a triggered event of "NotificationClick" type.

A system notification spawned by ServiceWorkerRegistration.showNotification() has been clicked. https://developer.mozilla.org/docs/Web/Events/notificationclick

func NewObsoleteEvent

func NewObsoleteEvent(data interface{}, mods ...EventModder) *Event

NewObsoleteEvent returns a new object representing a triggered event of "obsolete" type.

The manifest was found to have become a 404 or 410 page, so the application cache is being deleted. https://developer.mozilla.org/docs/Web/Events/obsolete

func NewOfflineEvent

func NewOfflineEvent(data interface{}, mods ...EventModder) *Event

NewOfflineEvent returns a new object representing a triggered event of "offline" type.

The browser has lost access to the network. https://developer.mozilla.org/docs/Web/Events/offline

func NewOnconnectedEvent

func NewOnconnectedEvent(data interface{}, mods ...EventModder) *Event

NewOnconnectedEvent returns a new object representing a triggered event of "onconnected" type.

A call has been connected. https://developer.mozilla.org/docs/DOM/onconnected

func NewOnlineEvent

func NewOnlineEvent(data interface{}, mods ...EventModder) *Event

NewOnlineEvent returns a new object representing a triggered event of "online" type.

The browser has gained access to the network (but particular websites might be unreachable). https://developer.mozilla.org/docs/Web/Events/online

func NewOpenEvent

func NewOpenEvent(data interface{}, mods ...EventModder) *Event

NewOpenEvent returns a new object representing a triggered event of "open" type.

An event source connection has been established. https://developer.mozilla.org/docs/Web/Reference/Events/open_serversentevents

func NewOrientationChangeEvent

func NewOrientationChangeEvent(data interface{}, mods ...EventModder) *Event

NewOrientationChangeEvent returns a new object representing a triggered event of "OrientationChange" type.

The orientation of the device (portrait/landscape) has changed https://developer.mozilla.org/docs/Web/Events/orientationchange

func NewOverflowEvent

func NewOverflowEvent(data interface{}, mods ...EventModder) *Event

NewOverflowEvent returns a new object representing a triggered event of "overflow" type.

An element has been overflowed by its content or has been rendered for the first time in this state (only works for elements styled with overflow != visible). https://developer.mozilla.org/docs/Web/Events/overflow

func NewPageHideEvent

func NewPageHideEvent(data interface{}, mods ...EventModder) *Event

NewPageHideEvent returns a new object representing a triggered event of "PageHide" type.

A session history entry is being traversed from. https://developer.mozilla.org/docs/Web/Events/pagehide

func NewPageShowEvent

func NewPageShowEvent(data interface{}, mods ...EventModder) *Event

NewPageShowEvent returns a new object representing a triggered event of "PageShow" type.

A session history entry is being traversed to. https://developer.mozilla.org/docs/Web/Events/pageshow

func NewPasteEvent

func NewPasteEvent(data interface{}, mods ...EventModder) *Event

NewPasteEvent returns a new object representing a triggered event of "paste" type.

Data has been transferred from the system clipboard to the document. https://developer.mozilla.org/docs/Web/Events/paste

func NewPauseEvent

func NewPauseEvent(data interface{}, mods ...EventModder) *Event

NewPauseEvent returns a new object representing a triggered event of "pause" type.

The utterance is paused part way through. https://developer.mozilla.org/docs/Web/Events/pause_(SpeechSynthesis)

func NewPlayEvent

func NewPlayEvent(data interface{}, mods ...EventModder) *Event

NewPlayEvent returns a new object representing a triggered event of "play" type.

Playback has begun. https://developer.mozilla.org/docs/Web/Events/play

func NewPlayingEvent

func NewPlayingEvent(data interface{}, mods ...EventModder) *Event

NewPlayingEvent returns a new object representing a triggered event of "playing" type.

Playback is ready to start after having been paused or delayed due to lack of data. https://developer.mozilla.org/docs/Web/Events/playing

func NewPointerCancelEvent

func NewPointerCancelEvent(data interface{}, mods ...EventModder) *Event

NewPointerCancelEvent returns a new object representing a triggered event of "PointerCancel" type.

The pointer is unlikely to produce any more events. https://developer.mozilla.org/docs/Web/Events/pointercancel

func NewPointerDownEvent

func NewPointerDownEvent(data interface{}, mods ...EventModder) *Event

NewPointerDownEvent returns a new object representing a triggered event of "PointerDown" type.

The pointer enters the active buttons state. https://developer.mozilla.org/docs/Web/Events/pointerdown

func NewPointerEnterEvent

func NewPointerEnterEvent(data interface{}, mods ...EventModder) *Event

NewPointerEnterEvent returns a new object representing a triggered event of "PointerEnter" type.

Pointing device is moved inside the hit-testing boundary. https://developer.mozilla.org/docs/Web/Events/pointerenter

func NewPointerLeaveEvent

func NewPointerLeaveEvent(data interface{}, mods ...EventModder) *Event

NewPointerLeaveEvent returns a new object representing a triggered event of "PointerLeave" type.

Pointing device is moved out of the hit-testing boundary. https://developer.mozilla.org/docs/Web/Events/pointerleave

func NewPointerLockChangeEvent

func NewPointerLockChangeEvent(data interface{}, mods ...EventModder) *Event

NewPointerLockChangeEvent returns a new object representing a triggered event of "PointerLockChange" type.

The pointer was locked or released. https://developer.mozilla.org/docs/Web/Events/pointerlockchange

func NewPointerLockErrorEvent

func NewPointerLockErrorEvent(data interface{}, mods ...EventModder) *Event

NewPointerLockErrorEvent returns a new object representing a triggered event of "PointerLockError" type.

It was impossible to lock the pointer for technical reasons or because the permission was denied. https://developer.mozilla.org/docs/Web/Events/pointerlockerror

func NewPointerMoveEvent

func NewPointerMoveEvent(data interface{}, mods ...EventModder) *Event

NewPointerMoveEvent returns a new object representing a triggered event of "PointerMove" type.

The pointer changed coordinates. https://developer.mozilla.org/docs/Web/Events/pointermove

func NewPointerOutEvent

func NewPointerOutEvent(data interface{}, mods ...EventModder) *Event

NewPointerOutEvent returns a new object representing a triggered event of "PointerOut" type.

The pointing device moved out of hit-testing boundary or leaves detectable hover range. https://developer.mozilla.org/docs/Web/Events/pointerout

func NewPointerOverEvent

func NewPointerOverEvent(data interface{}, mods ...EventModder) *Event

NewPointerOverEvent returns a new object representing a triggered event of "PointerOver" type.

The pointing device is moved into the hit-testing boundary. https://developer.mozilla.org/docs/Web/Events/pointerover

func NewPointerUpEvent

func NewPointerUpEvent(data interface{}, mods ...EventModder) *Event

NewPointerUpEvent returns a new object representing a triggered event of "PointerUp" type.

The pointer leaves the active buttons state. https://developer.mozilla.org/docs/Web/Events/pointerup

func NewPopStateEvent

func NewPopStateEvent(data interface{}, mods ...EventModder) *Event

NewPopStateEvent returns a new object representing a triggered event of "PopState" type.

A session history entry is being navigated to (in certain cases). https://developer.mozilla.org/docs/Web/Events/popstate

func NewPopuphiddenEvent

func NewPopuphiddenEvent(data interface{}, mods ...EventModder) *Event

NewPopuphiddenEvent returns a new object representing a triggered event of "popuphidden" type.

A menupopup, panel or tooltip has been hidden. https://developer.mozilla.org/docs/Web/Events/popuphidden

func NewPopuphidingEvent

func NewPopuphidingEvent(data interface{}, mods ...EventModder) *Event

NewPopuphidingEvent returns a new object representing a triggered event of "popuphiding" type.

A menupopup, panel or tooltip is about to be hidden. https://developer.mozilla.org/docs/Web/Events/popuphiding

func NewPopupshowingEvent

func NewPopupshowingEvent(data interface{}, mods ...EventModder) *Event

NewPopupshowingEvent returns a new object representing a triggered event of "popupshowing" type.

A menupopup, panel or tooltip is about to become visible. https://developer.mozilla.org/docs/Web/Events/popupshowing

func NewPopupshownEvent

func NewPopupshownEvent(data interface{}, mods ...EventModder) *Event

NewPopupshownEvent returns a new object representing a triggered event of "popupshown" type.

A menupopup, panel or tooltip has become visible. https://developer.mozilla.org/docs/Web/Events/popupshown

func NewProgressEvent

func NewProgressEvent(data interface{}, mods ...EventModder) *Event

NewProgressEvent returns a new object representing a triggered event of "progress" type.

The user agent is downloading resources listed by the manifest. https://developer.mozilla.org/docs/Web/Reference/Events/progress_(appcache_event)

func NewPushEvent

func NewPushEvent(data interface{}, mods ...EventModder) *Event

NewPushEvent returns a new object representing a triggered event of "push" type.

A Service Worker has received a push message. https://developer.mozilla.org/docs/Web/Events/push

func NewPushSubscriptionChangeEvent

func NewPushSubscriptionChangeEvent(data interface{}, mods ...EventModder) *Event

NewPushSubscriptionChangeEvent returns a new object representing a triggered event of "PushSubscriptionChange" type.

A PushSubscription has expired. https://developer.mozilla.org/docs/Web/Events/pushsubscriptionchange

func NewRadioStateChangeEvent

func NewRadioStateChangeEvent(data interface{}, mods ...EventModder) *Event

NewRadioStateChangeEvent returns a new object representing a triggered event of "RadioStateChange" type.

The state of a radio has been changed either by a user action or by a script (useful for accessibility). https://developer.mozilla.org/docs/Web/Events/RadioStateChange

func NewRateChangeEvent

func NewRateChangeEvent(data interface{}, mods ...EventModder) *Event

NewRateChangeEvent returns a new object representing a triggered event of "RateChange" type.

The playback rate has changed. https://developer.mozilla.org/docs/Web/Events/ratechange

func NewReadyStateChangeEvent

func NewReadyStateChangeEvent(data interface{}, mods ...EventModder) *Event

NewReadyStateChangeEvent returns a new object representing a triggered event of "ReadyStateChange" type.

The readyState attribute of a document has changed. https://developer.mozilla.org/docs/Web/Events/readystatechange

func NewReceivedEvent

func NewReceivedEvent(data interface{}, mods ...EventModder) *Event

NewReceivedEvent returns a new object representing a triggered event of "received" type.

An SMS has been received. https://developer.mozilla.org/docs/Web/Events/received

func NewRepeatEventEvent

func NewRepeatEventEvent(data interface{}, mods ...EventModder) *Event

NewRepeatEventEvent returns a new object representing a triggered event of "repeatEvent" type.

A SMIL animation element is repeated. https://developer.mozilla.org/docs/Web/Events/repeatEvent

func NewResetEvent

func NewResetEvent(data interface{}, mods ...EventModder) *Event

NewResetEvent returns a new object representing a triggered event of "reset" type.

A form is reset. https://developer.mozilla.org/docs/Web/Events/reset

func NewResizeEvent

func NewResizeEvent(data interface{}, mods ...EventModder) *Event

NewResizeEvent returns a new object representing a triggered event of "resize" type.

The document view has been resized. https://developer.mozilla.org/docs/Web/Events/resize

func NewResourceTimingBufferFullEvent

func NewResourceTimingBufferFullEvent(data interface{}, mods ...EventModder) *Event

NewResourceTimingBufferFullEvent returns a new object representing a triggered event of "ResourceTimingBufferFull" type.

The browser's resource timing buffer is full. https://developer.mozilla.org/docs/Web/Events/resourcetimingbufferfull

func NewResultEvent

func NewResultEvent(data interface{}, mods ...EventModder) *Event

NewResultEvent returns a new object representing a triggered event of "result" type.

The speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app. https://developer.mozilla.org/docs/Web/Events/result

func NewResumeEvent

func NewResumeEvent(data interface{}, mods ...EventModder) *Event

NewResumeEvent returns a new object representing a triggered event of "resume" type.

A paused utterance is resumed. https://developer.mozilla.org/docs/Web/Events/resume

func NewResumingEvent

func NewResumingEvent(data interface{}, mods ...EventModder) *Event

NewResumingEvent returns a new object representing a triggered event of "resuming" type.

A call is about to resume. https://developer.mozilla.org/docs/Web/Events/resuming

func NewSSTabClosingEvent

func NewSSTabClosingEvent(data interface{}, mods ...EventModder) *Event

NewSSTabClosingEvent returns a new object representing a triggered event of "SSTabClosing" type.

The session store will stop tracking this tab. https://developer.mozilla.org/docs/Web/Reference/Events/SSTabClosing

func NewSSTabRestoredEvent

func NewSSTabRestoredEvent(data interface{}, mods ...EventModder) *Event

NewSSTabRestoredEvent returns a new object representing a triggered event of "SSTabRestored" type.

A tab has been restored. https://developer.mozilla.org/docs/Web/Reference/Events/SSTabRestored

func NewSSTabRestoringEvent

func NewSSTabRestoringEvent(data interface{}, mods ...EventModder) *Event

NewSSTabRestoringEvent returns a new object representing a triggered event of "SSTabRestoring" type.

A tab is about to be restored. https://developer.mozilla.org/docs/Web/Reference/Events/SSTabRestoring

func NewSSWindowClosingEvent

func NewSSWindowClosingEvent(data interface{}, mods ...EventModder) *Event

NewSSWindowClosingEvent returns a new object representing a triggered event of "SSWindowClosing" type.

The session store will stop tracking this window. https://developer.mozilla.org/docs/Web/Reference/Events/SSWindowClosing

func NewSSWindowStateBusyEvent

func NewSSWindowStateBusyEvent(data interface{}, mods ...EventModder) *Event

NewSSWindowStateBusyEvent returns a new object representing a triggered event of "SSWindowStateBusy" type.

A window state has switched to "busy". https://developer.mozilla.org/docs/Web/Reference/Events/SSWindowStateBusy

func NewSSWindowStateReadyEvent

func NewSSWindowStateReadyEvent(data interface{}, mods ...EventModder) *Event

NewSSWindowStateReadyEvent returns a new object representing a triggered event of "SSWindowStateReady" type.

A window state has switched to "ready". https://developer.mozilla.org/docs/Web/Reference/Events/SSWindowStateReady

func NewSVGAbortEvent

func NewSVGAbortEvent(data interface{}, mods ...EventModder) *Event

NewSVGAbortEvent returns a new object representing a triggered event of "SVGAbort" type.

Page loading has been stopped before the SVG was loaded. https://developer.mozilla.org/docs/Web/Events/SVGAbort

func NewSVGErrorEvent

func NewSVGErrorEvent(data interface{}, mods ...EventModder) *Event

NewSVGErrorEvent returns a new object representing a triggered event of "SVGError" type.

An error has occurred before the SVG was loaded. https://developer.mozilla.org/docs/Web/Events/SVGError

func NewSVGLoadEvent

func NewSVGLoadEvent(data interface{}, mods ...EventModder) *Event

NewSVGLoadEvent returns a new object representing a triggered event of "SVGLoad" type.

An SVG document has been loaded and parsed. https://developer.mozilla.org/docs/Web/Events/SVGLoad

func NewSVGResizeEvent

func NewSVGResizeEvent(data interface{}, mods ...EventModder) *Event

NewSVGResizeEvent returns a new object representing a triggered event of "SVGResize" type.

An SVG document is being resized. https://developer.mozilla.org/docs/Web/Events/SVGResize

func NewSVGScrollEvent

func NewSVGScrollEvent(data interface{}, mods ...EventModder) *Event

NewSVGScrollEvent returns a new object representing a triggered event of "SVGScroll" type.

An SVG document is being scrolled. https://developer.mozilla.org/docs/Web/Events/SVGScroll

func NewSVGUnloadEvent

func NewSVGUnloadEvent(data interface{}, mods ...EventModder) *Event

NewSVGUnloadEvent returns a new object representing a triggered event of "SVGUnload" type.

An SVG document has been removed from a window or frame. https://developer.mozilla.org/docs/Web/Events/SVGUnload

func NewSVGZoomEvent

func NewSVGZoomEvent(data interface{}, mods ...EventModder) *Event

NewSVGZoomEvent returns a new object representing a triggered event of "SVGZoom" type.

An SVG document is being zoomed. https://developer.mozilla.org/docs/Web/Events/SVGZoom

func NewScrollEvent

func NewScrollEvent(data interface{}, mods ...EventModder) *Event

NewScrollEvent returns a new object representing a triggered event of "scroll" type.

The document view or an element has been scrolled. https://developer.mozilla.org/docs/Web/Events/scroll

func NewSeekedEvent

func NewSeekedEvent(data interface{}, mods ...EventModder) *Event

NewSeekedEvent returns a new object representing a triggered event of "seeked" type.

A seek operation completed. https://developer.mozilla.org/docs/Web/Events/seeked

func NewSeekingEvent

func NewSeekingEvent(data interface{}, mods ...EventModder) *Event

NewSeekingEvent returns a new object representing a triggered event of "seeking" type.

A seek operation began. https://developer.mozilla.org/docs/Web/Events/seeking

func NewSelectEvent

func NewSelectEvent(data interface{}, mods ...EventModder) *Event

NewSelectEvent returns a new object representing a triggered event of "select" type.

Some text is being selected. https://developer.mozilla.org/docs/Web/Events/select

func NewSelectStartEvent

func NewSelectStartEvent(data interface{}, mods ...EventModder) *Event

NewSelectStartEvent returns a new object representing a triggered event of "SelectStart" type.

A selection just started. https://developer.mozilla.org/docs/Web/Events/selectstart

func NewSelectionChangeEvent

func NewSelectionChangeEvent(data interface{}, mods ...EventModder) *Event

NewSelectionChangeEvent returns a new object representing a triggered event of "SelectionChange" type.

The selection in the document has been changed. https://developer.mozilla.org/docs/Web/Events/selectionchange

func NewSentEvent

func NewSentEvent(data interface{}, mods ...EventModder) *Event

NewSentEvent returns a new object representing a triggered event of "sent" type.

An SMS has been sent. https://developer.mozilla.org/docs/Web/Events/sent

func NewShowEvent

func NewShowEvent(data interface{}, mods ...EventModder) *Event

NewShowEvent returns a new object representing a triggered event of "show" type.

A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute https://developer.mozilla.org/docs/Web/Events/show

func NewSizemodechangeEvent

func NewSizemodechangeEvent(data interface{}, mods ...EventModder) *Event

NewSizemodechangeEvent returns a new object representing a triggered event of "sizemodechange" type.

Window has entered/left fullscreen mode, or has been minimized/unminimized. https://developer.mozilla.org/docs/Web/Reference/Events/sizemodechange

func NewSlotChangeEvent

func NewSlotChangeEvent(data interface{}, mods ...EventModder) *Event

NewSlotChangeEvent returns a new object representing a triggered event of "SlotChange" type.

The node contents of a HTMLSlotElement (<slot>) have changed. https://developer.mozilla.org/docs/Web/Events/slotchange

func NewSmartcardInsertEvent

func NewSmartcardInsertEvent(data interface{}, mods ...EventModder) *Event

NewSmartcardInsertEvent returns a new object representing a triggered event of "smartcard-insert" type.

A smartcard has been inserted. https://developer.mozilla.org/docs/Web/Events/smartcard-insert

func NewSmartcardRemoveEvent

func NewSmartcardRemoveEvent(data interface{}, mods ...EventModder) *Event

NewSmartcardRemoveEvent returns a new object representing a triggered event of "smartcard-remove" type.

A smartcard has been removed. https://developer.mozilla.org/docs/Web/Events/smartcard-remove

func NewSoundEndEvent

func NewSoundEndEvent(data interface{}, mods ...EventModder) *Event

NewSoundEndEvent returns a new object representing a triggered event of "SoundEnd" type.

Any sound — recognisable speech or not — has stopped being detected. https://developer.mozilla.org/docs/Web/Events/soundend

func NewSoundStartEvent

func NewSoundStartEvent(data interface{}, mods ...EventModder) *Event

NewSoundStartEvent returns a new object representing a triggered event of "SoundStart" type.

Any sound — recognisable speech or not — has been detected. https://developer.mozilla.org/docs/Web/Events/soundstart

func NewSpeechEndEvent

func NewSpeechEndEvent(data interface{}, mods ...EventModder) *Event

NewSpeechEndEvent returns a new object representing a triggered event of "SpeechEnd" type.

Speech recognised by the speech recognition service has stopped being detected. https://developer.mozilla.org/docs/Web/Events/speechend

func NewSpeechStartEvent

func NewSpeechStartEvent(data interface{}, mods ...EventModder) *Event

NewSpeechStartEvent returns a new object representing a triggered event of "SpeechStart" type.

Sound that is recognised by the speech recognition service as speech has been detected. https://developer.mozilla.org/docs/Web/Events/speechstart

func NewStalledEvent

func NewStalledEvent(data interface{}, mods ...EventModder) *Event

NewStalledEvent returns a new object representing a triggered event of "stalled" type.

The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. https://developer.mozilla.org/docs/Web/Events/stalled

func NewStartEvent

func NewStartEvent(data interface{}, mods ...EventModder) *Event

NewStartEvent returns a new object representing a triggered event of "start" type.

The utterance has begun to be spoken. https://developer.mozilla.org/docs/Web/Events/start_(SpeechSynthesis)

func NewStatechangeEvent

func NewStatechangeEvent(data interface{}, mods ...EventModder) *Event

NewStatechangeEvent returns a new object representing a triggered event of "statechange" type.

The state of a call has changed. https://developer.mozilla.org/docs/Web/Events/statechange

func NewStatuschangeEvent

func NewStatuschangeEvent(data interface{}, mods ...EventModder) *Event

NewStatuschangeEvent returns a new object representing a triggered event of "statuschange" type.

The status of the Wifi connection changed. https://developer.mozilla.org/docs/Web/Events/statuschange

func NewStkcommandEvent

func NewStkcommandEvent(data interface{}, mods ...EventModder) *Event

NewStkcommandEvent returns a new object representing a triggered event of "stkcommand" type.

The STK Proactive Command is issued from ICC. https://developer.mozilla.org/docs/Web/Events/stkcommand

func NewStksessionendEvent

func NewStksessionendEvent(data interface{}, mods ...EventModder) *Event

NewStksessionendEvent returns a new object representing a triggered event of "stksessionend" type.

The STK Session is terminated by ICC. https://developer.mozilla.org/docs/Web/Events/stksessionend

func NewStorageEvent

func NewStorageEvent(data interface{}, mods ...EventModder) *Event

NewStorageEvent returns a new object representing a triggered event of "storage" type.

A storage area (localStorage or sessionStorage) has changed. https://developer.mozilla.org/docs/Web/Events/storage

func NewSubmitEvent

func NewSubmitEvent(data interface{}, mods ...EventModder) *Event

NewSubmitEvent returns a new object representing a triggered event of "submit" type.

A form is submitted. https://developer.mozilla.org/docs/Web/Events/submit

func NewSuccessEvent

func NewSuccessEvent(data interface{}, mods ...EventModder) *Event

NewSuccessEvent returns a new object representing a triggered event of "success" type.

A request successfully completed. https://developer.mozilla.org/docs/Web/Reference/Events/success_indexedDB

func NewSuspendEvent

func NewSuspendEvent(data interface{}, mods ...EventModder) *Event

NewSuspendEvent returns a new object representing a triggered event of "suspend" type.

Media data loading has been suspended. https://developer.mozilla.org/docs/Web/Events/suspend

func NewTabCloseEvent

func NewTabCloseEvent(data interface{}, mods ...EventModder) *Event

NewTabCloseEvent returns a new object representing a triggered event of "TabClose" type.

A tab has been closed. https://developer.mozilla.org/docs/Web/Reference/Events/TabClose

func NewTabHideEvent

func NewTabHideEvent(data interface{}, mods ...EventModder) *Event

NewTabHideEvent returns a new object representing a triggered event of "TabHide" type.

A tab has been hidden. https://developer.mozilla.org/docs/Web/Reference/Events/TabHide

func NewTabOpenEvent

func NewTabOpenEvent(data interface{}, mods ...EventModder) *Event

NewTabOpenEvent returns a new object representing a triggered event of "TabOpen" type.

A tab has been opened. https://developer.mozilla.org/docs/Web/Reference/Events/TabOpen

func NewTabPinnedEvent

func NewTabPinnedEvent(data interface{}, mods ...EventModder) *Event

NewTabPinnedEvent returns a new object representing a triggered event of "TabPinned" type.

A tab has been pinned. https://developer.mozilla.org/docs/Web/Reference/Events/TabPinned

func NewTabSelectEvent

func NewTabSelectEvent(data interface{}, mods ...EventModder) *Event

NewTabSelectEvent returns a new object representing a triggered event of "TabSelect" type.

A tab has been selected. https://developer.mozilla.org/docs/Web/Reference/Events/TabSelect

func NewTabShowEvent

func NewTabShowEvent(data interface{}, mods ...EventModder) *Event

NewTabShowEvent returns a new object representing a triggered event of "TabShow" type.

A tab has been shown. https://developer.mozilla.org/docs/Web/Reference/Events/TabShow

func NewTabUnpinnedEvent

func NewTabUnpinnedEvent(data interface{}, mods ...EventModder) *Event

NewTabUnpinnedEvent returns a new object representing a triggered event of "TabUnpinned" type.

A tab has been unpinned. https://developer.mozilla.org/docs/Web/Reference/Events/TabUnpinned

func NewTimeUpdateEvent

func NewTimeUpdateEvent(data interface{}, mods ...EventModder) *Event

NewTimeUpdateEvent returns a new object representing a triggered event of "TimeUpdate" type.

The time indicated by the currentTime attribute has been updated. https://developer.mozilla.org/docs/Web/Events/timeupdate

func NewTimeoutEvent

func NewTimeoutEvent(data interface{}, mods ...EventModder) *Event

NewTimeoutEvent returns a new object representing a triggered event of "timeout" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/timeout

func NewTouchCancelEvent

func NewTouchCancelEvent(data interface{}, mods ...EventModder) *Event

NewTouchCancelEvent returns a new object representing a triggered event of "TouchCancel" type.

A touch point has been disrupted in an implementation-specific manners (too many touch points for example). https://developer.mozilla.org/docs/Web/Events/touchcancel

func NewTouchEndEvent

func NewTouchEndEvent(data interface{}, mods ...EventModder) *Event

NewTouchEndEvent returns a new object representing a triggered event of "TouchEnd" type.

A touch point is removed from the touch surface. https://developer.mozilla.org/docs/Web/Events/touchend

func NewTouchEnterEvent

func NewTouchEnterEvent(data interface{}, mods ...EventModder) *Event

NewTouchEnterEvent returns a new object representing a triggered event of "TouchEnter" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/touchenter

func NewTouchLeaveEvent

func NewTouchLeaveEvent(data interface{}, mods ...EventModder) *Event

NewTouchLeaveEvent returns a new object representing a triggered event of "TouchLeave" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/touchleave

func NewTouchMoveEvent

func NewTouchMoveEvent(data interface{}, mods ...EventModder) *Event

NewTouchMoveEvent returns a new object representing a triggered event of "TouchMove" type.

A touch point is moved along the touch surface. https://developer.mozilla.org/docs/Web/Events/touchmove

func NewTouchStartEvent

func NewTouchStartEvent(data interface{}, mods ...EventModder) *Event

NewTouchStartEvent returns a new object representing a triggered event of "TouchStart" type.

A touch point is placed on the touch surface. https://developer.mozilla.org/docs/Web/Events/touchstart

func NewTransitionEndEvent

func NewTransitionEndEvent(data interface{}, mods ...EventModder) *Event

NewTransitionEndEvent returns a new object representing a triggered event of "TransitionEnd" type.

A CSS transition has completed. https://developer.mozilla.org/docs/Web/Events/transitionend

func NewTransitioncancelEvent

func NewTransitioncancelEvent(data interface{}, mods ...EventModder) *Event

NewTransitioncancelEvent returns a new object representing a triggered event of "transitioncancel" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/transitioncancel

func NewTransitionrunEvent

func NewTransitionrunEvent(data interface{}, mods ...EventModder) *Event

NewTransitionrunEvent returns a new object representing a triggered event of "transitionrun" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/transitionrun

func NewTransitionstartEvent

func NewTransitionstartEvent(data interface{}, mods ...EventModder) *Event

NewTransitionstartEvent returns a new object representing a triggered event of "transitionstart" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/transitionstart

func NewUnderflowEvent

func NewUnderflowEvent(data interface{}, mods ...EventModder) *Event

NewUnderflowEvent returns a new object representing a triggered event of "underflow" type.

An element is no longer overflowed by its content (only works for elements styled with overflow != visible). https://developer.mozilla.org/docs/Web/Events/underflow

func NewUnloadEvent

func NewUnloadEvent(data interface{}, mods ...EventModder) *Event

NewUnloadEvent returns a new object representing a triggered event of "unload" type.

The document or a dependent resource is being unloaded. https://developer.mozilla.org/docs/Web/Events/unload

func NewUpdateReadyEvent

func NewUpdateReadyEvent(data interface{}, mods ...EventModder) *Event

NewUpdateReadyEvent returns a new object representing a triggered event of "UpdateReady" type.

The resources listed in the manifest have been newly redownloaded, and the script can use swapCache() to switch to the new cache. https://developer.mozilla.org/docs/Web/Events/updateready

func NewUpgradeNeededEvent

func NewUpgradeNeededEvent(data interface{}, mods ...EventModder) *Event

NewUpgradeNeededEvent returns a new object representing a triggered event of "UpgradeNeeded" type.

An attempt was made to open a database with a version number higher than its current version. A versionchange transaction has been created. https://developer.mozilla.org/docs/Web/Reference/Events/upgradeneeded_indexedDB

func NewUserProximityEvent

func NewUserProximityEvent(data interface{}, mods ...EventModder) *Event

NewUserProximityEvent returns a new object representing a triggered event of "UserProximity" type.

Fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not). https://developer.mozilla.org/docs/Web/Events/userproximity

func NewUssdreceivedEvent

func NewUssdreceivedEvent(data interface{}, mods ...EventModder) *Event

NewUssdreceivedEvent returns a new object representing a triggered event of "ussdreceived" type.

A new USSD message is received https://developer.mozilla.org/docs/Web/Events/ussdreceived

func NewVRDisplayPresentChangeEvent

func NewVRDisplayPresentChangeEvent(data interface{}, mods ...EventModder) *Event

NewVRDisplayPresentChangeEvent returns a new object representing a triggered event of "VRDisplayPresentChange" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaypresentchange

func NewValueChangeEvent

func NewValueChangeEvent(data interface{}, mods ...EventModder) *Event

NewValueChangeEvent returns a new object representing a triggered event of "ValueChange" type.

The value of an element has changed (a progress bar for example, useful for accessibility). https://developer.mozilla.org/docs/Web/Events/ValueChange

func NewVersionChangeEvent

func NewVersionChangeEvent(data interface{}, mods ...EventModder) *Event

NewVersionChangeEvent returns a new object representing a triggered event of "VersionChange" type.

A versionchange transaction completed. https://developer.mozilla.org/docs/Web/Reference/Events/versionchange_indexedDB

func NewVisibilityChangeEvent

func NewVisibilityChangeEvent(data interface{}, mods ...EventModder) *Event

NewVisibilityChangeEvent returns a new object representing a triggered event of "VisibilityChange" type.

The content of a tab has become visible or has been hidden. https://developer.mozilla.org/docs/Web/Events/visibilitychange

func NewVoicechangeEvent

func NewVoicechangeEvent(data interface{}, mods ...EventModder) *Event

NewVoicechangeEvent returns a new object representing a triggered event of "voicechange" type.

The MozMobileConnection.voice object changes values. https://developer.mozilla.org/docs/Web/Events/voicechange

func NewVoicesChangedEvent

func NewVoicesChangedEvent(data interface{}, mods ...EventModder) *Event

NewVoicesChangedEvent returns a new object representing a triggered event of "VoicesChanged" type.

The list of SpeechSynthesisVoice objects that would be returned by the SpeechSynthesis.getVoices() method has changed (when the voiceschanged event fires.) https://developer.mozilla.org/docs/Web/Events/voiceschanged

func NewVolumeChangeEvent

func NewVolumeChangeEvent(data interface{}, mods ...EventModder) *Event

NewVolumeChangeEvent returns a new object representing a triggered event of "VolumeChange" type.

The volume has changed. https://developer.mozilla.org/docs/Web/Events/volumechange

func NewVrdisplayactivateEvent

func NewVrdisplayactivateEvent(data interface{}, mods ...EventModder) *Event

NewVrdisplayactivateEvent returns a new object representing a triggered event of "vrdisplayactivate" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayactivate

func NewVrdisplayblurEvent

func NewVrdisplayblurEvent(data interface{}, mods ...EventModder) *Event

NewVrdisplayblurEvent returns a new object representing a triggered event of "vrdisplayblur" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayblur

func NewVrdisplayconnectEvent

func NewVrdisplayconnectEvent(data interface{}, mods ...EventModder) *Event

NewVrdisplayconnectEvent returns a new object representing a triggered event of "vrdisplayconnect" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayconnect

func NewVrdisplaydeactivateEvent

func NewVrdisplaydeactivateEvent(data interface{}, mods ...EventModder) *Event

NewVrdisplaydeactivateEvent returns a new object representing a triggered event of "vrdisplaydeactivate" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaydeactivate

func NewVrdisplaydisconnectEvent

func NewVrdisplaydisconnectEvent(data interface{}, mods ...EventModder) *Event

NewVrdisplaydisconnectEvent returns a new object representing a triggered event of "vrdisplaydisconnect" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaydisconnect

func NewVrdisplayfocusEvent

func NewVrdisplayfocusEvent(data interface{}, mods ...EventModder) *Event

NewVrdisplayfocusEvent returns a new object representing a triggered event of "vrdisplayfocus" type.

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayfocus

func NewWaitingEvent

func NewWaitingEvent(data interface{}, mods ...EventModder) *Event

NewWaitingEvent returns a new object representing a triggered event of "waiting" type.

Playback has stopped because of a temporary lack of data. https://developer.mozilla.org/docs/Web/Events/waiting

func NewWheelEvent

func NewWheelEvent(data interface{}, mods ...EventModder) *Event

NewWheelEvent returns a new object representing a triggered event of "wheel" type.

A wheel button of a pointing device is rotated in any direction. https://developer.mozilla.org/docs/Web/Events/wheel

func (Event) Source

func (e Event) Source() string

Source returns the source of the giving event.

It implements the natomic.Signal interface.

func (Event) Target

func (e Event) Target() string

Target returns the target of the giving event.

It implements the natomic.Signal interface.

func (Event) Type

func (e Event) Type() string

Type returns the underline typename of the event.

It implements the natomic.Signal interface.

type EventDescriptor

type EventDescriptor struct {
	Name            string
	PreventDefault  bool
	StopPropagation bool
	SignalResponder natomic.SignalResponder
	EventResponder  EventDescriptorResponder
}

EventDescriptor defines a type representing a event descriptor with associated response.

func AbortEvent

func AbortEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AbortEvent provides DOM Event representation for the Event "abort".

A transaction has been aborted. https://developer.mozilla.org/docs/Web/Reference/Events/abort_indexedDB

func AfterPrintEvent

func AfterPrintEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AfterPrintEvent provides DOM Event representation for the Event "AfterPrint".

The associated document has started printing or the print preview has been closed. https://developer.mozilla.org/docs/Web/Events/afterprint

func AfterScriptExecuteEvent

func AfterScriptExecuteEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AfterScriptExecuteEvent provides DOM Event representation for the Event "AfterScriptExecute".

A script has been executed. https://developer.mozilla.org/docs/Web/Events/afterscriptexecute

func AlertActiveEvent

func AlertActiveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AlertActiveEvent provides DOM Event representation for the Event "AlertActive".

A notification element is shown. https://developer.mozilla.org/docs/Web/Reference/Events/AlertActive

func AlertCloseEvent

func AlertCloseEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AlertCloseEvent provides DOM Event representation for the Event "AlertClose".

A notification element is closed. https://developer.mozilla.org/docs/Web/Reference/Events/AlertClose

func AlertingEvent

func AlertingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AlertingEvent provides DOM Event representation for the Event "alerting".

The correspondent is being alerted (his/her phone is ringing). https://developer.mozilla.org/docs/Web/Events/alerting

func AnimationEndEvent

func AnimationEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AnimationEndEvent provides DOM Event representation for the Event "AnimationEnd".

A CSS animation has completed. https://developer.mozilla.org/docs/Web/Events/animationend

func AnimationIterationEvent

func AnimationIterationEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AnimationIterationEvent provides DOM Event representation for the Event "AnimationIteration".

A CSS animation is repeated. https://developer.mozilla.org/docs/Web/Events/animationiteration

func AnimationStartEvent

func AnimationStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AnimationStartEvent provides DOM Event representation for the Event "AnimationStart".

A CSS animation has started. https://developer.mozilla.org/docs/Web/Events/animationstart

func ApplicationInstalledEvent

func ApplicationInstalledEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ApplicationInstalledEvent provides DOM Event representation for the Event "ApplicationInstalled".

A web application is successfully installed as a progressive web app. https://developer.mozilla.org/docs/Web/Events/appinstalled

func AudioEndEvent

func AudioEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AudioEndEvent provides DOM Event representation for the Event "AudioEnd".

The user agent has finished capturing audio for speech recognition. https://developer.mozilla.org/docs/Web/Events/audioend

func AudioProcessEvent

func AudioProcessEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AudioProcessEvent provides DOM Event representation for the Event "AudioProcess".

(no documentation) https://developer.mozilla.org/docs/Web/Events/audioprocess

func AudioStartEvent

func AudioStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AudioStartEvent provides DOM Event representation for the Event "AudioStart".

The user agent has started to capture audio for speech recognition. https://developer.mozilla.org/docs/Web/Events/audiostart

func AuxclickEvent

func AuxclickEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

AuxclickEvent provides DOM Event representation for the Event "auxclick".

(no documentation) https://developer.mozilla.org/docs/Web/Events/auxclick

func BeforePrintEvent

func BeforePrintEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BeforePrintEvent provides DOM Event representation for the Event "BeforePrint".

The associated document is about to be printed or previewed for printing. https://developer.mozilla.org/docs/Web/Events/beforeprint

func BeforeUnloadEvent

func BeforeUnloadEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BeforeUnloadEvent provides DOM Event representation for the Event "BeforeUnload".

The window, the document and its resources are about to be unloaded. https://developer.mozilla.org/docs/Web/Events/beforeunload

func BeforeinstallpromptEvent

func BeforeinstallpromptEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BeforeinstallpromptEvent provides DOM Event representation for the Event "beforeinstallprompt".

A user is prompted to save a web site to a home screen on mobile. https://developer.mozilla.org/docs/Web/Events/beforeinstallprompt

func BeforescriptexecuteEvent

func BeforescriptexecuteEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BeforescriptexecuteEvent provides DOM Event representation for the Event "beforescriptexecute".

A script is about to be executed. https://developer.mozilla.org/docs/Web/Events/beforescriptexecute

func BeginEventEvent

func BeginEventEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BeginEventEvent provides DOM Event representation for the Event "beginEvent".

A SMIL animation element begins. https://developer.mozilla.org/docs/Web/Events/beginEvent

func BlockedEvent

func BlockedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BlockedEvent provides DOM Event representation for the Event "blocked".

An open connection to a database is blocking a versionchange transaction on the same database. https://developer.mozilla.org/docs/Web/Reference/Events/blocked_indexedDB

func BlurEvent

func BlurEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BlurEvent provides DOM Event representation for the Event "blur".

An element has lost focus (does not bubble). https://developer.mozilla.org/docs/Web/Events/blur

func BoundaryEvent

func BoundaryEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BoundaryEvent provides DOM Event representation for the Event "boundary".

The spoken utterance reaches a word or sentence boundary https://developer.mozilla.org/docs/Web/Events/boundary

func BroadcastEvent

func BroadcastEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BroadcastEvent provides DOM Event representation for the Event "broadcast".

An observer noticed a change to the attributes of a watched broadcaster. https://developer.mozilla.org/docs/Web/Events/broadcast

func BusyEvent

func BusyEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

BusyEvent provides DOM Event representation for the Event "busy".

The line of the correspondent is busy. https://developer.mozilla.org/docs/Web/Events/busy

func CSSRuleViewCSSLinkClickedEvent

func CSSRuleViewCSSLinkClickedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CSSRuleViewCSSLinkClickedEvent provides DOM Event representation for the Event "CSSRuleViewCSSLinkClicked".

A link to a CSS file has been clicked in the "Rules" view of the style inspector. https://developer.mozilla.org/docs/Web/Reference/Events/CssRuleViewCSSLinkClicked

func CSSRuleViewChangeEvent

func CSSRuleViewChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CSSRuleViewChangeEvent provides DOM Event representation for the Event "CSSRuleViewChange".

The "Rules" view of the style inspector has been changed. https://developer.mozilla.org/docs/Web/Reference/Events/CssRuleViewChanged

func CSSRuleViewRefreshedEvent

func CSSRuleViewRefreshedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CSSRuleViewRefreshedEvent provides DOM Event representation for the Event "CSSRuleViewRefreshed".

The "Rules" view of the style inspector has been updated. https://developer.mozilla.org/docs/Web/Reference/Events/CssRuleViewRefreshed

func CachedEvent

func CachedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CachedEvent provides DOM Event representation for the Event "cached".

The resources listed in the manifest have been downloaded, and the application is now cached. https://developer.mozilla.org/docs/Web/Events/cached

func CallschangedEvent

func CallschangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CallschangedEvent provides DOM Event representation for the Event "callschanged".

A call has been added or removed from the list of current calls. https://developer.mozilla.org/docs/Web/Events/callschanged

func CanPlayEvent

func CanPlayEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CanPlayEvent provides DOM Event representation for the Event "CanPlay".

The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. https://developer.mozilla.org/docs/Web/Events/canplay

func CanPlayThroughEvent

func CanPlayThroughEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CanPlayThroughEvent provides DOM Event representation for the Event "CanPlayThrough".

The user agent can play the media up to its end without having to stop for further buffering of content. https://developer.mozilla.org/docs/Web/Events/canplaythrough

func CardstatechangeEvent

func CardstatechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CardstatechangeEvent provides DOM Event representation for the Event "cardstatechange".

The MozMobileConnection.cardState property changes value. https://developer.mozilla.org/docs/Web/Events/cardstatechange

func CfstatechangeEvent

func CfstatechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CfstatechangeEvent provides DOM Event representation for the Event "cfstatechange".

The call forwarding state changes. https://developer.mozilla.org/docs/Web/Events/cfstatechange

func ChangeEvent

func ChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ChangeEvent provides DOM Event representation for the Event "change".

This event is triggered each time a file is created, modified or deleted on a given storage area. https://developer.mozilla.org/docs/Web/Events/change

func ChargingChangeEvent

func ChargingChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ChargingChangeEvent provides DOM Event representation for the Event "ChargingChange".

The battery begins or stops charging. https://developer.mozilla.org/docs/Web/Events/chargingchange

func ChargingTimeChangeEvent

func ChargingTimeChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ChargingTimeChangeEvent provides DOM Event representation for the Event "ChargingTimeChange".

The chargingTime attribute has been updated. https://developer.mozilla.org/docs/Web/Events/chargingtimechange

func CheckboxStateChangeEvent

func CheckboxStateChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CheckboxStateChangeEvent provides DOM Event representation for the Event "CheckboxStateChange".

The state of a checkbox has been changed either by a user action or by a script (useful for accessibility). https://developer.mozilla.org/docs/Web/Events/CheckboxStateChange

func CheckingEvent

func CheckingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CheckingEvent provides DOM Event representation for the Event "checking".

The user agent is checking for an update, or attempting to download the cache manifest for the first time. https://developer.mozilla.org/docs/Web/Events/checking

func ClickEvent

func ClickEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ClickEvent provides DOM Event representation for the Event "click".

A pointing device button has been pressed and released on an element. https://developer.mozilla.org/docs/Web/Events/click

func CloseEvent

func CloseEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CloseEvent provides DOM Event representation for the Event "close".

The close button of the window has been clicked. https://developer.mozilla.org/docs/Web/Reference/Events/close_event

func CommandEvent

func CommandEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CommandEvent provides DOM Event representation for the Event "command".

An element has been activated. https://developer.mozilla.org/docs/Web/Events/command

func CommandupdateEvent

func CommandupdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CommandupdateEvent provides DOM Event representation for the Event "commandupdate".

A command update occurred on a commandset element. https://developer.mozilla.org/docs/Web/Events/commandupdate

func CompleteEvent

func CompleteEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CompleteEvent provides DOM Event representation for the Event "complete".

A transaction successfully completed. https://developer.mozilla.org/docs/Web/Reference/Events/complete_indexedDB

func CompositionEndEvent

func CompositionEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CompositionEndEvent provides DOM Event representation for the Event "CompositionEnd".

The composition of a passage of text has been completed or canceled. https://developer.mozilla.org/docs/Web/Events/compositionend

func CompositionStartEvent

func CompositionStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CompositionStartEvent provides DOM Event representation for the Event "CompositionStart".

The composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition). https://developer.mozilla.org/docs/Web/Events/compositionstart

func CompositionUpdateEvent

func CompositionUpdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CompositionUpdateEvent provides DOM Event representation for the Event "CompositionUpdate".

A character is added to a passage of text being composed. https://developer.mozilla.org/docs/Web/Events/compositionupdate

func ConnectingEvent

func ConnectingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ConnectingEvent provides DOM Event representation for the Event "connecting".

A call is about to connect. https://developer.mozilla.org/docs/Web/Events/connecting

func ConnectionInfoUpdateEvent

func ConnectionInfoUpdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ConnectionInfoUpdateEvent provides DOM Event representation for the Event "connectionInfoUpdate".

The informations about the signal strength and the link speed have been updated. https://developer.mozilla.org/docs/Web/Events/connectionInfoUpdate

func ContextMenuEvent

func ContextMenuEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ContextMenuEvent provides DOM Event representation for the Event "ContextMenu".

The right button of the mouse is clicked (before the context menu is displayed). https://developer.mozilla.org/docs/Web/Events/contextmenu

func CopyEvent

func CopyEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CopyEvent provides DOM Event representation for the Event "copy".

The text selection has been added to the clipboard. https://developer.mozilla.org/docs/Web/Events/copy

func CutEvent

func CutEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

CutEvent provides DOM Event representation for the Event "cut".

The text selection has been removed from the document and added to the clipboard. https://developer.mozilla.org/docs/Web/Events/cut

func DOMAutoCompleteEvent

func DOMAutoCompleteEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMAutoCompleteEvent provides DOM Event representation for the Event "DOMAutoComplete".

The content of an element has been auto-completed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMAutoComplete

func DOMContentLoadedEvent

func DOMContentLoadedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMContentLoadedEvent provides DOM Event representation for the Event "DOMContentLoaded".

The document has finished loading (but not its dependent resources). https://developer.mozilla.org/docs/Web/Events/DOMContentLoaded

func DOMFrameContentLoadedEvent

func DOMFrameContentLoadedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMFrameContentLoadedEvent provides DOM Event representation for the Event "DOMFrameContentLoaded".

The frame has finished loading (but not its dependent resources). https://developer.mozilla.org/docs/Web/Reference/Events/DOMFrameContentLoaded

func DOMLinkAddedEvent

func DOMLinkAddedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMLinkAddedEvent provides DOM Event representation for the Event "DOMLinkAdded".

A link has been added a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMLinkAdded

func DOMLinkRemovedEvent

func DOMLinkRemovedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMLinkRemovedEvent provides DOM Event representation for the Event "DOMLinkRemoved".

A link has been removed inside from a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMLinkRemoved

func DOMMenuItemActiveEvent

func DOMMenuItemActiveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMMenuItemActiveEvent provides DOM Event representation for the Event "DOMMenuItemActive".

A menu or menuitem has been hovered or highlighted. https://developer.mozilla.org/docs/Web/Events/DOMMenuItemActive

func DOMMenuItemInactiveEvent

func DOMMenuItemInactiveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMMenuItemInactiveEvent provides DOM Event representation for the Event "DOMMenuItemInactive".

A menu or menuitem is no longer hovered or highlighted. https://developer.mozilla.org/docs/Web/Events/DOMMenuItemInactive

func DOMMetaAddedEvent

func DOMMetaAddedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMMetaAddedEvent provides DOM Event representation for the Event "DOMMetaAdded".

A meta element has been added to a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMMetaAdded

func DOMMetaRemovedEvent

func DOMMetaRemovedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMMetaRemovedEvent provides DOM Event representation for the Event "DOMMetaRemoved".

A meta element has been removed from a document. https://developer.mozilla.org/docs/Web/Reference/Events/DOMMetaRemoved

func DOMModalDialogClosedEvent

func DOMModalDialogClosedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMModalDialogClosedEvent provides DOM Event representation for the Event "DOMModalDialogClosed".

A modal dialog has been closed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMModalDialogClosed

func DOMPopupBlockedEvent

func DOMPopupBlockedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMPopupBlockedEvent provides DOM Event representation for the Event "DOMPopupBlocked".

A popup has been blocked https://developer.mozilla.org/docs/Web/Reference/Events/DOMPopupBlocked

func DOMTitleChangedEvent

func DOMTitleChangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMTitleChangedEvent provides DOM Event representation for the Event "DOMTitleChanged".

The title of a window has changed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMTitleChanged

func DOMWillOpenModalDialogEvent

func DOMWillOpenModalDialogEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMWillOpenModalDialogEvent provides DOM Event representation for the Event "DOMWillOpenModalDialog".

A modal dialog is about to open. https://developer.mozilla.org/docs/Web/Reference/Events/DOMWillOpenModalDialog

func DOMWindowCloseEvent

func DOMWindowCloseEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMWindowCloseEvent provides DOM Event representation for the Event "DOMWindowClose".

A window is about to be closed. https://developer.mozilla.org/docs/Web/Reference/Events/DOMWindowClose

func DOMWindowCreatedEvent

func DOMWindowCreatedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DOMWindowCreatedEvent provides DOM Event representation for the Event "DOMWindowCreated".

A window has been created. https://developer.mozilla.org/docs/Web/Reference/Events/DOMWindowCreated

func DatachangeEvent

func DatachangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DatachangeEvent provides DOM Event representation for the Event "datachange".

The MozMobileConnection.data object changes values. https://developer.mozilla.org/docs/Web/Events/datachange

func DataerrorEvent

func DataerrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DataerrorEvent provides DOM Event representation for the Event "dataerror".

The MozMobileConnection.data object receive an error from the RIL. https://developer.mozilla.org/docs/Web/Events/dataerror

func DeliveredEvent

func DeliveredEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DeliveredEvent provides DOM Event representation for the Event "delivered".

An SMS has been successfully delivered. https://developer.mozilla.org/docs/Web/Events/delivered

func DeviceChangeEvent

func DeviceChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DeviceChangeEvent provides DOM Event representation for the Event "DeviceChange".

A media device such as a camera, microphone, or speaker is connected or removed from the system. https://developer.mozilla.org/docs/Web/Events/devicechange

func DeviceLightEvent

func DeviceLightEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DeviceLightEvent provides DOM Event representation for the Event "DeviceLight".

Fresh data is available from a light sensor. https://developer.mozilla.org/docs/Web/Events/devicelight

func DeviceMotionEvent

func DeviceMotionEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DeviceMotionEvent provides DOM Event representation for the Event "DeviceMotion".

Fresh data is available from a motion sensor. https://developer.mozilla.org/docs/Web/Events/devicemotion

func DeviceOrientationEvent

func DeviceOrientationEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DeviceOrientationEvent provides DOM Event representation for the Event "DeviceOrientation".

Fresh data is available from an orientation sensor. https://developer.mozilla.org/docs/Web/Events/deviceorientation

func DeviceProximityEvent

func DeviceProximityEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DeviceProximityEvent provides DOM Event representation for the Event "DeviceProximity".

Fresh data is available from a proximity sensor (indicates an approximated distance between the device and a nearby object). https://developer.mozilla.org/docs/Web/Events/deviceproximity

func DialingEvent

func DialingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DialingEvent provides DOM Event representation for the Event "dialing".

The number of a correspondent has been dialed. https://developer.mozilla.org/docs/Web/Events/dialing

func DisabledEvent

func DisabledEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DisabledEvent provides DOM Event representation for the Event "disabled".

Wifi has been disabled on the device. https://developer.mozilla.org/docs/Web/Events/disabled

func DischargingTimeChangeEvent

func DischargingTimeChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DischargingTimeChangeEvent provides DOM Event representation for the Event "DischargingTimeChange".

The dischargingTime attribute has been updated. https://developer.mozilla.org/docs/Web/Events/dischargingtimechange

func DisconnectedEvent

func DisconnectedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DisconnectedEvent provides DOM Event representation for the Event "disconnected".

A call has been disconnected. https://developer.mozilla.org/docs/Web/Events/disconnected

func DisconnectingEvent

func DisconnectingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DisconnectingEvent provides DOM Event representation for the Event "disconnecting".

A call is about to disconnect. https://developer.mozilla.org/docs/Web/Events/disconnecting

func DoubleClickEvent

func DoubleClickEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DoubleClickEvent provides DOM Event representation for the Event "DoubleClick".

A pointing device button is clicked twice on an element. https://developer.mozilla.org/docs/Web/Events/dblclick

func DownloadingEvent

func DownloadingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DownloadingEvent provides DOM Event representation for the Event "downloading".

The user agent has found an update and is fetching it, or is downloading the resources listed by the cache manifest for the first time. https://developer.mozilla.org/docs/Web/Events/downloading

func DragEndEvent

func DragEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DragEndEvent provides DOM Event representation for the Event "DragEnd".

A drag operation is being ended (by releasing a mouse button or hitting the escape key). https://developer.mozilla.org/docs/Web/Events/dragend

func DragEnterEvent

func DragEnterEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DragEnterEvent provides DOM Event representation for the Event "DragEnter".

A dragged element or text selection enters a valid drop target. https://developer.mozilla.org/docs/Web/Events/dragenter

func DragEvent

func DragEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DragEvent provides DOM Event representation for the Event "drag".

An element or text selection is being dragged (every 350ms). https://developer.mozilla.org/docs/Web/Events/drag

func DragLeaveEvent

func DragLeaveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DragLeaveEvent provides DOM Event representation for the Event "DragLeave".

A dragged element or text selection leaves a valid drop target. https://developer.mozilla.org/docs/Web/Events/dragleave

func DragOverEvent

func DragOverEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DragOverEvent provides DOM Event representation for the Event "DragOver".

An element or text selection is being dragged over a valid drop target (every 350ms). https://developer.mozilla.org/docs/Web/Events/dragover

func DragStartEvent

func DragStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DragStartEvent provides DOM Event representation for the Event "DragStart".

The user starts dragging an element or text selection. https://developer.mozilla.org/docs/Web/Events/dragstart

func DropEvent

func DropEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DropEvent provides DOM Event representation for the Event "drop".

An element is dropped on a valid drop target. https://developer.mozilla.org/docs/Web/Events/drop

func DurationChangeEvent

func DurationChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

DurationChangeEvent provides DOM Event representation for the Event "DurationChange".

The duration attribute has been updated. https://developer.mozilla.org/docs/Web/Events/durationchange

func EmptiedEvent

func EmptiedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

EmptiedEvent provides DOM Event representation for the Event "emptied".

The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it. https://developer.mozilla.org/docs/Web/Events/emptied

func EnabledEvent

func EnabledEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

EnabledEvent provides DOM Event representation for the Event "enabled".

Wifi has been enabled on the device. https://developer.mozilla.org/docs/Web/Events/enabled

func EndEvent

func EndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

EndEvent provides DOM Event representation for the Event "end".

The utterance has finished being spoken. https://developer.mozilla.org/docs/Web/Events/end_(SpeechSynthesis)

func EndEventEvent

func EndEventEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

EndEventEvent provides DOM Event representation for the Event "endEvent".

A SMIL animation element ends. https://developer.mozilla.org/docs/Web/Events/endEvent

func EndedEvent

func EndedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

EndedEvent provides DOM Event representation for the Event "ended".

Playback has stopped because the end of the media was reached. https://developer.mozilla.org/docs/Web/Events/ended_(Web_Audio)

func FocusEvent

func FocusEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

FocusEvent provides DOM Event representation for the Event "focus".

An element has received focus (does not bubble). https://developer.mozilla.org/docs/Web/Events/focus

func FocusInEvent

func FocusInEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

FocusInEvent provides DOM Event representation for the Event "FocusIn".

An element is about to receive focus (bubbles). https://developer.mozilla.org/docs/Web/Events/focusin

func FocusOutEvent

func FocusOutEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

FocusOutEvent provides DOM Event representation for the Event "FocusOut".

An element is about to lose focus (bubbles). https://developer.mozilla.org/docs/Web/Events/focusout

func FullScreenChangeEvent

func FullScreenChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

FullScreenChangeEvent provides DOM Event representation for the Event "FullScreenChange".

An element was turned to fullscreen mode or back to normal mode. https://developer.mozilla.org/docs/Web/Events/fullscreenchange

func FullScreenErrorEvent

func FullScreenErrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

FullScreenErrorEvent provides DOM Event representation for the Event "FullScreenError".

It was impossible to switch to fullscreen mode for technical reasons or because the permission was denied. https://developer.mozilla.org/docs/Web/Events/fullscreenerror

func FullscreenEvent

func FullscreenEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

FullscreenEvent provides DOM Event representation for the Event "fullscreen".

Browser fullscreen mode has been entered or left. https://developer.mozilla.org/docs/Web/Reference/Events/fullscreen

func GamepadConnectedEvent

func GamepadConnectedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

GamepadConnectedEvent provides DOM Event representation for the Event "GamepadConnected".

A gamepad has been connected. https://developer.mozilla.org/docs/Web/Events/gamepadconnected

func GamepadDisconnectedEvent

func GamepadDisconnectedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

GamepadDisconnectedEvent provides DOM Event representation for the Event "GamepadDisconnected".

A gamepad has been disconnected. https://developer.mozilla.org/docs/Web/Events/gamepaddisconnected

func GotPointerCaptureEvent

func GotPointerCaptureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

GotPointerCaptureEvent provides DOM Event representation for the Event "GotPointerCapture".

Element receives pointer capture. https://developer.mozilla.org/docs/Web/Events/gotpointercapture

func HashChangeEvent

func HashChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

HashChangeEvent provides DOM Event representation for the Event "HashChange".

The fragment identifier of the URL has changed (the part of the URL after the #). https://developer.mozilla.org/docs/Web/Events/hashchange

func HeldEvent

func HeldEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

HeldEvent provides DOM Event representation for the Event "held".

A call has been held. https://developer.mozilla.org/docs/Web/Events/held

func HoldingEvent

func HoldingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

HoldingEvent provides DOM Event representation for the Event "holding".

A call is about to be held. https://developer.mozilla.org/docs/Web/Events/holding

func ICCCardLockErrorEvent

func ICCCardLockErrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ICCCardLockErrorEvent provides DOM Event representation for the Event "ICCCardLockError".

the MozMobileConnection.unlockCardLock() or MozMobileConnection.setCardLock() methods fails. https://developer.mozilla.org/docs/Web/Events/icccardlockerror

func IccinfochangeEvent

func IccinfochangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

IccinfochangeEvent provides DOM Event representation for the Event "iccinfochange".

The MozMobileConnection.iccInfo object changes. https://developer.mozilla.org/docs/Web/Events/iccinfochange

func IncomingEvent

func IncomingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

IncomingEvent provides DOM Event representation for the Event "incoming".

A call is being received. https://developer.mozilla.org/docs/Web/Events/incoming

func InputEvent

func InputEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

InputEvent provides DOM Event representation for the Event "input".

The value of an element changes or the content of an element with the attribute contenteditable is modified. https://developer.mozilla.org/docs/Web/Events/input

func InvalidEvent

func InvalidEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

InvalidEvent provides DOM Event representation for the Event "invalid".

A submittable element has been checked and doesn't satisfy its constraints. https://developer.mozilla.org/docs/Web/Events/invalid

func KeyDownEvent

func KeyDownEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

KeyDownEvent provides DOM Event representation for the Event "KeyDown".

A key is pressed down. https://developer.mozilla.org/docs/Web/Events/keydown

func KeyPressEvent

func KeyPressEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

KeyPressEvent provides DOM Event representation for the Event "KeyPress".

A key is pressed down and that key normally produces a character value (use input instead). https://developer.mozilla.org/docs/Web/Events/keypress

func KeyUpEvent

func KeyUpEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

KeyUpEvent provides DOM Event representation for the Event "KeyUp".

A key is released. https://developer.mozilla.org/docs/Web/Events/keyup

func LanguageChangeEvent

func LanguageChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LanguageChangeEvent provides DOM Event representation for the Event "LanguageChange".

The user's preferred languages have changed. https://developer.mozilla.org/docs/Web/Events/languagechange

func LevelChangeEvent

func LevelChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LevelChangeEvent provides DOM Event representation for the Event "LevelChange".

The level attribute has been updated. https://developer.mozilla.org/docs/Web/Events/levelchange

func LoadEndEvent

func LoadEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LoadEndEvent provides DOM Event representation for the Event "LoadEnd".

Progress has stopped (after "error", "abort" or "load" have been dispatched). https://developer.mozilla.org/docs/Web/Events/loadend

func LoadEvent

func LoadEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LoadEvent provides DOM Event representation for the Event "load".

Progression has been successful. https://developer.mozilla.org/docs/Web/Reference/Events/load_(ProgressEvent)

func LoadStartEvent

func LoadStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LoadStartEvent provides DOM Event representation for the Event "LoadStart".

Progress has begun. https://developer.mozilla.org/docs/Web/Events/loadstart

func LoadedDataEvent

func LoadedDataEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LoadedDataEvent provides DOM Event representation for the Event "LoadedData".

The first frame of the media has finished loading. https://developer.mozilla.org/docs/Web/Events/loadeddata

func LoadedMetadataEvent

func LoadedMetadataEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LoadedMetadataEvent provides DOM Event representation for the Event "LoadedMetadata".

The metadata has been loaded. https://developer.mozilla.org/docs/Web/Events/loadedmetadata

func LocalizedEvent

func LocalizedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LocalizedEvent provides DOM Event representation for the Event "localized".

The page has been localized using data-l10n-* attributes. https://developer.mozilla.org/docs/Web/Events/localized

func LostPointerCaptureEvent

func LostPointerCaptureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

LostPointerCaptureEvent provides DOM Event representation for the Event "LostPointerCapture".

Element lost pointer capture. https://developer.mozilla.org/docs/Web/Events/lostpointercapture

func MSManipulationStateChangedEvent

func MSManipulationStateChangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MSManipulationStateChangedEvent provides DOM Event representation for the Event "MSManipulationStateChanged".

(no documentation) https://developer.mozilla.org/docs/Web/Events/MSManipulationStateChanged

func MarkEvent

func MarkEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MarkEvent provides DOM Event representation for the Event "mark".

The spoken utterance reaches a named SSML "mark" tag. https://developer.mozilla.org/docs/Web/Events/mark

func MessageErrorEvent

func MessageErrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MessageErrorEvent provides DOM Event representation for the Event "MessageError".

A message error is raised when a message is received by an object. https://developer.mozilla.org/docs/Web/Events/messageerror

func MessageEvent

func MessageEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MessageEvent provides DOM Event representation for the Event "message".

A message is received from a service worker, or a message is received in a service worker from another context. https://developer.mozilla.org/docs/Web/Events/message_(ServiceWorker)

func MouseDownEvent

func MouseDownEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseDownEvent provides DOM Event representation for the Event "MouseDown".

A pointing device button (usually a mouse) is pressed on an element. https://developer.mozilla.org/docs/Web/Events/mousedown

func MouseEnterEvent

func MouseEnterEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseEnterEvent provides DOM Event representation for the Event "MouseEnter".

A pointing device is moved onto the element that has the listener attached. https://developer.mozilla.org/docs/Web/Events/mouseenter

func MouseLeaveEvent

func MouseLeaveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseLeaveEvent provides DOM Event representation for the Event "MouseLeave".

A pointing device is moved off the element that has the listener attached. https://developer.mozilla.org/docs/Web/Events/mouseleave

func MouseMoveEvent

func MouseMoveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseMoveEvent provides DOM Event representation for the Event "MouseMove".

A pointing device is moved over an element. https://developer.mozilla.org/docs/Web/Events/mousemove

func MouseOutEvent

func MouseOutEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseOutEvent provides DOM Event representation for the Event "MouseOut".

A pointing device is moved off the element that has the listener attached or off one of its children. https://developer.mozilla.org/docs/Web/Events/mouseout

func MouseOverEvent

func MouseOverEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseOverEvent provides DOM Event representation for the Event "MouseOver".

A pointing device is moved onto the element that has the listener attached or onto one of its children. https://developer.mozilla.org/docs/Web/Events/mouseover

func MouseUpEvent

func MouseUpEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MouseUpEvent provides DOM Event representation for the Event "MouseUp".

A pointing device button is released over an element. https://developer.mozilla.org/docs/Web/Events/mouseup

func MozAfterPaintEvent

func MozAfterPaintEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozAfterPaintEvent provides DOM Event representation for the Event "MozAfterPaint".

Content has been repainted. https://developer.mozilla.org/docs/Web/Reference/Events/MozAfterPaint

func MozAudioAvailableEvent

func MozAudioAvailableEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozAudioAvailableEvent provides DOM Event representation for the Event "MozAudioAvailable".

The audio buffer is full and the corresponding raw samples are available. https://developer.mozilla.org/docs/Web/Events/MozAudioAvailable

func MozBeforeResizeEvent

func MozBeforeResizeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozBeforeResizeEvent provides DOM Event representation for the Event "MozBeforeResize".

A window is about to be resized. https://developer.mozilla.org/docs/Web/Reference/Events/MozBeforeResize

func MozEdgeUIGestureEvent

func MozEdgeUIGestureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozEdgeUIGestureEvent provides DOM Event representation for the Event "MozEdgeUIGesture".

A touch point is swiped across the touch surface to invoke the edge UI (Win8 only). https://developer.mozilla.org/docs/Web/Reference/Events/MozEdgeUIGesture

func MozEnteredDomFullscreenEvent

func MozEnteredDomFullscreenEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozEnteredDomFullscreenEvent provides DOM Event representation for the Event "MozEnteredDomFullscreen".

DOM fullscreen mode has been entered. https://developer.mozilla.org/docs/Web/Reference/Events/MozEnteredDomFullscreen

func MozGamepadButtonDownEvent

func MozGamepadButtonDownEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozGamepadButtonDownEvent provides DOM Event representation for the Event "MozGamepadButtonDown".

A gamepad button is pressed down. https://developer.mozilla.org/docs/Web/Events/MozGamepadButtonDown

func MozGamepadButtonUpEvent

func MozGamepadButtonUpEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozGamepadButtonUpEvent provides DOM Event representation for the Event "MozGamepadButtonUp".

A gamepad button is released. https://developer.mozilla.org/docs/Web/Events/MozGamepadButtonUp

func MozMagnifyGestureEvent

func MozMagnifyGestureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozMagnifyGestureEvent provides DOM Event representation for the Event "MozMagnifyGesture".

Two touch points moved away from each other (after a sequence of MozMagnifyGestureUpdate). https://developer.mozilla.org/docs/Web/Reference/Events/MozMagnifyGesture

func MozMagnifyGestureStartEvent

func MozMagnifyGestureStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozMagnifyGestureStartEvent provides DOM Event representation for the Event "MozMagnifyGestureStart".

Two touch points start to move away from each other. https://developer.mozilla.org/docs/Web/Reference/Events/MozMagnifyGestureStart

func MozMagnifyGestureUpdateEvent

func MozMagnifyGestureUpdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozMagnifyGestureUpdateEvent provides DOM Event representation for the Event "MozMagnifyGestureUpdate".

Two touch points move away from each other (after a MozMagnifyGestureStart). https://developer.mozilla.org/docs/Web/Reference/Events/MozMagnifyGestureUpdate

func MozPressTapGestureEvent

func MozPressTapGestureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozPressTapGestureEvent provides DOM Event representation for the Event "MozPressTapGesture".

A "press-tap" gesture happened on the touch surface (first finger down, second finger down, second finger up, first finger up). https://developer.mozilla.org/docs/Web/Reference/Events/MozPressTapGesture

func MozRotateGestureEvent

func MozRotateGestureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozRotateGestureEvent provides DOM Event representation for the Event "MozRotateGesture".

Two touch points rotate around a point (after a sequence of MozRotateGestureUpdate). https://developer.mozilla.org/docs/Web/Reference/Events/MozRotateGesture

func MozRotateGestureStartEvent

func MozRotateGestureStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozRotateGestureStartEvent provides DOM Event representation for the Event "MozRotateGestureStart".

Two touch points start to rotate around a point. https://developer.mozilla.org/docs/Web/Reference/Events/MozRotateGestureStart

func MozRotateGestureUpdateEvent

func MozRotateGestureUpdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozRotateGestureUpdateEvent provides DOM Event representation for the Event "MozRotateGestureUpdate".

Two touch points rotate around a point (after a MozRotateGestureStart). https://developer.mozilla.org/docs/Web/Reference/Events/MozRotateGestureUpdate

func MozScrolledAreaChangedEvent

func MozScrolledAreaChangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozScrolledAreaChangedEvent provides DOM Event representation for the Event "MozScrolledAreaChanged".

The document view has been scrolled or resized. https://developer.mozilla.org/docs/Web/Events/MozScrolledAreaChanged

func MozSwipeGestureEvent

func MozSwipeGestureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozSwipeGestureEvent provides DOM Event representation for the Event "MozSwipeGesture".

A touch point is swiped across the touch surface https://developer.mozilla.org/docs/Web/Reference/Events/MozSwipeGesture

func MozTapGestureEvent

func MozTapGestureEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozTapGestureEvent provides DOM Event representation for the Event "MozTapGesture".

Two touch points are tapped on the touch surface. https://developer.mozilla.org/docs/Web/Reference/Events/MozTapGesture

func MozbrowseractivitydoneEvent

func MozbrowseractivitydoneEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowseractivitydoneEvent provides DOM Event representation for the Event "mozbrowseractivitydone".

Sent when some activity has been completed (complete description TBD.) https://developer.mozilla.org/docs/Web/Events/mozbrowseractivitydone

func MozbrowserasyncscrollEvent

func MozbrowserasyncscrollEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserasyncscrollEvent provides DOM Event representation for the Event "mozbrowserasyncscroll".

Sent when the scroll position within a browser <iframe> changes. https://developer.mozilla.org/docs/Web/Events/mozbrowserasyncscroll

func MozbrowseraudioplaybackchangeEvent

func MozbrowseraudioplaybackchangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowseraudioplaybackchangeEvent provides DOM Event representation for the Event "mozbrowseraudioplaybackchange".

Sent when audio starts or stops playing within the browser <iframe> content. https://developer.mozilla.org/docs/Web/Events/mozbrowseraudioplaybackchange

func MozbrowsercaretstatechangedEvent

func MozbrowsercaretstatechangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsercaretstatechangedEvent provides DOM Event representation for the Event "mozbrowsercaretstatechanged".

Sent when the text selected inside the browser <iframe> content changes. https://developer.mozilla.org/docs/Web/Events/mozbrowsercaretstatechanged

func MozbrowsercloseEvent

func MozbrowsercloseEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsercloseEvent provides DOM Event representation for the Event "mozbrowserclose".

Sent when window.close() is called within a browser <iframe>. https://developer.mozilla.org/docs/Web/Events/mozbrowserclose

func MozbrowsercontextmenuEvent

func MozbrowsercontextmenuEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsercontextmenuEvent provides DOM Event representation for the Event "mozbrowsercontextmenu".

Sent when a browser <iframe> try to open a context menu. https://developer.mozilla.org/docs/Web/Events/mozbrowsercontextmenu

func MozbrowserdocumentfirstpaintEvent

func MozbrowserdocumentfirstpaintEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserdocumentfirstpaintEvent provides DOM Event representation for the Event "mozbrowserdocumentfirstpaint".

Sent when a new paint occurs on any document in the browser <iframe>. https://developer.mozilla.org/docs/Web/Events/mozbrowserdocumentfirstpaint

func MozbrowsererrorEvent

func MozbrowsererrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsererrorEvent provides DOM Event representation for the Event "mozbrowsererror".

Sent when an error occured while trying to load a content within a browser iframe https://developer.mozilla.org/docs/Web/Events/mozbrowsererror

func MozbrowserfindchangeEvent

func MozbrowserfindchangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserfindchangeEvent provides DOM Event representation for the Event "mozbrowserfindchange".

Sent when a search operation is performed on the browser <iframe> content (see HTMLIFrameElement search methods.) https://developer.mozilla.org/docs/Web/Events/mozbrowserfindchange

func MozbrowserfirstpaintEvent

func MozbrowserfirstpaintEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserfirstpaintEvent provides DOM Event representation for the Event "mozbrowserfirstpaint".

Sent when the <iframe> paints content for the first time (this doesn't include the initial paint from about:blank.) https://developer.mozilla.org/docs/Web/Events/mozbrowserfirstpaint

func MozbrowsericonchangeEvent

func MozbrowsericonchangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsericonchangeEvent provides DOM Event representation for the Event "mozbrowsericonchange".

Sent when the favicon of a browser iframe changes. https://developer.mozilla.org/docs/Web/Events/mozbrowsericonchange

func MozbrowserloadendEvent

func MozbrowserloadendEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserloadendEvent provides DOM Event representation for the Event "mozbrowserloadend".

Sent when the browser iframe has finished loading all its assets. https://developer.mozilla.org/docs/Web/Events/mozbrowserloadend

func MozbrowserloadstartEvent

func MozbrowserloadstartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserloadstartEvent provides DOM Event representation for the Event "mozbrowserloadstart".

Sent when the browser iframe starts to load a new page. https://developer.mozilla.org/docs/Web/Events/mozbrowserloadstart

func MozbrowserlocationchangeEvent

func MozbrowserlocationchangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserlocationchangeEvent provides DOM Event representation for the Event "mozbrowserlocationchange".

Sent when an browser iframe's location changes. https://developer.mozilla.org/docs/Web/Events/mozbrowserlocationchange

func MozbrowsermanifestchangeEvent

func MozbrowsermanifestchangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsermanifestchangeEvent provides DOM Event representation for the Event "mozbrowsermanifestchange".

Sent when a the path to the app manifest changes, in the case of a browser <iframe> with an open web app embedded in it. https://developer.mozilla.org/docs/Web/Events/mozbrowsermanifestchange

func MozbrowsermetachangeEvent

func MozbrowsermetachangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsermetachangeEvent provides DOM Event representation for the Event "mozbrowsermetachange".

Sent when a <meta> elelment is added to, removed from or changed in the browser <iframe>'s content. https://developer.mozilla.org/docs/Web/Events/mozbrowsermetachange

func MozbrowseropensearchEvent

func MozbrowseropensearchEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowseropensearchEvent provides DOM Event representation for the Event "mozbrowseropensearch".

Sent when a link to a search engine is found. https://developer.mozilla.org/docs/Web/Events/mozbrowseropensearch

func MozbrowseropentabEvent

func MozbrowseropentabEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowseropentabEvent provides DOM Event representation for the Event "mozbrowseropentab".

Sent when a new tab is opened within a browser <iframe> as a result of the user issuing a command to open a link target in a new tab (for example ctrl/cmd + click.) https://developer.mozilla.org/docs/Web/Events/mozbrowseropentab

func MozbrowseropenwindowEvent

func MozbrowseropenwindowEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowseropenwindowEvent provides DOM Event representation for the Event "mozbrowseropenwindow".

Sent when window.open() is called within a browser iframe. https://developer.mozilla.org/docs/Web/Events/mozbrowseropenwindow

func MozbrowserresizeEvent

func MozbrowserresizeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserresizeEvent provides DOM Event representation for the Event "mozbrowserresize".

Sent when the browser <iframe>'s window size has changed. https://developer.mozilla.org/docs/Web/Events/mozbrowserresize

func MozbrowserscrollEvent

func MozbrowserscrollEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserscrollEvent provides DOM Event representation for the Event "mozbrowserscroll".

Sent when the browser <iframe> content scrolls. https://developer.mozilla.org/docs/Web/Events/mozbrowserscroll

func MozbrowserscrollareachangedEvent

func MozbrowserscrollareachangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserscrollareachangedEvent provides DOM Event representation for the Event "mozbrowserscrollareachanged".

Sent when the available scrolling area in the browser <iframe> changes. This can occur on resize and when the page size changes (while loading for example.) https://developer.mozilla.org/docs/Web/Events/mozbrowserscrollareachanged

func MozbrowserscrollviewchangeEvent

func MozbrowserscrollviewchangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserscrollviewchangeEvent provides DOM Event representation for the Event "mozbrowserscrollviewchange".

Sent when asynchronous scrolling (i.e. APCZ) starts or stops. https://developer.mozilla.org/docs/Web/Events/mozbrowserscrollviewchange

func MozbrowsersecuritychangeEvent

func MozbrowsersecuritychangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsersecuritychangeEvent provides DOM Event representation for the Event "mozbrowsersecuritychange".

Sent when the SSL state changes within a browser iframe. https://developer.mozilla.org/docs/Web/Events/mozbrowsersecuritychange

func MozbrowserselectionstatechangedEvent

func MozbrowserselectionstatechangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserselectionstatechangedEvent provides DOM Event representation for the Event "mozbrowserselectionstatechanged".

Sent when the text selected inside the browser <iframe> content changes. Note that this is deprecated, and newer implementations use mozbrowsercaretstatechanged instead. https://developer.mozilla.org/docs/Web/Events/mozbrowserselectionstatechanged

func MozbrowsershowmodalpromptEvent

func MozbrowsershowmodalpromptEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsershowmodalpromptEvent provides DOM Event representation for the Event "mozbrowsershowmodalprompt".

Sent when alert(), confirm() or prompt() are called within a browser iframe https://developer.mozilla.org/docs/Web/Events/mozbrowsershowmodalprompt

func MozbrowsertitlechangeEvent

func MozbrowsertitlechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowsertitlechangeEvent provides DOM Event representation for the Event "mozbrowsertitlechange".

Sent when the document.title changes within a browser iframe. https://developer.mozilla.org/docs/Web/Events/mozbrowsertitlechange

func MozbrowserusernameandpasswordrequiredEvent

func MozbrowserusernameandpasswordrequiredEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowserusernameandpasswordrequiredEvent provides DOM Event representation for the Event "mozbrowserusernameandpasswordrequired".

Sent when an HTTP authentification is requested. https://developer.mozilla.org/docs/Web/Events/mozbrowserusernameandpasswordrequired

func MozbrowservisibilitychangeEvent

func MozbrowservisibilitychangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MozbrowservisibilitychangeEvent provides DOM Event representation for the Event "mozbrowservisibilitychange".

Sent when the visibility state of the current browser iframe <iframe> changes, for example due to a call to setVisible(). https://developer.mozilla.org/docs/Web/Events/mozbrowservisibilitychange

func MoztimechangeEvent

func MoztimechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MoztimechangeEvent provides DOM Event representation for the Event "moztimechange".

The time of the device has been changed. https://developer.mozilla.org/docs/Web/Events/moztimechange

func MsContentZoomEvent

func MsContentZoomEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

MsContentZoomEvent provides DOM Event representation for the Event "msContentZoom".

(no documentation) https://developer.mozilla.org/docs/Web/Events/msContentZoom

func NewEventDescriptor

func NewEventDescriptor(event string, responder interface{}, mods ...EventDescriptorModder) *EventDescriptor

NewEventDescriptor returns a new instance of an EventDescriptor.

func NoMatchEvent

func NoMatchEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

NoMatchEvent provides DOM Event representation for the Event "NoMatch".

The speech recognition service returns a final result with no significant recognition. https://developer.mozilla.org/docs/Web/Events/nomatch

func NoUpdateEvent

func NoUpdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

NoUpdateEvent provides DOM Event representation for the Event "NoUpdate".

The manifest hadn't changed. https://developer.mozilla.org/docs/Web/Events/noupdate

func NotificationClickEvent

func NotificationClickEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

NotificationClickEvent provides DOM Event representation for the Event "NotificationClick".

A system notification spawned by ServiceWorkerRegistration.showNotification() has been clicked. https://developer.mozilla.org/docs/Web/Events/notificationclick

func ObsoleteEvent

func ObsoleteEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ObsoleteEvent provides DOM Event representation for the Event "obsolete".

The manifest was found to have become a 404 or 410 page, so the application cache is being deleted. https://developer.mozilla.org/docs/Web/Events/obsolete

func OfflineEvent

func OfflineEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

OfflineEvent provides DOM Event representation for the Event "offline".

The browser has lost access to the network. https://developer.mozilla.org/docs/Web/Events/offline

func OnconnectedEvent

func OnconnectedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

OnconnectedEvent provides DOM Event representation for the Event "onconnected".

A call has been connected. https://developer.mozilla.org/docs/DOM/onconnected

func OnlineEvent

func OnlineEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

OnlineEvent provides DOM Event representation for the Event "online".

The browser has gained access to the network (but particular websites might be unreachable). https://developer.mozilla.org/docs/Web/Events/online

func OpenEvent

func OpenEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

OpenEvent provides DOM Event representation for the Event "open".

An event source connection has been established. https://developer.mozilla.org/docs/Web/Reference/Events/open_serversentevents

func OrientationChangeEvent

func OrientationChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

OrientationChangeEvent provides DOM Event representation for the Event "OrientationChange".

The orientation of the device (portrait/landscape) has changed https://developer.mozilla.org/docs/Web/Events/orientationchange

func OverflowEvent

func OverflowEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

OverflowEvent provides DOM Event representation for the Event "overflow".

An element has been overflowed by its content or has been rendered for the first time in this state (only works for elements styled with overflow != visible). https://developer.mozilla.org/docs/Web/Events/overflow

func PageHideEvent

func PageHideEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PageHideEvent provides DOM Event representation for the Event "PageHide".

A session history entry is being traversed from. https://developer.mozilla.org/docs/Web/Events/pagehide

func PageShowEvent

func PageShowEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PageShowEvent provides DOM Event representation for the Event "PageShow".

A session history entry is being traversed to. https://developer.mozilla.org/docs/Web/Events/pageshow

func PasteEvent

func PasteEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PasteEvent provides DOM Event representation for the Event "paste".

Data has been transferred from the system clipboard to the document. https://developer.mozilla.org/docs/Web/Events/paste

func PauseEvent

func PauseEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PauseEvent provides DOM Event representation for the Event "pause".

The utterance is paused part way through. https://developer.mozilla.org/docs/Web/Events/pause_(SpeechSynthesis)

func PlayEvent

func PlayEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PlayEvent provides DOM Event representation for the Event "play".

Playback has begun. https://developer.mozilla.org/docs/Web/Events/play

func PlayingEvent

func PlayingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PlayingEvent provides DOM Event representation for the Event "playing".

Playback is ready to start after having been paused or delayed due to lack of data. https://developer.mozilla.org/docs/Web/Events/playing

func PointerCancelEvent

func PointerCancelEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerCancelEvent provides DOM Event representation for the Event "PointerCancel".

The pointer is unlikely to produce any more events. https://developer.mozilla.org/docs/Web/Events/pointercancel

func PointerDownEvent

func PointerDownEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerDownEvent provides DOM Event representation for the Event "PointerDown".

The pointer enters the active buttons state. https://developer.mozilla.org/docs/Web/Events/pointerdown

func PointerEnterEvent

func PointerEnterEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerEnterEvent provides DOM Event representation for the Event "PointerEnter".

Pointing device is moved inside the hit-testing boundary. https://developer.mozilla.org/docs/Web/Events/pointerenter

func PointerLeaveEvent

func PointerLeaveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerLeaveEvent provides DOM Event representation for the Event "PointerLeave".

Pointing device is moved out of the hit-testing boundary. https://developer.mozilla.org/docs/Web/Events/pointerleave

func PointerLockChangeEvent

func PointerLockChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerLockChangeEvent provides DOM Event representation for the Event "PointerLockChange".

The pointer was locked or released. https://developer.mozilla.org/docs/Web/Events/pointerlockchange

func PointerLockErrorEvent

func PointerLockErrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerLockErrorEvent provides DOM Event representation for the Event "PointerLockError".

It was impossible to lock the pointer for technical reasons or because the permission was denied. https://developer.mozilla.org/docs/Web/Events/pointerlockerror

func PointerMoveEvent

func PointerMoveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerMoveEvent provides DOM Event representation for the Event "PointerMove".

The pointer changed coordinates. https://developer.mozilla.org/docs/Web/Events/pointermove

func PointerOutEvent

func PointerOutEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerOutEvent provides DOM Event representation for the Event "PointerOut".

The pointing device moved out of hit-testing boundary or leaves detectable hover range. https://developer.mozilla.org/docs/Web/Events/pointerout

func PointerOverEvent

func PointerOverEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerOverEvent provides DOM Event representation for the Event "PointerOver".

The pointing device is moved into the hit-testing boundary. https://developer.mozilla.org/docs/Web/Events/pointerover

func PointerUpEvent

func PointerUpEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PointerUpEvent provides DOM Event representation for the Event "PointerUp".

The pointer leaves the active buttons state. https://developer.mozilla.org/docs/Web/Events/pointerup

func PopStateEvent

func PopStateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PopStateEvent provides DOM Event representation for the Event "PopState".

A session history entry is being navigated to (in certain cases). https://developer.mozilla.org/docs/Web/Events/popstate

func PopuphiddenEvent

func PopuphiddenEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PopuphiddenEvent provides DOM Event representation for the Event "popuphidden".

A menupopup, panel or tooltip has been hidden. https://developer.mozilla.org/docs/Web/Events/popuphidden

func PopuphidingEvent

func PopuphidingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PopuphidingEvent provides DOM Event representation for the Event "popuphiding".

A menupopup, panel or tooltip is about to be hidden. https://developer.mozilla.org/docs/Web/Events/popuphiding

func PopupshowingEvent

func PopupshowingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PopupshowingEvent provides DOM Event representation for the Event "popupshowing".

A menupopup, panel or tooltip is about to become visible. https://developer.mozilla.org/docs/Web/Events/popupshowing

func PopupshownEvent

func PopupshownEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PopupshownEvent provides DOM Event representation for the Event "popupshown".

A menupopup, panel or tooltip has become visible. https://developer.mozilla.org/docs/Web/Events/popupshown

func ProgressEvent

func ProgressEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ProgressEvent provides DOM Event representation for the Event "progress".

The user agent is downloading resources listed by the manifest. https://developer.mozilla.org/docs/Web/Reference/Events/progress_(appcache_event)

func PushEvent

func PushEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PushEvent provides DOM Event representation for the Event "push".

A Service Worker has received a push message. https://developer.mozilla.org/docs/Web/Events/push

func PushSubscriptionChangeEvent

func PushSubscriptionChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

PushSubscriptionChangeEvent provides DOM Event representation for the Event "PushSubscriptionChange".

A PushSubscription has expired. https://developer.mozilla.org/docs/Web/Events/pushsubscriptionchange

func RadioStateChangeEvent

func RadioStateChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

RadioStateChangeEvent provides DOM Event representation for the Event "RadioStateChange".

The state of a radio has been changed either by a user action or by a script (useful for accessibility). https://developer.mozilla.org/docs/Web/Events/RadioStateChange

func RateChangeEvent

func RateChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

RateChangeEvent provides DOM Event representation for the Event "RateChange".

The playback rate has changed. https://developer.mozilla.org/docs/Web/Events/ratechange

func ReadyStateChangeEvent

func ReadyStateChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ReadyStateChangeEvent provides DOM Event representation for the Event "ReadyStateChange".

The readyState attribute of a document has changed. https://developer.mozilla.org/docs/Web/Events/readystatechange

func ReceivedEvent

func ReceivedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ReceivedEvent provides DOM Event representation for the Event "received".

An SMS has been received. https://developer.mozilla.org/docs/Web/Events/received

func RepeatEventEvent

func RepeatEventEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

RepeatEventEvent provides DOM Event representation for the Event "repeatEvent".

A SMIL animation element is repeated. https://developer.mozilla.org/docs/Web/Events/repeatEvent

func ResetEvent

func ResetEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ResetEvent provides DOM Event representation for the Event "reset".

A form is reset. https://developer.mozilla.org/docs/Web/Events/reset

func ResizeEvent

func ResizeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ResizeEvent provides DOM Event representation for the Event "resize".

The document view has been resized. https://developer.mozilla.org/docs/Web/Events/resize

func ResourceTimingBufferFullEvent

func ResourceTimingBufferFullEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ResourceTimingBufferFullEvent provides DOM Event representation for the Event "ResourceTimingBufferFull".

The browser's resource timing buffer is full. https://developer.mozilla.org/docs/Web/Events/resourcetimingbufferfull

func ResultEvent

func ResultEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ResultEvent provides DOM Event representation for the Event "result".

The speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app. https://developer.mozilla.org/docs/Web/Events/result

func ResumeEvent

func ResumeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ResumeEvent provides DOM Event representation for the Event "resume".

A paused utterance is resumed. https://developer.mozilla.org/docs/Web/Events/resume

func ResumingEvent

func ResumingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ResumingEvent provides DOM Event representation for the Event "resuming".

A call is about to resume. https://developer.mozilla.org/docs/Web/Events/resuming

func SSTabClosingEvent

func SSTabClosingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SSTabClosingEvent provides DOM Event representation for the Event "SSTabClosing".

The session store will stop tracking this tab. https://developer.mozilla.org/docs/Web/Reference/Events/SSTabClosing

func SSTabRestoredEvent

func SSTabRestoredEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SSTabRestoredEvent provides DOM Event representation for the Event "SSTabRestored".

A tab has been restored. https://developer.mozilla.org/docs/Web/Reference/Events/SSTabRestored

func SSTabRestoringEvent

func SSTabRestoringEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SSTabRestoringEvent provides DOM Event representation for the Event "SSTabRestoring".

A tab is about to be restored. https://developer.mozilla.org/docs/Web/Reference/Events/SSTabRestoring

func SSWindowClosingEvent

func SSWindowClosingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SSWindowClosingEvent provides DOM Event representation for the Event "SSWindowClosing".

The session store will stop tracking this window. https://developer.mozilla.org/docs/Web/Reference/Events/SSWindowClosing

func SSWindowStateBusyEvent

func SSWindowStateBusyEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SSWindowStateBusyEvent provides DOM Event representation for the Event "SSWindowStateBusy".

A window state has switched to "busy". https://developer.mozilla.org/docs/Web/Reference/Events/SSWindowStateBusy

func SSWindowStateReadyEvent

func SSWindowStateReadyEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SSWindowStateReadyEvent provides DOM Event representation for the Event "SSWindowStateReady".

A window state has switched to "ready". https://developer.mozilla.org/docs/Web/Reference/Events/SSWindowStateReady

func SVGAbortEvent

func SVGAbortEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGAbortEvent provides DOM Event representation for the Event "SVGAbort".

Page loading has been stopped before the SVG was loaded. https://developer.mozilla.org/docs/Web/Events/SVGAbort

func SVGErrorEvent

func SVGErrorEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGErrorEvent provides DOM Event representation for the Event "SVGError".

An error has occurred before the SVG was loaded. https://developer.mozilla.org/docs/Web/Events/SVGError

func SVGLoadEvent

func SVGLoadEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGLoadEvent provides DOM Event representation for the Event "SVGLoad".

An SVG document has been loaded and parsed. https://developer.mozilla.org/docs/Web/Events/SVGLoad

func SVGResizeEvent

func SVGResizeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGResizeEvent provides DOM Event representation for the Event "SVGResize".

An SVG document is being resized. https://developer.mozilla.org/docs/Web/Events/SVGResize

func SVGScrollEvent

func SVGScrollEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGScrollEvent provides DOM Event representation for the Event "SVGScroll".

An SVG document is being scrolled. https://developer.mozilla.org/docs/Web/Events/SVGScroll

func SVGUnloadEvent

func SVGUnloadEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGUnloadEvent provides DOM Event representation for the Event "SVGUnload".

An SVG document has been removed from a window or frame. https://developer.mozilla.org/docs/Web/Events/SVGUnload

func SVGZoomEvent

func SVGZoomEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SVGZoomEvent provides DOM Event representation for the Event "SVGZoom".

An SVG document is being zoomed. https://developer.mozilla.org/docs/Web/Events/SVGZoom

func ScrollEvent

func ScrollEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ScrollEvent provides DOM Event representation for the Event "scroll".

The document view or an element has been scrolled. https://developer.mozilla.org/docs/Web/Events/scroll

func SeekedEvent

func SeekedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SeekedEvent provides DOM Event representation for the Event "seeked".

A seek operation completed. https://developer.mozilla.org/docs/Web/Events/seeked

func SeekingEvent

func SeekingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SeekingEvent provides DOM Event representation for the Event "seeking".

A seek operation began. https://developer.mozilla.org/docs/Web/Events/seeking

func SelectEvent

func SelectEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SelectEvent provides DOM Event representation for the Event "select".

Some text is being selected. https://developer.mozilla.org/docs/Web/Events/select

func SelectStartEvent

func SelectStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SelectStartEvent provides DOM Event representation for the Event "SelectStart".

A selection just started. https://developer.mozilla.org/docs/Web/Events/selectstart

func SelectionChangeEvent

func SelectionChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SelectionChangeEvent provides DOM Event representation for the Event "SelectionChange".

The selection in the document has been changed. https://developer.mozilla.org/docs/Web/Events/selectionchange

func SentEvent

func SentEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SentEvent provides DOM Event representation for the Event "sent".

An SMS has been sent. https://developer.mozilla.org/docs/Web/Events/sent

func ShowEvent

func ShowEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ShowEvent provides DOM Event representation for the Event "show".

A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute https://developer.mozilla.org/docs/Web/Events/show

func SizemodechangeEvent

func SizemodechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SizemodechangeEvent provides DOM Event representation for the Event "sizemodechange".

Window has entered/left fullscreen mode, or has been minimized/unminimized. https://developer.mozilla.org/docs/Web/Reference/Events/sizemodechange

func SlotChangeEvent

func SlotChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SlotChangeEvent provides DOM Event representation for the Event "SlotChange".

The node contents of a HTMLSlotElement (<slot>) have changed. https://developer.mozilla.org/docs/Web/Events/slotchange

func SmartcardInsertEvent

func SmartcardInsertEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SmartcardInsertEvent provides DOM Event representation for the Event "smartcard-insert".

A smartcard has been inserted. https://developer.mozilla.org/docs/Web/Events/smartcard-insert

func SmartcardRemoveEvent

func SmartcardRemoveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SmartcardRemoveEvent provides DOM Event representation for the Event "smartcard-remove".

A smartcard has been removed. https://developer.mozilla.org/docs/Web/Events/smartcard-remove

func SoundEndEvent

func SoundEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SoundEndEvent provides DOM Event representation for the Event "SoundEnd".

Any sound — recognisable speech or not — has stopped being detected. https://developer.mozilla.org/docs/Web/Events/soundend

func SoundStartEvent

func SoundStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SoundStartEvent provides DOM Event representation for the Event "SoundStart".

Any sound — recognisable speech or not — has been detected. https://developer.mozilla.org/docs/Web/Events/soundstart

func SpeechEndEvent

func SpeechEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SpeechEndEvent provides DOM Event representation for the Event "SpeechEnd".

Speech recognised by the speech recognition service has stopped being detected. https://developer.mozilla.org/docs/Web/Events/speechend

func SpeechStartEvent

func SpeechStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SpeechStartEvent provides DOM Event representation for the Event "SpeechStart".

Sound that is recognised by the speech recognition service as speech has been detected. https://developer.mozilla.org/docs/Web/Events/speechstart

func StalledEvent

func StalledEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StalledEvent provides DOM Event representation for the Event "stalled".

The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. https://developer.mozilla.org/docs/Web/Events/stalled

func StartEvent

func StartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StartEvent provides DOM Event representation for the Event "start".

The utterance has begun to be spoken. https://developer.mozilla.org/docs/Web/Events/start_(SpeechSynthesis)

func StatechangeEvent

func StatechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StatechangeEvent provides DOM Event representation for the Event "statechange".

The state of a call has changed. https://developer.mozilla.org/docs/Web/Events/statechange

func StatuschangeEvent

func StatuschangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StatuschangeEvent provides DOM Event representation for the Event "statuschange".

The status of the Wifi connection changed. https://developer.mozilla.org/docs/Web/Events/statuschange

func StkcommandEvent

func StkcommandEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StkcommandEvent provides DOM Event representation for the Event "stkcommand".

The STK Proactive Command is issued from ICC. https://developer.mozilla.org/docs/Web/Events/stkcommand

func StksessionendEvent

func StksessionendEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StksessionendEvent provides DOM Event representation for the Event "stksessionend".

The STK Session is terminated by ICC. https://developer.mozilla.org/docs/Web/Events/stksessionend

func StorageEvent

func StorageEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

StorageEvent provides DOM Event representation for the Event "storage".

A storage area (localStorage or sessionStorage) has changed. https://developer.mozilla.org/docs/Web/Events/storage

func SubmitEvent

func SubmitEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SubmitEvent provides DOM Event representation for the Event "submit".

A form is submitted. https://developer.mozilla.org/docs/Web/Events/submit

func SuccessEvent

func SuccessEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SuccessEvent provides DOM Event representation for the Event "success".

A request successfully completed. https://developer.mozilla.org/docs/Web/Reference/Events/success_indexedDB

func SuspendEvent

func SuspendEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

SuspendEvent provides DOM Event representation for the Event "suspend".

Media data loading has been suspended. https://developer.mozilla.org/docs/Web/Events/suspend

func TabCloseEvent

func TabCloseEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabCloseEvent provides DOM Event representation for the Event "TabClose".

A tab has been closed. https://developer.mozilla.org/docs/Web/Reference/Events/TabClose

func TabHideEvent

func TabHideEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabHideEvent provides DOM Event representation for the Event "TabHide".

A tab has been hidden. https://developer.mozilla.org/docs/Web/Reference/Events/TabHide

func TabOpenEvent

func TabOpenEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabOpenEvent provides DOM Event representation for the Event "TabOpen".

A tab has been opened. https://developer.mozilla.org/docs/Web/Reference/Events/TabOpen

func TabPinnedEvent

func TabPinnedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabPinnedEvent provides DOM Event representation for the Event "TabPinned".

A tab has been pinned. https://developer.mozilla.org/docs/Web/Reference/Events/TabPinned

func TabSelectEvent

func TabSelectEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabSelectEvent provides DOM Event representation for the Event "TabSelect".

A tab has been selected. https://developer.mozilla.org/docs/Web/Reference/Events/TabSelect

func TabShowEvent

func TabShowEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabShowEvent provides DOM Event representation for the Event "TabShow".

A tab has been shown. https://developer.mozilla.org/docs/Web/Reference/Events/TabShow

func TabUnpinnedEvent

func TabUnpinnedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TabUnpinnedEvent provides DOM Event representation for the Event "TabUnpinned".

A tab has been unpinned. https://developer.mozilla.org/docs/Web/Reference/Events/TabUnpinned

func TimeUpdateEvent

func TimeUpdateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TimeUpdateEvent provides DOM Event representation for the Event "TimeUpdate".

The time indicated by the currentTime attribute has been updated. https://developer.mozilla.org/docs/Web/Events/timeupdate

func TimeoutEvent

func TimeoutEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TimeoutEvent provides DOM Event representation for the Event "timeout".

(no documentation) https://developer.mozilla.org/docs/Web/Events/timeout

func TouchCancelEvent

func TouchCancelEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TouchCancelEvent provides DOM Event representation for the Event "TouchCancel".

A touch point has been disrupted in an implementation-specific manners (too many touch points for example). https://developer.mozilla.org/docs/Web/Events/touchcancel

func TouchEndEvent

func TouchEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TouchEndEvent provides DOM Event representation for the Event "TouchEnd".

A touch point is removed from the touch surface. https://developer.mozilla.org/docs/Web/Events/touchend

func TouchEnterEvent

func TouchEnterEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TouchEnterEvent provides DOM Event representation for the Event "TouchEnter".

(no documentation) https://developer.mozilla.org/docs/Web/Events/touchenter

func TouchLeaveEvent

func TouchLeaveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TouchLeaveEvent provides DOM Event representation for the Event "TouchLeave".

(no documentation) https://developer.mozilla.org/docs/Web/Events/touchleave

func TouchMoveEvent

func TouchMoveEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TouchMoveEvent provides DOM Event representation for the Event "TouchMove".

A touch point is moved along the touch surface. https://developer.mozilla.org/docs/Web/Events/touchmove

func TouchStartEvent

func TouchStartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TouchStartEvent provides DOM Event representation for the Event "TouchStart".

A touch point is placed on the touch surface. https://developer.mozilla.org/docs/Web/Events/touchstart

func TransitionEndEvent

func TransitionEndEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TransitionEndEvent provides DOM Event representation for the Event "TransitionEnd".

A CSS transition has completed. https://developer.mozilla.org/docs/Web/Events/transitionend

func TransitioncancelEvent

func TransitioncancelEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TransitioncancelEvent provides DOM Event representation for the Event "transitioncancel".

(no documentation) https://developer.mozilla.org/docs/Web/Events/transitioncancel

func TransitionrunEvent

func TransitionrunEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TransitionrunEvent provides DOM Event representation for the Event "transitionrun".

(no documentation) https://developer.mozilla.org/docs/Web/Events/transitionrun

func TransitionstartEvent

func TransitionstartEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

TransitionstartEvent provides DOM Event representation for the Event "transitionstart".

(no documentation) https://developer.mozilla.org/docs/Web/Events/transitionstart

func UnderflowEvent

func UnderflowEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

UnderflowEvent provides DOM Event representation for the Event "underflow".

An element is no longer overflowed by its content (only works for elements styled with overflow != visible). https://developer.mozilla.org/docs/Web/Events/underflow

func UnloadEvent

func UnloadEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

UnloadEvent provides DOM Event representation for the Event "unload".

The document or a dependent resource is being unloaded. https://developer.mozilla.org/docs/Web/Events/unload

func UpdateReadyEvent

func UpdateReadyEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

UpdateReadyEvent provides DOM Event representation for the Event "UpdateReady".

The resources listed in the manifest have been newly redownloaded, and the script can use swapCache() to switch to the new cache. https://developer.mozilla.org/docs/Web/Events/updateready

func UpgradeNeededEvent

func UpgradeNeededEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

UpgradeNeededEvent provides DOM Event representation for the Event "UpgradeNeeded".

An attempt was made to open a database with a version number higher than its current version. A versionchange transaction has been created. https://developer.mozilla.org/docs/Web/Reference/Events/upgradeneeded_indexedDB

func UserProximityEvent

func UserProximityEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

UserProximityEvent provides DOM Event representation for the Event "UserProximity".

Fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not). https://developer.mozilla.org/docs/Web/Events/userproximity

func UssdreceivedEvent

func UssdreceivedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

UssdreceivedEvent provides DOM Event representation for the Event "ussdreceived".

A new USSD message is received https://developer.mozilla.org/docs/Web/Events/ussdreceived

func VRDisplayPresentChangeEvent

func VRDisplayPresentChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VRDisplayPresentChangeEvent provides DOM Event representation for the Event "VRDisplayPresentChange".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaypresentchange

func ValueChangeEvent

func ValueChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

ValueChangeEvent provides DOM Event representation for the Event "ValueChange".

The value of an element has changed (a progress bar for example, useful for accessibility). https://developer.mozilla.org/docs/Web/Events/ValueChange

func VersionChangeEvent

func VersionChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VersionChangeEvent provides DOM Event representation for the Event "VersionChange".

A versionchange transaction completed. https://developer.mozilla.org/docs/Web/Reference/Events/versionchange_indexedDB

func VisibilityChangeEvent

func VisibilityChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VisibilityChangeEvent provides DOM Event representation for the Event "VisibilityChange".

The content of a tab has become visible or has been hidden. https://developer.mozilla.org/docs/Web/Events/visibilitychange

func VoicechangeEvent

func VoicechangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VoicechangeEvent provides DOM Event representation for the Event "voicechange".

The MozMobileConnection.voice object changes values. https://developer.mozilla.org/docs/Web/Events/voicechange

func VoicesChangedEvent

func VoicesChangedEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VoicesChangedEvent provides DOM Event representation for the Event "VoicesChanged".

The list of SpeechSynthesisVoice objects that would be returned by the SpeechSynthesis.getVoices() method has changed (when the voiceschanged event fires.) https://developer.mozilla.org/docs/Web/Events/voiceschanged

func VolumeChangeEvent

func VolumeChangeEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VolumeChangeEvent provides DOM Event representation for the Event "VolumeChange".

The volume has changed. https://developer.mozilla.org/docs/Web/Events/volumechange

func VrdisplayactivateEvent

func VrdisplayactivateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VrdisplayactivateEvent provides DOM Event representation for the Event "vrdisplayactivate".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayactivate

func VrdisplayblurEvent

func VrdisplayblurEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VrdisplayblurEvent provides DOM Event representation for the Event "vrdisplayblur".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayblur

func VrdisplayconnectEvent

func VrdisplayconnectEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VrdisplayconnectEvent provides DOM Event representation for the Event "vrdisplayconnect".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayconnect

func VrdisplaydeactivateEvent

func VrdisplaydeactivateEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VrdisplaydeactivateEvent provides DOM Event representation for the Event "vrdisplaydeactivate".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaydeactivate

func VrdisplaydisconnectEvent

func VrdisplaydisconnectEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VrdisplaydisconnectEvent provides DOM Event representation for the Event "vrdisplaydisconnect".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaydisconnect

func VrdisplayfocusEvent

func VrdisplayfocusEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

VrdisplayfocusEvent provides DOM Event representation for the Event "vrdisplayfocus".

(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayfocus

func WaitingEvent

func WaitingEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

WaitingEvent provides DOM Event representation for the Event "waiting".

Playback has stopped because of a temporary lack of data. https://developer.mozilla.org/docs/Web/Events/waiting

func WheelEvent

func WheelEvent(handler interface{}, mods ...EventDescriptorModder) *EventDescriptor

WheelEvent provides DOM Event representation for the Event "wheel".

A wheel button of a pointing device is rotated in any direction. https://developer.mozilla.org/docs/Web/Events/wheel

func (*EventDescriptor) Contains

func (ed *EventDescriptor) Contains(s string) error

Contains returns true/false if giving string is the same name as giving event.

func (*EventDescriptor) EncodeObject

func (ed *EventDescriptor) EncodeObject(enc npkg.ObjectEncoder)

EncodeObject implements encoding using the npkg.EncodableObject interface.

func (*EventDescriptor) Key

func (ed *EventDescriptor) Key() string

Key returns giving key or name of attribute.

func (*EventDescriptor) Match

func (ed *EventDescriptor) Match(other Attr) bool

Match returns true/false if giving attributes matched.

func (*EventDescriptor) Mount

func (ed *EventDescriptor) Mount(n *Node) error

Mount implements the RenderMount interface.

func (*EventDescriptor) Namespace

func (ed *EventDescriptor) Namespace() string

Namespace returns the underline namespace format for giving EventDescriptor.

Namespace uses a suffix format where the PreventDefault and StopPropagation are arrange in the 00 order, where the first is PreventDefault and the second StopPropagation.

A value of 1 means to turn it on and 0 means it's off and should be ignored.

func (*EventDescriptor) Text

func (ed *EventDescriptor) Text() string

Text returns giving value of attribute as text.

func (*EventDescriptor) Unmount

func (ed *EventDescriptor) Unmount(n *Node)

Unmount implements the RenderMount interface.

func (*EventDescriptor) Value

func (ed *EventDescriptor) Value() interface{}

Value returns giving value of attribute.

type EventDescriptorModder

type EventDescriptorModder func(*EventDescriptor)

EventDescriptorModder defines a function to modify a giving EventDescriptor.

func PreventDefault

func PreventDefault() EventDescriptorModder

PreventDefault returns a EventModder that sets true to EventDescriptor.PreventDefault flag..

func StopPropagation

func StopPropagation() EventDescriptorModder

StopPropagation returns a EventModder that sets true to EventDescriptor.StopPropagation flag..

type EventDescriptorRespondHandler

type EventDescriptorRespondHandler func(natomic.Signal, EventDescriptor)

EventDescriptorRespondHandler defines a function matching the EventDescriptorResponder.

func (EventDescriptorRespondHandler) RespondEvent

RespondEvent implements the EventDescriptorResponder interface.

type EventDescriptorResponder

type EventDescriptorResponder interface {
	RespondEvent(natomic.Signal, EventDescriptor)
}

EventDescriptorResponder defines an interface which responds to a signal with giving EventDescriptor.

type EventHashList

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

EventHashList implements the a set list for Nodes using their Node.RefID() value as unique keys.

func NewEventHashList

func NewEventHashList() *EventHashList

NewEventHashList returns a new instance EventHashList.

func (*EventHashList) Add

func (na *EventHashList) Add(event EventDescriptor)

Add adds giving node into giving list if it has giving attribute value.

func (*EventHashList) Count

func (na *EventHashList) Count() int

Count returns the total content count of map

func (*EventHashList) EncodeEvents

func (na *EventHashList) EncodeEvents(encoder *strings.Builder) error

EncodeEvents encodes all giving event within provided event hash list.

func (*EventHashList) EncodeList

func (na *EventHashList) EncodeList(enc npkg.ListEncoder)

EncodeList encodes underline events into provided list encoder.

func (*EventHashList) Len

func (na *EventHashList) Len() int

Len returns the underline length of events in map.

func (*EventHashList) Remove

func (na *EventHashList) Remove(event EventDescriptor)

Remove removes giving node in list if it has giving handler.

func (*EventHashList) RemoveAll

func (na *EventHashList) RemoveAll(event string)

RemoveAll removes giving node in list if it has giving attribute value.

func (*EventHashList) RemoveEventResponder

func (na *EventHashList) RemoveEventResponder(event string, r EventDescriptorResponder)

RemoveEventResponder removes giving event descriptor for giving responder.

func (*EventHashList) RemoveSignalResponder

func (na *EventHashList) RemoveSignalResponder(event string, r natomic.SignalResponder)

RemoveSignalResponder removes giving event descriptor for giving responder.

func (*EventHashList) Reset

func (na *EventHashList) Reset()

Reset resets the internal hashmap used for storing nodes. There by removing all registered nodes.

func (*EventHashList) Respond

func (na *EventHashList) Respond(s natomic.Signal)

Respond delivers giving event to all descriptors of events within hash.

type EventModder

type EventModder func(*Event)

EventModder defines a function to modify a giving EventDescriptor.

func EventSource

func EventSource(s string) EventModder

EventSource returns an new EventModder setting the value of the SourceID to giving value.

func EventTarget

func EventTarget(s string) EventModder

EventTarget returns an new EventModder setting the value of the SourceID to giving value.

type EventPreventer

type EventPreventer struct {
	natomic.Signal
	PreventDefault bool
}

EventPreventer wraps a giving event signal returning default prevention.

type FunctionApplier

type FunctionApplier func(*Node) error

FunctionApplier defines a function type that implements the Mounter interface.

func (FunctionApplier) Mounter

func (fn FunctionApplier) Mounter(n *Node) error

Mounter implements the Mounter interface.

type IDList

type IDList map[string]NodeHashList

IDList defines a map type containing a giving class and associated nodes that match said classes.

func (IDList) Add

func (c IDList) Add(n *Node)

Add adds giving node if it has a class key into giving IDList.

It panics if it sees a id of type already existing.

func (IDList) Remove

func (c IDList) Remove(n *Node)

Remove removes giving node from possible class list found in it.

type IndexUpdated

type IndexUpdated int

IndexUpdated defines a int type which is used to represent a index update.

func (IndexUpdated) Type

func (IndexUpdated) Type() string

Type implements the Signal interface.

type InputType

type InputType string

InputType defines a string type for different input types.

const (
	TypeButton        InputType = "button"
	TypeCheckbox      InputType = "checkbox"
	TypeColor         InputType = "color"
	TypeDate          InputType = "date"
	TypeDatetime      InputType = "datetime"
	TypeDatetimeLocal InputType = "datetime-local"
	TypeEmail         InputType = "email"
	TypeFile          InputType = "file"
	TypeHidden        InputType = "hidden"
	TypeImage         InputType = "image"
	TypeMonth         InputType = "month"
	TypeNumber        InputType = "number"
	TypePassword      InputType = "password"
	TypeRadio         InputType = "radio"
	TypeRange         InputType = "range"
	TypeMin           InputType = "min"
	TypeMax           InputType = "max"
	TypeValue         InputType = "value"
	TypeStep          InputType = "step"
	TypeReset         InputType = "reset"
	TypeSearch        InputType = "search"
	TypeSubmit        InputType = "submit"
	TypeTel           InputType = "tel"
	TypeText          InputType = "text"
	TypeTime          InputType = "time"
	TypeUrl           InputType = "url"
	TypeWeek          InputType = "week"
)

Constants of input type in html.

type IntAtomImpl

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

IntAtomImpl implements the Int interface, implementing the safe concurrent storing and reading of stored values without the use of mutex and relying on the atomic.Value construct, which is great for low-write and high-read usage.

func IntAtom

func IntAtom() *IntAtomImpl

IntAtom returns a new instance of *IntAtomImpl.

func (*IntAtomImpl) Read

func (am *IntAtomImpl) Read() int

Get returns the giving value stored within giving atom. It returns 0 if no value was ever set unless value set was 0.

func (*IntAtomImpl) Set

func (am *IntAtomImpl) Set(val int)

Set attempts to set giving value into atom, if giving value is not the same underline type as previous set calls, then an error is returned.

type IntAttr

type IntAttr struct {
	Name string
	Val  int
}

IntAttr implements the Attr interface for a string key-value pair.

func NewIntAttr

func NewIntAttr(n string, v int) IntAttr

NewIntAttr returns a new instance of a IntAttr.

func (IntAttr) Contains

func (s IntAttr) Contains(other string) bool

Contains returns true/false if provided value is contained in attr.

Since we are dealing with a number, we attempt to convert the provided value into a number and match else return false.

func (IntAttr) EncodeAttr

func (s IntAttr) EncodeAttr(encoder AttrEncoder) error

EncodeAttr implements the AttrEncodable interface.

func (IntAttr) EncodeObject

func (s IntAttr) EncodeObject(enc npkg.ObjectEncoder)

EncodeObject implements encoding using the npkg.EncodableObject interface.

func (IntAttr) Key

func (s IntAttr) Key() string

Key returns giving key or name of attribute.

func (IntAttr) Match

func (s IntAttr) Match(other Attr) bool

Match returns true/false if giving attributes matches.

func (IntAttr) Mount

func (s IntAttr) Mount(parent *Node) error

Mount implements the Mounter interface.

func (IntAttr) Text

func (s IntAttr) Text() string

Text returns giving value of attribute as text.

func (IntAttr) Value

func (s IntAttr) Value() interface{}

Value returns giving value of attribute.

type IterableAttr

type IterableAttr interface {
	Attr

	Each(func(string) bool)
}

IterableAttr defines an interface that exposes a method to iterate through all possible attribute values or value.

type Matchable

type Matchable interface {
	Match(*Node) bool
}

Matchable requires implementers to provide methods for comparing against a giving node instance.

type Mounter

type Mounter interface {
	Mount(parent *Node) error
}

Mounter defines an interface which exposes a method to mount a provided implementer into a provided Node instance. Basically the provided node is the parent to be mounted into.

func OnParentEvent

func OnParentEvent(eventName string) Mounter

OnParentEvent returns a event which will be added to the parent of the node it is added to, this will have the node's parent nodify the node on the occurrence of that event.

type Node

type Node struct {
	Attrs  AttrList
	Events *EventHashList
	// contains filtered or unexported fields
}

Node defines a concrete type implementing a combined linked-list with root, next and previous siblings using a underline growing array as the basis.

func Comment

func Comment(comment string) *Node

Comment returns a new Node of Comment Type which has no children or attributes.

func Document

func Document(renders ...Mounter) *Node

Document returns the document node type which has no parent and should be the start position of all nodes.

func Element

func Element(name string, id string, renders ...Mounter) *Node

Element returns a element node type which can be added into a parent or use as a base for other nodes.

func HTMLAbbreviation

func HTMLAbbreviation(id string, renders ...Mounter) *Node

HTMLAbbreviation provides Node representation for the element "abbr" in XHTML/HTML DOM The HTML Abbreviation element (<abbr>) represents an abbreviation or acronym; the optional title attribute can provide an expansion or description for the abbreviation. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr

func HTMLAddress

func HTMLAddress(id string, renders ...Mounter) *Node

HTMLAddress provides Node representation for the element "address" in XHTML/HTML DOM The HTML <address> element indicates that the enclosed HTML provides contact information for a person or people, or for an organization. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address

func HTMLAnchor

func HTMLAnchor(id string, renders ...Mounter) *Node

HTMLAnchor provides Node representation for the element "a" in XHTML/HTML DOM The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

func HTMLArea

func HTMLArea(id string, renders ...Mounter) *Node

HTMLArea provides Node representation for the element "area" in XHTML/HTML DOM The HTML <area> element defines a hot-spot region on an image, and optionally associates it with a hypertext link. This element is used only within a <map> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area

func HTMLArticle

func HTMLArticle(id string, renders ...Mounter) *Node

HTMLArticle provides Node representation for the element "article" in XHTML/HTML DOM The HTML <article> element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include: a forum post, a magazine or newspaper article, or a blog entry. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article

func HTMLAside

func HTMLAside(id string, renders ...Mounter) *Node

HTMLAside provides Node representation for the element "aside" in XHTML/HTML DOM The HTML <aside> element represents a portion of a document whose content is only indirectly related to the document's main content. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside

func HTMLAudio

func HTMLAudio(id string, renders ...Mounter) *Node

HTMLAudio provides Node representation for the element "audio" in XHTML/HTML DOM The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio

func HTMLBase

func HTMLBase(id string, renders ...Mounter) *Node

HTMLBase provides Node representation for the element "base" in XHTML/HTML DOM The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

func HTMLBidirectionalIsolation

func HTMLBidirectionalIsolation(id string, renders ...Mounter) *Node

HTMLBidirectionalIsolation provides Node representation for the element "bdi" in XHTML/HTML DOM The HTML Bidirectional Isolate element (<bdi>)  tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi

func HTMLBidirectionalOverride

func HTMLBidirectionalOverride(id string, renders ...Mounter) *Node

HTMLBidirectionalOverride provides Node representation for the element "bdo" in XHTML/HTML DOM The HTML Bidirectional Text Override element (<bdo>) overrides the current directionality of text, so that the text within is rendered in a different direction. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo

func HTMLBlockQuote

func HTMLBlockQuote(id string, renders ...Mounter) *Node

HTMLBlockQuote provides Node representation for the element "blockquote" in XHTML/HTML DOM The HTML <blockquote> Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the <cite> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote

func HTMLBold

func HTMLBold(id string, renders ...Mounter) *Node

HTMLBold provides Node representation for the element "b" in XHTML/HTML DOM The HTML Bring Attention To element (<b>)  is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b

func HTMLBreak

func HTMLBreak(id string, renders ...Mounter) *Node

HTMLBreak provides Node representation for the element "br" in XHTML/HTML DOM The HTML <br> element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br

func HTMLButton

func HTMLButton(id string, renders ...Mounter) *Node

HTMLButton provides Node representation for the element "button" in XHTML/HTML DOM The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

func HTMLCanvas

func HTMLCanvas(id string, renders ...Mounter) *Node

HTMLCanvas provides Node representation for the element "canvas" in XHTML/HTML DOM Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas

func HTMLCaption

func HTMLCaption(id string, renders ...Mounter) *Node

HTMLCaption provides Node representation for the element "caption" in XHTML/HTML DOM The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption

func HTMLCitation

func HTMLCitation(id string, renders ...Mounter) *Node

HTMLCitation provides Node representation for the element "cite" in XHTML/HTML DOM The HTML Citation element (<cite>) is used to describe a reference to a cited creative work, and must include the title of that work. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite

func HTMLCode

func HTMLCode(id string, renders ...Mounter) *Node

HTMLCode provides Node representation for the element "code" in XHTML/HTML DOM The HTML <code> element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code

func HTMLColumn

func HTMLColumn(id string, renders ...Mounter) *Node

HTMLColumn provides Node representation for the element "col" in XHTML/HTML DOM The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col

func HTMLColumnGroup

func HTMLColumnGroup(id string, renders ...Mounter) *Node

HTMLColumnGroup provides Node representation for the element "colgroup" in XHTML/HTML DOM The HTML <colgroup> element defines a group of columns within a table. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup

func HTMLData

func HTMLData(id string, renders ...Mounter) *Node

HTMLData provides Node representation for the element "data" in XHTML/HTML DOM The HTML <data> element links a given content with a machine-readable translation. If the content is time- or date-related, the <time> element must be used. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data

func HTMLDataList

func HTMLDataList(id string, renders ...Mounter) *Node

HTMLDataList provides Node representation for the element "datalist" in XHTML/HTML DOM The HTML <datalist> element contains a set of <option> elements that represent the values available for other controls. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

func HTMLDefinition

func HTMLDefinition(id string, renders ...Mounter) *Node

HTMLDefinition provides Node representation for the element "dfn" in XHTML/HTML DOM The HTML Definition element (<dfn>) is used to indicate the term being defined within the context of a definition phrase or sentence. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn

func HTMLDefinitionTerm

func HTMLDefinitionTerm(id string, renders ...Mounter) *Node

HTMLDefinitionTerm provides Node representation for the element "dt" in XHTML/HTML DOM The HTML <dt> element specifies a term in a description or definition list, and as such must be used inside a <dl> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt

func HTMLDeletedText

func HTMLDeletedText(id string, renders ...Mounter) *Node

HTMLDeletedText provides Node representation for the element "del" in XHTML/HTML DOM The HTML <del> element represents a range of text that has been deleted from a document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del

func HTMLDescription

func HTMLDescription(id string, renders ...Mounter) *Node

HTMLDescription provides Node representation for the element "dd" in XHTML/HTML DOM The HTML <dd> element provides the details about or the definition of the preceding term (<dt>) in a description list (<dl>). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd

func HTMLDescriptionList

func HTMLDescriptionList(id string, renders ...Mounter) *Node

HTMLDescriptionList provides Node representation for the element "dl" in XHTML/HTML DOM The HTML <dl> element represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl

func HTMLDetails

func HTMLDetails(id string, renders ...Mounter) *Node

HTMLDetails provides Node representation for the element "details" in XHTML/HTML DOM The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

func HTMLDialog

func HTMLDialog(id string, renders ...Mounter) *Node

HTMLDialog provides Node representation for the element "dialog" in XHTML/HTML DOM The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

func HTMLDiv

func HTMLDiv(id string, renders ...Mounter) *Node

HTMLDiv provides Node representation for the element "div" in XHTML/HTML DOM The HTML Content Division element (<div>) is the generic container for flow content. It has no effect on the content or layout until styled using CSS. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div

func HTMLDoc

func HTMLDoc(renders ...Mounter) *Node

HTMLDoc returns the document node type which has no parent and should be the start position of all nodes.

func HTMLEmbed

func HTMLEmbed(id string, renders ...Mounter) *Node

HTMLEmbed provides Node representation for the element "embed" in XHTML/HTML DOM The HTML <embed> element embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed

func HTMLEmphasis

func HTMLEmphasis(id string, renders ...Mounter) *Node

HTMLEmphasis provides Node representation for the element "em" in XHTML/HTML DOM The HTML <em> element marks text that has stress emphasis. The <em> element can be nested, with each level of nesting indicating a greater degree of emphasis. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em

func HTMLFieldSet

func HTMLFieldSet(id string, renders ...Mounter) *Node

HTMLFieldSet provides Node representation for the element "fieldset" in XHTML/HTML DOM The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset

func HTMLFigure

func HTMLFigure(id string, renders ...Mounter) *Node

HTMLFigure provides Node representation for the element "figure" in XHTML/HTML DOM The HTML <figure> (Figure With Optional Caption) element represents self-contained content, potentially with an optional caption, which is specified using the (<figcaption>) element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure

func HTMLFigureCaption

func HTMLFigureCaption(id string, renders ...Mounter) *Node

HTMLFigureCaption provides Node representation for the element "figcaption" in XHTML/HTML DOM The HTML <figcaption> or Figure Caption element represents a caption or legend describing the rest of the contents of its parent <figure> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption

func HTMLFooter

func HTMLFooter(id string, renders ...Mounter) *Node

HTMLFooter provides Node representation for the element "footer" in XHTML/HTML DOM The HTML <footer> element represents a footer for its nearest sectioning content or sectioning root element. A footer typically contains information about the author of the section, copyright data or links to related documents. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer

func HTMLForm

func HTMLForm(id string, renders ...Mounter) *Node

HTMLForm provides Node representation for the element "form" in XHTML/HTML DOM The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form

func HTMLHeader

func HTMLHeader(id string, renders ...Mounter) *Node

HTMLHeader provides Node representation for the element "header" in XHTML/HTML DOM The HTML <header> element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header

func HTMLHeader1

func HTMLHeader1(id string, renders ...Mounter) *Node

HTMLHeader1 provides Node representation for the element "h1" in XHTML/HTML DOM The HTML <h1>–<h6> elements represent six levels of section headings. <h1> is the highest section level and <h6> is the lowest. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func HTMLHeadingsGroup

func HTMLHeadingsGroup(id string, renders ...Mounter) *Node

HTMLHeadingsGroup provides Node representation for the element "hgroup" in XHTML/HTML DOM The HTML <hgroup> element represents a multi-level heading for a section of a document. It groups a set of <h1>–<h6> elements. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup

func HTMLHorizontalRule

func HTMLHorizontalRule(id string, renders ...Mounter) *Node

HTMLHorizontalRule provides Node representation for the element "hr" in XHTML/HTML DOM The HTML <hr> element represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr

func HTMLImage

func HTMLImage(id string, renders ...Mounter) *Node

HTMLImage provides Node representation for the element "img" in XHTML/HTML DOM The HTML <img> element embeds an image into the document. It is a replaced element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

func HTMLInlineFrame

func HTMLInlineFrame(id string, renders ...Mounter) *Node

HTMLInlineFrame provides Node representation for the element "iframe" in XHTML/HTML DOM The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe

func HTMLInput

func HTMLInput(id string, renders ...Mounter) *Node

HTMLInput provides Node representation for the element "input" in XHTML/HTML DOM The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func HTMLInsertedText

func HTMLInsertedText(id string, renders ...Mounter) *Node

HTMLInsertedText provides Node representation for the element "ins" in XHTML/HTML DOM The HTML <ins> element represents a range of text that has been added to a document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins

func HTMLItalic

func HTMLItalic(id string, renders ...Mounter) *Node

HTMLItalic provides Node representation for the element "i" in XHTML/HTML DOM The HTML <i> element represents a range of text that is set off from the normal text for some reason. Some examples include technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i

func HTMLKeyboardInput

func HTMLKeyboardInput(id string, renders ...Mounter) *Node

HTMLKeyboardInput provides Node representation for the element "kbd" in XHTML/HTML DOM The HTML Keyboard Input element (<kbd>) represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd

func HTMLLabel

func HTMLLabel(id string, renders ...Mounter) *Node

HTMLLabel provides Node representation for the element "label" in XHTML/HTML DOM The HTML <label> element represents a caption for an item in a user interface. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

func HTMLLegend

func HTMLLegend(id string, renders ...Mounter) *Node

HTMLLegend provides Node representation for the element "legend" in XHTML/HTML DOM The HTML <legend> element represents a caption for the content of its parent <fieldset>. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend

func HTMLLink(id string, renders ...Mounter) *Node

HTMLLink provides Node representation for the element "link" in XHTML/HTML DOM The HTML External Resource Link element (<link>) specifies relationships between the current document and an external resource. This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and mobile home screen/app icons) among other things. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

func HTMLListItem

func HTMLListItem(id string, renders ...Mounter) *Node

HTMLListItem provides Node representation for the element "li" in XHTML/HTML DOM The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li

func HTMLMain

func HTMLMain(id string, renders ...Mounter) *Node

HTMLMain provides Node representation for the element "main" in XHTML/HTML DOM The HTML <main> element represents the dominant content of the <body> of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main

func HTMLMap

func HTMLMap(id string, renders ...Mounter) *Node

HTMLMap provides Node representation for the element "map" in XHTML/HTML DOM The HTML <map> element is used with <area> elements to define an image map (a clickable link area). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map

func HTMLMark

func HTMLMark(id string, renders ...Mounter) *Node

HTMLMark provides Node representation for the element "mark" in XHTML/HTML DOM The HTML Mark Text element (<mark>) represents text which is marked or highlighted for reference or notation purposes, due to the marked passage's relevance or importance in the enclosing context. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark

func HTMLMenu

func HTMLMenu(id string, renders ...Mounter) *Node

HTMLMenu provides Node representation for the element "menu" in XHTML/HTML DOM The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu

func HTMLMeta

func HTMLMeta(id string, renders ...Mounter) *Node

HTMLMeta provides Node representation for the element "meta" in XHTML/HTML DOM The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta

func HTMLMeter

func HTMLMeter(id string, renders ...Mounter) *Node

HTMLMeter provides Node representation for the element "meter" in XHTML/HTML DOM The HTML <meter> element represents either a scalar value within a known range or a fractional value. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter

func HTMLNavigation

func HTMLNavigation(id string, renders ...Mounter) *Node

HTMLNavigation provides Node representation for the element "nav" in XHTML/HTML DOM The HTML <nav> element represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav

func HTMLNoScript

func HTMLNoScript(id string, renders ...Mounter) *Node

HTMLNoScript provides Node representation for the element "noscript" in XHTML/HTML DOM The HTML <noscript> element defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript

func HTMLObject

func HTMLObject(id string, renders ...Mounter) *Node

HTMLObject provides Node representation for the element "object" in XHTML/HTML DOM The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object

func HTMLOption

func HTMLOption(id string, renders ...Mounter) *Node

HTMLOption provides Node representation for the element "option" in XHTML/HTML DOM The HTML <option> element is used to define an item contained in a <select>, an <optgroup>, or a <datalist> element. As such, <option> can represent menu items in popups and other lists of items in an HTML document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option

func HTMLOptionsGroup

func HTMLOptionsGroup(id string, renders ...Mounter) *Node

HTMLOptionsGroup provides Node representation for the element "optgroup" in XHTML/HTML DOM The HTML <optgroup> element creates a grouping of options within a <select> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup

func HTMLOrderedList

func HTMLOrderedList(id string, renders ...Mounter) *Node

HTMLOrderedList provides Node representation for the element "ol" in XHTML/HTML DOM The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol

func HTMLOutput

func HTMLOutput(id string, renders ...Mounter) *Node

HTMLOutput provides Node representation for the element "output" in XHTML/HTML DOM The HTML Output element (<output>) is a container element into which a site or app can inject the results of a calculation or the outcome of a user action. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output

func HTMLParagraph

func HTMLParagraph(id string, renders ...Mounter) *Node

HTMLParagraph provides Node representation for the element "p" in XHTML/HTML DOM The HTML <p> element represents a paragraph. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p

func HTMLParameter

func HTMLParameter(id string, renders ...Mounter) *Node

HTMLParameter provides Node representation for the element "param" in XHTML/HTML DOM The HTML <param> element defines parameters for an <object> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param

func HTMLPicture

func HTMLPicture(id string, renders ...Mounter) *Node

HTMLPicture provides Node representation for the element "picture" in XHTML/HTML DOM The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

func HTMLPreformatted

func HTMLPreformatted(id string, renders ...Mounter) *Node

HTMLPreformatted provides Node representation for the element "pre" in XHTML/HTML DOM The HTML <pre> element represents preformatted text which is to be presented exactly as written in the HTML file. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre

func HTMLProgress

func HTMLProgress(id string, renders ...Mounter) *Node

HTMLProgress provides Node representation for the element "progress" in XHTML/HTML DOM The HTML <progress> element displays an indicator showing the completion progress of a task, typically displayed as a progress bar. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress

func HTMLQuote

func HTMLQuote(id string, renders ...Mounter) *Node

HTMLQuote provides Node representation for the element "q" in XHTML/HTML DOM The HTML <q> element indicates that the enclosed text is a short inline quotation. Most modern browsers implement this by surrounding the text in quotation marks. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q

func HTMLRb

func HTMLRb(id string, renders ...Mounter) *Node

HTMLRb provides Node representation for the element "rb" in XHTML/HTML DOM The HTML Ruby Base (<rb>) element is used to delimit the base text component of a  <ruby> annotation, i.e. the text that is being annotated. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rb

func HTMLRtc

func HTMLRtc(id string, renders ...Mounter) *Node

HTMLRtc provides Node representation for the element "rtc" in XHTML/HTML DOM The HTML Ruby Text Container (<rtc>) element embraces semantic annotations of characters presented in a ruby of <rb> elements used inside of <ruby> element. <rb> elements can have both pronunciation (<rt>) and semantic (<rtc>) annotations. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rtc

func HTMLRuby

func HTMLRuby(id string, renders ...Mounter) *Node

HTMLRuby provides Node representation for the element "ruby" in XHTML/HTML DOM The HTML <ruby> element represents a ruby annotation. Ruby annotations are for showing pronunciation of East Asian characters. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby

func HTMLRubyParenthesis

func HTMLRubyParenthesis(id string, renders ...Mounter) *Node

HTMLRubyParenthesis provides Node representation for the element "rp" in XHTML/HTML DOM The HTML Ruby Fallback Parenthesis (<rp>) element is used to provide fall-back parentheses for browsers that do not support display of ruby annotations using the <ruby> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp

func HTMLRubyText

func HTMLRubyText(id string, renders ...Mounter) *Node

HTMLRubyText provides Node representation for the element "rt" in XHTML/HTML DOM The HTML Ruby Text (<rt>) element specifies the ruby text component of a ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian typography. The <rt> element must always be contained within a <ruby> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt

func HTMLSample

func HTMLSample(id string, renders ...Mounter) *Node

HTMLSample provides Node representation for the element "samp" in XHTML/HTML DOM The HTML Sample Element (<samp>) is used to enclose inline text which represents sample (or quoted) output from a computer program. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp

func HTMLScript

func HTMLScript(id string, renders ...Mounter) *Node

HTMLScript provides Node representation for the element "script" in XHTML/HTML DOM The HTML <script> element is used to embed or reference executable code; this is typically used to embed or refer to JavaScript code. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

func HTMLSection

func HTMLSection(id string, renders ...Mounter) *Node

HTMLSection provides Node representation for the element "section" in XHTML/HTML DOM The HTML <section> element represents a standalone section — which doesn't have a more specific semantic element to represent it — contained within an HTML document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section

func HTMLSelect

func HTMLSelect(id string, renders ...Mounter) *Node

HTMLSelect provides Node representation for the element "select" in XHTML/HTML DOM The HTML <select> element represents a control that provides a menu of options https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

func HTMLSlot

func HTMLSlot(id string, renders ...Mounter) *Node

HTMLSlot provides Node representation for the element "slot" in XHTML/HTML DOM The HTML <slot> element—part of the Web Components technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot

func HTMLSmall

func HTMLSmall(id string, renders ...Mounter) *Node

HTMLSmall provides Node representation for the element "small" in XHTML/HTML DOM The HTML <small> element makes the text font size one size smaller (for example, from large to medium, or from small to x-small) down to the browser's minimum font size.  In HTML5, this element is repurposed to represent side-comments and small print, including copyright and legal text, independent of its styled presentation. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small

func HTMLSource

func HTMLSource(id string, renders ...Mounter) *Node

HTMLSource provides Node representation for the element "source" in XHTML/HTML DOM The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source

func HTMLSpan

func HTMLSpan(id string, renders ...Mounter) *Node

HTMLSpan provides Node representation for the element "span" in XHTML/HTML DOM The HTML <span> element is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span

func HTMLStrikethrough

func HTMLStrikethrough(id string, renders ...Mounter) *Node

HTMLStrikethrough provides Node representation for the element "s" in XHTML/HTML DOM The HTML <s> element renders text with a strikethrough, or a line through it. Use the <s> element to represent things that are no longer relevant or no longer accurate. However, <s> is not appropriate when indicating document edits; for that, use the <del> and <ins> elements, as appropriate. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s

func HTMLStrong

func HTMLStrong(id string, renders ...Mounter) *Node

HTMLStrong provides Node representation for the element "strong" in XHTML/HTML DOM The HTML Strong Importance Element (<strong>) indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong

func HTMLStyle

func HTMLStyle(id string, renders ...Mounter) *Node

HTMLStyle provides Node representation for the element "style" in XHTML/HTML DOM The HTML <style> element contains style information for a document, or part of a document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style

func HTMLSubscript

func HTMLSubscript(id string, renders ...Mounter) *Node

HTMLSubscript provides Node representation for the element "sub" in XHTML/HTML DOM The HTML Subscript element (<sub>) specifies inline text which should be displayed as subscript for solely typographical reasons. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub

func HTMLSummary

func HTMLSummary(id string, renders ...Mounter) *Node

HTMLSummary provides Node representation for the element "summary" in XHTML/HTML DOM The HTML Disclosure Summary element (<summary>) element specifies a summary, caption, or legend for a <details> element's disclosure box. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary

func HTMLSuperscript

func HTMLSuperscript(id string, renders ...Mounter) *Node

HTMLSuperscript provides Node representation for the element "sup" in XHTML/HTML DOM The HTML Superscript element (<sup>) specifies inline text which is to be displayed as superscript for solely typographical reasons. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup

func HTMLTable

func HTMLTable(id string, renders ...Mounter) *Node

HTMLTable provides Node representation for the element "table" in XHTML/HTML DOM The HTML <table> element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table

func HTMLTableBody

func HTMLTableBody(id string, renders ...Mounter) *Node

HTMLTableBody provides Node representation for the element "tbody" in XHTML/HTML DOM The HTML Table Body element (<tbody>) encapsulates a set of table row (<tr> elements), indicating that they comprise the body of the table (<table>). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody

func HTMLTableData

func HTMLTableData(id string, renders ...Mounter) *Node

HTMLTableData provides Node representation for the element "td" in XHTML/HTML DOM The HTML <td> element defines a cell of a table that contains data. It participates in the table model. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td

func HTMLTableFoot

func HTMLTableFoot(id string, renders ...Mounter) *Node

HTMLTableFoot provides Node representation for the element "tfoot" in XHTML/HTML DOM The HTML <tfoot> element defines a set of rows summarizing the columns of the table. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot

func HTMLTableHead

func HTMLTableHead(id string, renders ...Mounter) *Node

HTMLTableHead provides Node representation for the element "thead" in XHTML/HTML DOM The HTML <thead> element defines a set of rows defining the head of the columns of the table. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead

func HTMLTableHeader

func HTMLTableHeader(id string, renders ...Mounter) *Node

HTMLTableHeader provides Node representation for the element "th" in XHTML/HTML DOM The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th

func HTMLTableRow

func HTMLTableRow(id string, renders ...Mounter) *Node

HTMLTableRow provides Node representation for the element "tr" in XHTML/HTML DOM The HTML <tr> element defines a row of cells in a table. The row's cells can then be established using a mix of <td> (data cell) and <th> (header cell) elements.The HTML <tr> element specifies that the markup contained inside the <tr> block comprises one row of a table, inside which the <th> and <td> elements create header and data cells, respectively, within the row. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr

func HTMLTemplate

func HTMLTemplate(id string, renders ...Mounter) *Node

HTMLTemplate provides Node representation for the element "template" in XHTML/HTML DOM The HTML Content Template (<template>) element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

func HTMLTextArea

func HTMLTextArea(id string, renders ...Mounter) *Node

HTMLTextArea provides Node representation for the element "textarea" in XHTML/HTML DOM The HTML <textarea> element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

func HTMLTime

func HTMLTime(id string, renders ...Mounter) *Node

HTMLTime provides Node representation for the element "time" in XHTML/HTML DOM The HTML <time> element represents a specific period in time. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time

func HTMLTitle

func HTMLTitle(id string, renders ...Mounter) *Node

HTMLTitle provides Node representation for the element "title" in XHTML/HTML DOM The HTML Title element (<title>) defines the document's title that is shown in a browser's title bar or a page's tab. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title

func HTMLTrack

func HTMLTrack(id string, renders ...Mounter) *Node

HTMLTrack provides Node representation for the element "track" in XHTML/HTML DOM The HTML <track> element is used as a child of the media elements <audio> and <video>. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files) — Web Video Text Tracks or Timed Text Markup Language (TTML). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track

func HTMLUnderline

func HTMLUnderline(id string, renders ...Mounter) *Node

HTMLUnderline provides Node representation for the element "u" in XHTML/HTML DOM The HTML Unarticulated Annotation Element (<u>) represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u

func HTMLUnorderedList

func HTMLUnorderedList(id string, renders ...Mounter) *Node

HTMLUnorderedList provides Node representation for the element "ul" in XHTML/HTML DOM The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul

func HTMLVariable

func HTMLVariable(id string, renders ...Mounter) *Node

HTMLVariable provides Node representation for the element "var" in XHTML/HTML DOM The HTML Variable element (<var>) represents the name of a variable in a mathematical expression or a programming context. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var

func HTMLVideo

func HTMLVideo(id string, renders ...Mounter) *Node

HTMLVideo provides Node representation for the element "video" in XHTML/HTML DOM The HTML Video element (<video>) embeds a media player which supports video playback into the document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func HTMLWordBreakOpportunity

func HTMLWordBreakOpportunity(id string, renders ...Mounter) *Node

HTMLWordBreakOpportunity provides Node representation for the element "wbr" in XHTML/HTML DOM The HTML <wbr> element represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr

func NewNode

func NewNode(nt NodeType, tagName string, idAttr string) *Node

NewNode returns a new Node instance with the giving Node as underline parent pointer. It uses the provided `tagName` as name of node (i.e div or section) and the provided `idAttr` as id of giving node (i.e <div id={idAttr}>). This must be unique across a node child list.

To important things to note in creating a node:

1. The tagName must be provided always as it tells the rendering system what the node represent.

2. The idAttr must both be provided an unique across all nodes, as it is the unique identifier to be used for referencing, replacement and swaps by the rendering system.

func ParseAndFirst

func ParseAndFirst(markup string) *Node

ParseAndFirst expects the markup provided to only have one root element which will be returned.

func ParseTemplate

func ParseTemplate(markup string, binding interface{}) *Node

ParseTemplate parses the provided string has a template which is processed with the provided binding.

func ParseTree

func ParseTree(markup string) *Node

ParseTree takes a html string and returns a *Node representing giving markup.

It returns a Document node always, hence to gain access to the nodes described by markup, use Node.EachChild.

func SVGAnchor

func SVGAnchor(id string, renders ...Mounter) *Node

SVGAnchor provides Node representation for the element "a" in XML/SVG DOM The <a> SVG element creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a

func SVGAnimate

func SVGAnimate(id string, renders ...Mounter) *Node

SVGAnimate provides Node representation for the element "animate" in XML/SVG DOM This element implements the SVGAnimateElement interface. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate

func SVGAnimateMotion

func SVGAnimateMotion(id string, renders ...Mounter) *Node

SVGAnimateMotion provides Node representation for the element "animateMotion" in XML/SVG DOM The <animateMotion> element causes a referenced element to move along a motion path. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateMotion

func SVGAnimateTransform

func SVGAnimateTransform(id string, renders ...Mounter) *Node

SVGAnimateTransform provides Node representation for the element "animateTransform" in XML/SVG DOM The animateTransform element animates a transformation attribute on a target element, thereby allowing animations to control translation, scaling, rotation and/or skewing. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateTransform

func SVGCircle

func SVGCircle(id string, renders ...Mounter) *Node

SVGCircle provides Node representation for the element "circle" in XML/SVG DOM The <circle> SVG element is an SVG basic shape, used to create circles based on a center point and a radius. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle

func SVGClipPath

func SVGClipPath(id string, renders ...Mounter) *Node

SVGClipPath provides Node representation for the element "clipPath" in XML/SVG DOM The <clipPath> SVG element defines a clipping path. A clipping path is used/referenced using the clip-path property. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath

func SVGColorProfile

func SVGColorProfile(id string, renders ...Mounter) *Node

SVGColorProfile provides Node representation for the element "color-profile" in XML/SVG DOM The <color-profile> element allows describing the color profile used for the image. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/color-profile

func SVGDefs

func SVGDefs(id string, renders ...Mounter) *Node

SVGDefs provides Node representation for the element "defs" in XML/SVG DOM The <defs> element is used to store graphical objects that will be used at a later time. Objects created inside a <defs> element are not rendered directly. To display them you have to reference them (with a <use> element for example). https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs

func SVGDesc

func SVGDesc(id string, renders ...Mounter) *Node

SVGDesc provides Node representation for the element "desc" in XML/SVG DOM Each container element or graphics element in an SVG drawing can supply a description string using the <desc> element where the description is text-only. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc

func SVGDiscard

func SVGDiscard(id string, renders ...Mounter) *Node

SVGDiscard provides Node representation for the element "discard" in XML/SVG DOM The <discard> SVG element allows authors to specify the time at which particular elements are to be discarded, thereby reducing the resources required by an SVG user agent. This is particularly useful to help SVG viewers conserve memory while displaying long-running documents. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/discard

func SVGEllipse

func SVGEllipse(id string, renders ...Mounter) *Node

SVGEllipse provides Node representation for the element "ellipse" in XML/SVG DOM The <ellipse> element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse

func SVGFeBlend

func SVGFeBlend(id string, renders ...Mounter) *Node

SVGFeBlend provides Node representation for the element "feBlend" in XML/SVG DOM The <feBlend> SVG filter primitive composes two objects together ruled by a certain blending mode. This is similar to what is known from image editing software when blending two layers. The mode is defined by the mode attribute. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feBlend

func SVGFeColorMatrix

func SVGFeColorMatrix(id string, renders ...Mounter) *Node

SVGFeColorMatrix provides Node representation for the element "feColorMatrix" in XML/SVG DOM The <feColorMatrix> SVG filter element changes colors based on a transformation matrix. Every pixel's color value (represented by an [R,G,B,A] vector) is matrix multiplied to create a new color: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix

func SVGFeComponentTransfer

func SVGFeComponentTransfer(id string, renders ...Mounter) *Node

SVGFeComponentTransfer provides Node representation for the element "feComponentTransfer" in XML/SVG DOM Th <feComponentTransfer> SVG filter primitive performs color-component-wise remapping of data for each pixel. It allows operations like brightness adjustment, contrast adjustment, color balance or thresholding. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComponentTransfer

func SVGFeComposite

func SVGFeComposite(id string, renders ...Mounter) *Node

SVGFeComposite provides Node representation for the element "feComposite" in XML/SVG DOM The <feComposite> SVG filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor, and lighter. Additionally, a component-wise arithmetic operation (with the result clamped between [0..1]) can be applied. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComposite

func SVGFeConvolveMatrix

func SVGFeConvolveMatrix(id string, renders ...Mounter) *Node

SVGFeConvolveMatrix provides Node representation for the element "feConvolveMatrix" in XML/SVG DOM The <feConvolveMatrix> SVG filter primitive applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce a resulting image. A wide variety of imaging operations can be achieved through convolutions, including blurring, edge detection, sharpening, embossing and beveling. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix

func SVGFeDiffuseLighting

func SVGFeDiffuseLighting(id string, renders ...Mounter) *Node

SVGFeDiffuseLighting provides Node representation for the element "feDiffuseLighting" in XML/SVG DOM The <feDiffuseLighting> SVG filter primitive lights an image using the alpha channel as a bump map. The resulting image, which is an RGBA opaque image, depends on the light color, light position and surface geometry of the input bump map. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDiffuseLighting

func SVGFeDisplacementMap

func SVGFeDisplacementMap(id string, renders ...Mounter) *Node

SVGFeDisplacementMap provides Node representation for the element "feDisplacementMap" in XML/SVG DOM The <feDisplacementMap> SVG filter primitive uses the pixel values from the image from in2 to spatially displace the image from in. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDisplacementMap

func SVGFeDistantLight

func SVGFeDistantLight(id string, renders ...Mounter) *Node

SVGFeDistantLight provides Node representation for the element "feDistantLight" in XML/SVG DOM The <feDistantLight> filter primitive defines a distant light source that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDistantLight

func SVGFeDropShadow

func SVGFeDropShadow(id string, renders ...Mounter) *Node

SVGFeDropShadow provides Node representation for the element "feDropShadow" in XML/SVG DOM The <feDropShadow> filter primitive creates a drop shadow of the input image. It is a shorthand filter, and is defined in terms of combinations of other filter primitives. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDropShadow

func SVGFeFlood

func SVGFeFlood(id string, renders ...Mounter) *Node

SVGFeFlood provides Node representation for the element "feFlood" in XML/SVG DOM The <feFlood> SVG filter primitive fills the filter subregion with the color and opacity defined by flood-color and flood-opacity. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFlood

func SVGFeFuncA

func SVGFeFuncA(id string, renders ...Mounter) *Node

SVGFeFuncA provides Node representation for the element "feFuncA" in XML/SVG DOM The <feFuncA> SVG filter primitive defines the transfer function for the alpha component of the input graphic of its parent <feComponentTransfer> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncA

func SVGFeFuncB

func SVGFeFuncB(id string, renders ...Mounter) *Node

SVGFeFuncB provides Node representation for the element "feFuncB" in XML/SVG DOM The <feFuncB> SVG filter primitive defines the transfer function for the blue component of the input graphic of its parent <feComponentTransfer> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncB

func SVGFeFuncG

func SVGFeFuncG(id string, renders ...Mounter) *Node

SVGFeFuncG provides Node representation for the element "feFuncG" in XML/SVG DOM The <feFuncG> SVG filter primitive defines the transfer function for the green component of the input graphic of its parent <feComponentTransfer> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncG

func SVGFeFuncR

func SVGFeFuncR(id string, renders ...Mounter) *Node

SVGFeFuncR provides Node representation for the element "feFuncR" in XML/SVG DOM The <feFuncR> SVG filter primitive defines the transfer function for the red component of the input graphic of its parent <feComponentTransfer> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncR

func SVGFeGaussianBlur

func SVGFeGaussianBlur(id string, renders ...Mounter) *Node

SVGFeGaussianBlur provides Node representation for the element "feGaussianBlur" in XML/SVG DOM The <feGaussianBlur> SVG filter primitive blurs the input image by the amount specified in stdDeviation, which defines the bell-curve. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur

func SVGFeImage

func SVGFeImage(id string, renders ...Mounter) *Node

SVGFeImage provides Node representation for the element "feImage" in XML/SVG DOM The <feImage> SVG filter primitive fetches image data from an external source and provides the pixel data as output (meaning if the external source is an SVG image, it is rasterized.) https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feImage

func SVGFeMerge

func SVGFeMerge(id string, renders ...Mounter) *Node

SVGFeMerge provides Node representation for the element "feMerge" in XML/SVG DOM The <feMerge> SVG element allows filter effects to be applied concurrently instead of sequentially. This is achieved by other filters storing their output via the result attribute and then accessing it in a <feMergeNode> child. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMerge

func SVGFeMergeNode

func SVGFeMergeNode(id string, renders ...Mounter) *Node

SVGFeMergeNode provides Node representation for the element "feMergeNode" in XML/SVG DOM The feMergeNode takes the result of another filter to be processed by its parent <feMerge>. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMergeNode

func SVGFeMorphology

func SVGFeMorphology(id string, renders ...Mounter) *Node

SVGFeMorphology provides Node representation for the element "feMorphology" in XML/SVG DOM The <feMorphology> SVG filter primitive is used to erode or dilate the input image. It's usefulness lies especially in fattening or thinning effects. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology

func SVGFeOffset

func SVGFeOffset(id string, renders ...Mounter) *Node

SVGFeOffset provides Node representation for the element "feOffset" in XML/SVG DOM The <feOffset> SVG filter primitive allows to offset the input image. The input image as a whole is offset by the values specified in the dx and dy attributes. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feOffset

func SVGFePointLight

func SVGFePointLight(id string, renders ...Mounter) *Node

SVGFePointLight provides Node representation for the element "fePointLight" in XML/SVG DOM The <fePointLight> filter primitive defines a light source which allows to create a point light effect. It that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/fePointLight

func SVGFeSpecularLighting

func SVGFeSpecularLighting(id string, renders ...Mounter) *Node

SVGFeSpecularLighting provides Node representation for the element "feSpecularLighting" in XML/SVG DOM The <feSpecularLighting> SVG filter primitive lights a source graphic using the alpha channel as a bump map. The resulting image is an RGBA image based on the light color. The lighting calculation follows the standard specular component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. The result of the lighting calculation is added. The filter primitive assumes that the viewer is at infinity in the z direction. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpecularLighting

func SVGFeSpotLight

func SVGFeSpotLight(id string, renders ...Mounter) *Node

SVGFeSpotLight provides Node representation for the element "feSpotLight" in XML/SVG DOM The <feSpotLight> SVG filter primitive defines a light source which allows to create a spotlight effect. It that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpotLight

func SVGFeTile

func SVGFeTile(id string, renders ...Mounter) *Node

SVGFeTile provides Node representation for the element "feTile" in XML/SVG DOM The <feTile> SVG filter primitive allows to fill a target rectangle with a repeated, tiled pattern of an input image. The effect is similar to the one of a <pattern>. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTile

func SVGFeTurbulence

func SVGFeTurbulence(id string, renders ...Mounter) *Node

SVGFeTurbulence provides Node representation for the element "feTurbulence" in XML/SVG DOM The <feTurbulence> SVG filter primitive creates an image using the Perlin turbulence function. It allows the synthesis of artificial textures like clouds or marble. The resulting image will fill the entire filter primitive subregion. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTurbulence

func SVGFilter

func SVGFilter(id string, renders ...Mounter) *Node

SVGFilter provides Node representation for the element "filter" in XML/SVG DOM The <filter> SVG element serves as container for atomic filter operations. It is never rendered directly. A filter is referenced by using the filter attribute on the target SVG element or via the filter CSS property. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter

func SVGForeignObject

func SVGForeignObject(id string, renders ...Mounter) *Node

SVGForeignObject provides Node representation for the element "foreignObject" in XML/SVG DOM The <foreignObject> SVG element allows for inclusion of a different XML namespace. In the context of a browser it is most likely XHTML/HTML. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject

func SVGGroup

func SVGGroup(id string, renders ...Mounter) *Node

SVGGroup provides Node representation for the element "g" in XML/SVG DOM The <g> SVG element is a container used to group other SVG elements. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g

func SVGHatch

func SVGHatch(id string, renders ...Mounter) *Node

SVGHatch provides Node representation for the element "hatch" in XML/SVG DOM The <hatch> SVG element is used to fill or stroke an object using one or more pre-defined paths that are repeated at fixed intervals in a specified direction to cover the areas to be painted. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatch

func SVGHatchpath

func SVGHatchpath(id string, renders ...Mounter) *Node

SVGHatchpath provides Node representation for the element "hatchpath" in XML/SVG DOM The <hatchpath> SVG element defines a hatch path used by the <hatch> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatchpath

func SVGImage

func SVGImage(id string, renders ...Mounter) *Node

SVGImage provides Node representation for the element "image" in XML/SVG DOM The <image> SVG element includes images inside SVG documents. It can display raster image files or other SVG files. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image

func SVGLine

func SVGLine(id string, renders ...Mounter) *Node

SVGLine provides Node representation for the element "line" in XML/SVG DOM The <line> element is an SVG basic shape used to create a line connecting two points. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line

func SVGLinearGradient

func SVGLinearGradient(id string, renders ...Mounter) *Node

SVGLinearGradient provides Node representation for the element "linearGradient" in XML/SVG DOM The <linearGradient> element lets authors define linear gradients that can be applied to fill or stroke of graphical elements. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient

func SVGMarker

func SVGMarker(id string, renders ...Mounter) *Node

SVGMarker provides Node representation for the element "marker" in XML/SVG DOM The <marker> element defines the graphic that is to be used for drawing arrowheads or polymarkers on a given <path>, <line>, <polyline> or <polygon> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker

func SVGMask

func SVGMask(id string, renders ...Mounter) *Node

SVGMask provides Node representation for the element "mask" in XML/SVG DOM The <mask> element defines an alpha mask for compositing the current object into the background. A mask is used/referenced using the mask property. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask

func SVGMesh

func SVGMesh(id string, renders ...Mounter) *Node

SVGMesh provides Node representation for the element "mesh" in XML/SVG DOM The documentation about this has not yet been written; please consider contributing! https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mesh

func SVGMeshgradient

func SVGMeshgradient(id string, renders ...Mounter) *Node

SVGMeshgradient provides Node representation for the element "meshgradient" in XML/SVG DOM The documentation about this has not yet been written; please consider contributing! https://developer.mozilla.org/en-US/docs/Web/SVG/Element/meshgradient

func SVGMeshpatch

func SVGMeshpatch(id string, renders ...Mounter) *Node

SVGMeshpatch provides Node representation for the element "meshpatch" in XML/SVG DOM The documentation about this has not yet been written; please consider contributing! https://developer.mozilla.org/en-US/docs/Web/SVG/Element/meshpatch

func SVGMeshrow

func SVGMeshrow(id string, renders ...Mounter) *Node

SVGMeshrow provides Node representation for the element "meshrow" in XML/SVG DOM The documentation about this has not yet been written; please consider contributing! https://developer.mozilla.org/en-US/docs/Web/SVG/Element/meshrow

func SVGMetadata

func SVGMetadata(id string, renders ...Mounter) *Node

SVGMetadata provides Node representation for the element "metadata" in XML/SVG DOM The <metadata> SVG element allows to add metadata to SVG content. Metadata is structured information about data. The contents of <metadata> elements should be elements from other XML namespaces such as RDF, FOAF, etc. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/metadata

func SVGMpath

func SVGMpath(id string, renders ...Mounter) *Node

SVGMpath provides Node representation for the element "mpath" in XML/SVG DOM The <mpath> sub-element for the <animateMotion> element provides the ability to reference an external <path> element as the definition of a motion path. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mpath

func SVGPath

func SVGPath(id string, renders ...Mounter) *Node

SVGPath provides Node representation for the element "path" in XML/SVG DOM The <path> SVG element is the generic element to define a shape. All the basic shapes can be created with a path element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path

func SVGPattern

func SVGPattern(id string, renders ...Mounter) *Node

SVGPattern provides Node representation for the element "pattern" in XML/SVG DOM The <pattern> element defines a graphics object which can be redrawn at repeated x and y-coordinate intervals ("tiled") to cover an area. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/pattern

func SVGPolygon

func SVGPolygon(id string, renders ...Mounter) *Node

SVGPolygon provides Node representation for the element "polygon" in XML/SVG DOM The <polygon> element defines a closed shape consisting of a set of connected straight line segments. The last point is connected to the first point. For open shapes see the <polyline> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon

func SVGPolyline

func SVGPolyline(id string, renders ...Mounter) *Node

SVGPolyline provides Node representation for the element "polyline" in XML/SVG DOM The <polyline> SVG element is an SVG basic shape that creates straight lines connecting several points. Typically a polyline is used to create open shapes as the last point doesn't have to be connected to the first point. For closed shapes see the <polygon> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polyline

func SVGRadialGradient

func SVGRadialGradient(id string, renders ...Mounter) *Node

SVGRadialGradient provides Node representation for the element "radialGradient" in XML/SVG DOM The <radialGradient> SVG element lets authors define radial gradients to fill or stroke graphical elements. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/radialGradient

func SVGRect

func SVGRect(id string, renders ...Mounter) *Node

SVGRect provides Node representation for the element "rect" in XML/SVG DOM The <rect> element is a basic SVG shape that creates rectangles, defined by their corner's position, their width, and their height. The rectangles may have their corners rounded. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect

func SVGScript

func SVGScript(id string, renders ...Mounter) *Node

SVGScript provides Node representation for the element "script" in XML/SVG DOM A SVG script element is equivalent to the script element in HTML and thus is the place for scripts (e.g., ECMAScript). https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script

func SVGSet

func SVGSet(id string, renders ...Mounter) *Node

SVGSet provides Node representation for the element "set" in XML/SVG DOM The <set> element provides a simple means of just setting the value of an attribute for a specified duration. It supports all attribute types, including those that cannot reasonably be interpolated, such as string and boolean values. The <set> element is non-additive. The additive and accumulate attributes are not allowed, and will be ignored if specified. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/set

func SVGSolidcolor

func SVGSolidcolor(id string, renders ...Mounter) *Node

SVGSolidcolor provides Node representation for the element "solidcolor" in XML/SVG DOM The <solidcolor> SVG element lets authors define a single color for use in multiple places in an SVG document. It is also useful as away of animating a palette colors. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/solidcolor

func SVGStop

func SVGStop(id string, renders ...Mounter) *Node

SVGStop provides Node representation for the element "stop" in XML/SVG DOM The <stop> SVG element defines the ramp of colors to use on a gradient, which is a child element to either the <linearGradient> or the <radialGradient> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop

func SVGStyle

func SVGStyle(id string, renders ...Mounter) *Node

SVGStyle provides Node representation for the element "style" in XML/SVG DOM The <style> SVG element allows style sheets to be embedded directly within SVG content. SVG's style element has the same attributes as the corresponding element in HTML (see HTML's <style> element). https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style

func SVGSwitch

func SVGSwitch(id string, renders ...Mounter) *Node

SVGSwitch provides Node representation for the element "switch" in XML/SVG DOM The <switch> SVG element evaluates the requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then processes and renders the first child for which these attributes evaluate to true. All others will be bypassed and therefore not rendered. If the child element is a container element such as a <g>, then the entire subtree is either processed/rendered or bypassed/not rendered. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/switch

func SVGSymbol

func SVGSymbol(id string, renders ...Mounter) *Node

SVGSymbol provides Node representation for the element "symbol" in XML/SVG DOM The <symbol> element is used to define graphical template objects which can be instantiated by a <use> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol

func SVGText

func SVGText(id string, renders ...Mounter) *Node

SVGText provides Node representation for the element "text" in XML/SVG DOM The SVG <text> element defines a graphics element consisting of text. It's possible to apply a gradient, pattern, clipping path, mask, or filter to <text>, just like any other SVG graphics element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

func SVGTextPath

func SVGTextPath(id string, renders ...Mounter) *Node

SVGTextPath provides Node representation for the element "textPath" in XML/SVG DOM In addition to text drawn in a straight line, SVG also includes the ability to place text along the shape of a <path> element. To specify that a block of text is to be rendered along the shape of a <path>, include the given text within a <textPath> element which includes an href attribute with a reference to a <path> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath

func SVGTitle

func SVGTitle(id string, renders ...Mounter) *Node

SVGTitle provides Node representation for the element "title" in XML/SVG DOM Each container element or graphics element in an SVG drawing can supply a <title> element containing a description string where the description is text-only. When the current SVG document fragment is rendered as SVG on visual media, <title> element is not rendered as part of the graphics. However, some user agents may, for example, display the <title> element as a tooltip. Alternate presentations are possible, both visual and aural, which display the <title> element but do not display path elements or other graphics elements. The <title> element generally improves accessibility of SVG documents. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title

func SVGTspan

func SVGTspan(id string, renders ...Mounter) *Node

SVGTspan provides Node representation for the element "tspan" in XML/SVG DOM Within a <text> element, text and font properties and the current text position can be adjusted with absolute or relative coordinate values by including a <tspan> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tspan

func SVGUnknown

func SVGUnknown(id string, renders ...Mounter) *Node

SVGUnknown provides Node representation for the element "unknown" in XML/SVG DOM The documentation about this has not yet been written; please consider contributing! https://developer.mozilla.org/en-US/docs/Web/SVG/Element/unknown

func SVGUse

func SVGUse(id string, renders ...Mounter) *Node

SVGUse provides Node representation for the element "use" in XML/SVG DOM The <use> element takes nodes from within the SVG document, and duplicates them somewhere else. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use

func SVGView

func SVGView(id string, renders ...Mounter) *Node

SVGView provides Node representation for the element "view" in XML/SVG DOM A view is a defined way to view the image, like a zoom level or a detail view. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/view

func Svg

func Svg(id string, renders ...Mounter) *Node

Svg provides Node representation for the element "svg" in XML/SVG DOM The svg element is a container that defines a new coordinate system and viewport. It is used as the outermost element of any SVG document but it can also be used to embed a SVG fragment inside any SVG or HTML document. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg

func Text

func Text(text string) *Node

Text returns a new Node of Text Type which has no children or attributes.

func TextType

func TextType(textType NodeType, name string, prefix string, content Stringer) *Node

TextType returns a element node type which can be added into a parent or use as a base for other nodes.

func (*Node) AppendChild

func (n *Node) AppendChild(kid *Node) error

AppendChild adds new child into node tree creating a relationship of child and parent.

Comment and Text nodes can have children but they must be of the same type as their parent.

func (*Node) Balance

func (n *Node) Balance()

Balance runs optimization operations to the list of child nodes for this node. Node uses a sliding list underneath which trades positional guarantees (i.e consistently having a node at a giving index within the used list) for efficient memory management and random access speed during write operations like remove which can leave blank spots within underline list leaving your memory fragmented.

This allows us the benefit of aggregating all write operations like remove an into a single set of calls, which can then be balance at the end using this function with little cost.

If a removal is never done, or if only swaps are done, then Balance does nothing as those still maintain random access guarantees.

func (*Node) ChildCount

func (n *Node) ChildCount() int

ChildCount returns the current total count of kids.

func (*Node) Clone

func (n *Node) Clone(deepClone bool) *Node

Clone returns a clone of a giving node depending on the deepClone flag where if false then only the node and it's properties are cloned without the children, else all children are also cloned.

func (*Node) EachChild

func (n *Node) EachChild(fn func(*Node, int) bool)

func (*Node) EncodeList

func (n *Node) EncodeList(encoder npkg.ListEncoder)

EncodeList encodes list of all attributes.

func (*Node) EncodeObject

func (n *Node) EncodeObject(encoder npkg.ObjectEncoder)

EncodeObject implements the npkg.EncodableObject interface.

func (*Node) EncodeShallowObject

func (n *Node) EncodeShallowObject(encoder npkg.ObjectEncoder) error

EncodeShallowObject implements the npkg.EncodableObject interface.

func (*Node) FirstChild

func (n *Node) FirstChild() (*Node, error)

FirstChild returns first child of giving node if any, else returns an error.

func (*Node) Get

func (n *Node) Get(index int) (*Node, error)

Get returns a giving Node at giving index, if no removals have being done before this call, then insertion order of children nodes are maintained, else before using this method ensure to call Node.Balance() to restore insertion order.

func (*Node) ID

func (n *Node) ID() string

ID returns user-provided id of giving node.

func (*Node) LastChild

func (n *Node) LastChild() (*Node, error)

LastChild returns last child of giving node if any, else returns an error.

func (*Node) Match

func (n *Node) Match(other *Node) bool

Match returns true/false if provided node matches this node exactly in type, name and attributes.

func (*Node) Mount

func (n *Node) Mount(parent *Node) error

Mount implements the Mounter interface where it mounts the provided node as a child node of it self.

func (*Node) Name

func (n *Node) Name() string

Name returns the name of giving node (i.e the node name).

func (*Node) NextSibling

func (n *Node) NextSibling() (*Node, error)

NextSibling returns a node that is next to this giving node in it's parent's list.

func (*Node) NodeAttr

func (n *Node) NodeAttr() NodeAttr

NodeAttr returns a Attr for giving node.

func (*Node) Parent

func (n *Node) Parent() *Node

Parent returns the underline parent of giving Node.

func (*Node) PreviousSibling

func (n *Node) PreviousSibling() (*Node, error)

PreviousSibling returns a node that is previous to this giving node in it's parent's list.

func (*Node) Reconcile

func (n *Node) Reconcile(old *Node, notifier ReconcileNotifier) bool

Reconcile attempts to reconcile old Node set with this node set returning an error if such occurs, else updates this node with information regarding changes such as removals of node children.

Reconcile will return true if this node should be swapped with old node in it's tree, as both the root it self has changed.

Reconciliation is done breath first, where the node is checked first

against it's counter part and if there is matching state then all it's child nodes are checked and will be accordingly set for swapping or updating if not matching.

func (*Node) RefID

func (n *Node) RefID() string

RefID returns the reference id of giving node.

func (Node) RefTree

func (n Node) RefTree() string

RefTree returns the tree path for giving node by collecting the parents ID till this node.

func (*Node) Remove

func (n *Node) Remove() error

Remove removes this giving node from it's parent node list.

func (*Node) RenderChangesJSON

func (n *Node) RenderChangesJSON(old *Node, content *strings.Builder) error

RenderChangesJSON runs the reconciliation process for this node against a provided old version. It produces a JSON list containing all changed nodes from removed nodes and nodes which have seen an update from a previous version in the old node.

It will will not produce nodes in proper order, but in partial order where a changed node is rendered top-down till it's children but never it's parent. The node should contain adequate information (mainly through it's ref retrieved by Node.RefTree()) of it's ancestry and location.

func (*Node) RenderHTML

func (n *Node) RenderHTML(w io.Writer, indented bool) error

RenderHTML renders giving Nodes using a html markup syntax format.

Underneath it calls Node.RenderHTMLTo (See comments for method).

func (*Node) RenderHTMLTo

func (n *Node) RenderHTMLTo(content *strings.Builder, indented bool) error

RenderHTMLTo renders giving Nodes using a html markup syntax format to provided strings.Builder. This allows memory efficient rendering.

It implements an efficient means of using HTML as the defactor means of visualizing the produced output of a giving node and it's children.

It runs depth-first collected all internal representation of a node, it's attributes and children.

func (*Node) RenderJSON

func (n *Node) RenderJSON(build *strings.Builder) error

RenderJSON renders as json giving node and all associated children.

func (*Node) RenderShallowHTML

func (n *Node) RenderShallowHTML(build *strings.Builder, indented bool) error

RenderShallowHTML renders as HTML giving node tag alone without rendering children.

func (*Node) RenderShallowJSON

func (n *Node) RenderShallowJSON(build *strings.Builder) error

RenderShallowJSON renders as JSON giving node tag alone without rendering children.

func (*Node) ResetNode

func (n *Node) ResetNode()

ResetNode resets giving node alone without affecting it's underline sub-tree.

It keeps it's children as it was for re-use. See ResetTree for a more expansive reset call.

func (*Node) ResetTree

func (n *Node) ResetTree(doNode func(*Node))

ResetTree resets both the node and it's children nodes in a depth-first manner.

It accepts a function which will be called against this node and all children nodes to allow user provide a garbage action like adding nodes back into an object pool.

The list of nodes is set back to empty once done, allowing this node to be re-used.

func (*Node) Respond

func (n *Node) Respond(s natomic.Signal)

Respond implements the natomic.SignalResponder interface.

func (*Node) RespondEvent

func (n *Node) RespondEvent(s natomic.Signal, desc EventDescriptor)

RespondEvent implements the EventDescriptorResponder interface.

RespondEvent will propagate event up the tree to it's parent if the provided descriptor does not stop propagation.

func (*Node) SwapAll

func (n *Node) SwapAll(m *Node) error

SwapAll swaps provided node with myself within parent list, the swapped node replaces me and my children nodes list.

func (*Node) SwapNode

func (n *Node) SwapNode(m *Node) error

SwapNode swaps provided node with myself within parent's list. The swapped node takes over my children node list.

func (*Node) Text

func (n *Node) Text() string

Text returns the underline text content of a node if it's a TextNode.

func (*Node) Type

func (n *Node) Type() NodeType

Type returns the underline type of giving node.

type NodeAttr

type NodeAttr struct {
	Name string
	ID   string
	Ref  string
	Type NodeType
}

NodeAttr contains basic information about a giving node.

type NodeAttrList

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

NodeAttrList implements the a set list for Nodes using their Node.RefID() value as unique keys.

func (*NodeAttrList) Add

func (na *NodeAttrList) Add(n *Node)

Add adds giving node into giving list if it has giving attribute value.

func (*NodeAttrList) Count

func (na *NodeAttrList) Count() int

Count returns the total content count of map

func (*NodeAttrList) Remove

func (na *NodeAttrList) Remove(n *Node)

Remove removes giving node into giving list if it has giving attribute value.

func (*NodeAttrList) Reset

func (na *NodeAttrList) Reset()

Reset resets the internal hashmap used for storing nodes. There by removing all registered nodes.

type NodeEncoder

type NodeEncoder interface {
	AttrEncodable

	EncodeChild(Nodes) error
	EncodeName(string) error
}

NodeEncoder exposes method which provide means of encoding a giving node which is a combination of a name, attributes and child nodes.

type NodeHashList

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

NodeHashList implements the a set list for Nodes using their Node.RefID() value as unique keys.

func (*NodeHashList) Add

func (na *NodeHashList) Add(n *Node)

Add adds giving node into giving list if it has giving attribute value.

func (*NodeHashList) Count

func (na *NodeHashList) Count() int

Count returns the total content count of map

func (*NodeHashList) Remove

func (na *NodeHashList) Remove(n *Node)

Remove removes giving node into giving list if it has giving attribute value.

func (*NodeHashList) Reset

func (na *NodeHashList) Reset()

Reset resets the internal hashmap used for storing nodes. There by removing all registered nodes.

type NodeList

type NodeList []*Node

NodeList defines a type for slice of nodes, implementing the Mounter interface.

func (NodeList) Mount

func (n NodeList) Mount(parent *Node) error

Mount applies giving nodes in list to provided parent node.

type NodeType

type NodeType int

NodeType defines a giving type of node.

const (
	DocumentNode         NodeType = 9
	DocumentFragmentNode NodeType = 11
	ElementNode          NodeType = 1
	TextNode             NodeType = 3
	CommentNode          NodeType = 8
)

const of node types.

func (NodeType) String

func (n NodeType) String() string

String returns a text representation of a NodeType.

type Nodes

type Nodes interface {
	EncodeNode(NodeEncoder)
}

Nodes defines an interface which expose a method for encoding a giving implementer sing provider NodeEncoder.

type Reconcilable

type Reconcilable interface {
	Reconcile(*Node) error
}

Reconcilable requires implementers expose methods to reconcile themselves and their internal state with a previous or different node.

type ReconcileNotifier

type ReconcileNotifier func(changed *Node)

ReconcileNotifier defines a function type which can be passed into the Node.Reconcile method which will be notified for changes be they a new node, removal of old node or swapping of changed nodes.

The function is expected to return a boolean value which indicates if due to some internal error wants to force an immediate stop reconciliation operations to allow return.

type Selector

type Selector func(*Node) bool

A Selector is a function which tells whether a node matches or not.

func Query

func Query(sel string) (Selector, error)

Query parses a selector and returns, if successful, a Selector object that can be used to match against Node objects.

func (Selector) Filter

func (s Selector) Filter(nodes []*Node) (result []*Node)

Filter returns the nodes in nodes that match the selector.

func (Selector) Match

func (s Selector) Match(n *Node) bool

Match returns true if the node matches the selector.

func (Selector) MatchAll

func (s Selector) MatchAll(n *Node) []*Node

MatchAll returns a slice of the nodes that match the selector, from n and its children.

func (Selector) MatchFirst

func (s Selector) MatchFirst(n *Node) *Node

MatchFirst returns the first node that matches s, from n and its children.

type StringAttr

type StringAttr struct {
	Name string
	Val  string
}

StringAttr implements the Attr interface for a string key-value pair.

func Alt

func Alt(text string) StringAttr

Alt sets the atl attribute value.

func Autofocus

func Autofocus(autofocus bool) StringAttr

Autofocus sets the autofocus attribute.

func Checked

func Checked(checked bool) StringAttr

Checked sets the attribute on.

func Disabled

func Disabled(disabled bool) StringAttr

Disabled sets the attribute on.

func For

func For(id string) StringAttr

For sets the for attribute value.

func Href

func Href(url string) StringAttr

Href sets the href attribute value.

func ID

func ID(id string) StringAttr

ID sets the id attribute value.

func Name

func Name(name string) StringAttr

Name sets the name attribute value.

func NamespaceAttr

func NamespaceAttr(v string) StringAttr

NamespaceAttr returns a new StringAttr with Name set to "namespace".

func NewStringAttr

func NewStringAttr(n string, v string) StringAttr

NewStringAttr returns a new instance of a StringAttr

func Placeholder

func Placeholder(text string) StringAttr

Placeholder sets the placeholder attribute value.

func Src

func Src(url string) StringAttr

Src sets the src attribute value.

func Type

func Type(t InputType) StringAttr

Type sets the type attribute value.

func Value

func Value(v string) StringAttr

Value sets the value attribute value.

func (StringAttr) Contains

func (s StringAttr) Contains(other string) bool

Contains returns true/false if provided value is contained in attr.

func (StringAttr) EncodeAttr

func (s StringAttr) EncodeAttr(encoder AttrEncoder) error

EncodeAttr implements the AttrEncodable interface.

func (StringAttr) EncodeObject

func (s StringAttr) EncodeObject(enc npkg.ObjectEncoder)

EncodeObject implements encoding using the npkg.EncodableObject interface.

func (StringAttr) Key

func (s StringAttr) Key() string

Key returns giving key or name of attribute.

func (StringAttr) Match

func (s StringAttr) Match(other Attr) bool

Match returns true/false if giving attributes matches.

func (StringAttr) Mount

func (s StringAttr) Mount(parent *Node) error

Mount implements the Mounter interface.

func (StringAttr) Text

func (s StringAttr) Text() string

Text returns giving value of attribute as text.

func (StringAttr) Value

func (s StringAttr) Value() interface{}

Value returns giving value of attribute.

type StringListAttr

type StringListAttr struct {
	Join string
	Name string
	Val  []string
}

StringListAttr implements the Attr interface for a string key-value pair.

func NewStringListAttr

func NewStringListAttr(n string, v ...string) StringListAttr

NewStringListAttr returns a new instance of a StringListAttr

func (StringListAttr) Contains

func (s StringListAttr) Contains(other string) bool

Contains returns true/false if provided value is contained in attr.

func (StringListAttr) EncodeAttr

func (s StringListAttr) EncodeAttr(encoder AttrEncoder) error

EncodeAttr implements the AttrEncodable interface.

func (StringListAttr) EncodeObject

func (s StringListAttr) EncodeObject(enc npkg.ObjectEncoder)

EncodeObject implements encoding using the npkg.EncodableObject interface.

func (StringListAttr) Key

func (s StringListAttr) Key() string

Key returns giving key or name of attribute.

func (StringListAttr) Match

func (s StringListAttr) Match(other Attr) bool

Match returns true/false if giving attributes matches.

func (StringListAttr) Mount

func (s StringListAttr) Mount(parent *Node) error

Mount implements the Mounter interface.

func (StringListAttr) Text

func (s StringListAttr) Text() string

Text returns giving value of attribute as text.

func (StringListAttr) Value

func (s StringListAttr) Value() interface{}

Value returns giving value of attribute.

type Stringer

type Stringer interface {
	String() string
}

Stringer defines an interface which exposes a method to get it's underline text using it's String() method.

type TextContent

type TextContent string

TextContent implements the Stringer interface for type string.

func (TextContent) String

func (t TextContent) String() string

String returns the underline string type.

type TextWriter

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

func NewTextWriter

func NewTextWriter(buf *bytes.Buffer) *TextWriter

func (*TextWriter) AppendNode

func (t *TextWriter) AppendNode(nodeType int, tagName string, id string)

func (*TextWriter) NewNode

func (t *TextWriter) NewNode(nodeType int, tagName string, id string)

func (*TextWriter) Reset

func (t *TextWriter) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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