domu

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 19 Imported by: 2

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 (
	ErrInvalidNodeType = nerror.New("invalid node type, unsupported")
	ErrNotFound        = errors.New("not found")
)
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

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

	Clone() Attr
}

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 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(eventName string, callNames ...string)

Add adds giving node into giving list if it has giving attribute value.

func (*EventHashList) AddJSONEvent

func (na *EventHashList) AddJSONEvent(ev JSONEvent)

AddJSONEvent 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) MatchEvents

func (na *EventHashList) MatchEvents(other *EventHashList) bool

MatchEvents returns true if both are equal in keys and values.

func (*EventHashList) Remove

func (na *EventHashList) Remove(eventName string, callNames ...string)

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

func (na *EventHashList) Reset()

Reset resets the internal hashmap used for storing nodes. There by removing all registered nodes.

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 IdAttr

type IdAttr string

IdAttr represent a Id attribute that sets the Id of a giving node.

func Id

func Id(val string) IdAttr

func (IdAttr) Clone

func (s IdAttr) Clone() Attr

func (IdAttr) Contains

func (s IdAttr) Contains(other string) bool

Contains returns true/false if provided value is contained in attr.

func (IdAttr) EncodeAttr

func (s IdAttr) EncodeAttr(encoder AttrEncoder) error

EncodeAttr implements the AttrEncodable interface.

func (IdAttr) EncodeObject

func (s IdAttr) EncodeObject(enc npkg.ObjectEncoder)

EncodeObject implements encoding using the npkg.EncodableObject interface.

func (IdAttr) Key

func (s IdAttr) Key() string

Key returns giving key or name of attribute.

func (IdAttr) Match

func (s IdAttr) Match(other Attr) bool

Match returns true/false if giving attributes matches.

func (IdAttr) Mount

func (s IdAttr) Mount(parent *Node)

Mount implements the Mounter interface.

func (IdAttr) Text

func (s IdAttr) Text() string

Text returns giving value of attribute as text.

func (IdAttr) Value

func (s IdAttr) Value() interface{}

Value returns giving value of attribute.

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

func (s IntAttr) Clone() Attr

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 JSONAttr

type JSONAttr struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type JSONEvent

type JSONEvent struct {
	Name    string   `json:"name"`
	Targets []string `json:"targets"`
}

func AbortEvent

func AbortEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

AnimationStartEvent provides DOM Event representation for the Event "AnimationStart".

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

func AnimationcancelEvent

func AnimationcancelEvent(mods ...string) JSONEvent

AnimationcancelEvent provides DOM Event representation for the Event "animationcancel".

A CSS animation has aborted. https://developer.mozilla.org/docs/Web/Events/animationcancel

func ApplicationInstalledEvent

func ApplicationInstalledEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

AudioProcessEvent provides DOM Event representation for the Event "AudioProcess".

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

func AudioStartEvent

func AudioStartEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

AuxclickEvent provides DOM Event representation for the Event "auxclick".

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

func BeforePrintEvent

func BeforePrintEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

BeforeinstallpromptEvent provides DOM Event representation for the Event "beforeinstallprompt".

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

func BeforescriptexecuteEvent

func BeforescriptexecuteEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 CallschangedEvent

func CallschangedEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 ClickEvent

func ClickEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

ConnectionInfoUpdateEvent provides DOM Event representation for the Event "connectionInfoUpdate".

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

func ContextMenuEvent

func ContextMenuEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

DataerrorEvent provides DOM Event representation for the Event "dataerror".

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

func DeliveredEvent

func DeliveredEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 DeviceMotionEvent

func DeviceMotionEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 DialingEvent

func DialingEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 DragEndEvent

func DragEndEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

DragOverEvent provides DOM Event representation for the Event "DragOver".

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

func DragStartEvent

func DragStartEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

EmptiedEvent provides DOM Event representation for the Event "emptied".

The media has become empty. For example, this event is triggered 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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

FullScreenChangeEvent provides DOM Event representation for the Event "FullScreenChange".

An element was toggled to or from fullscreen mode. https://developer.mozilla.org/docs/Web/Events/fullscreenchange

func FullScreenErrorEvent

func FullScreenErrorEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

FullscreenEvent provides DOM Event representation for the Event "fullscreen".

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

func GamepadConnectedEvent

func GamepadConnectedEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

ICCCardLockErrorEvent provides DOM Event representation for the Event "ICCCardLockError".

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

func IccinfochangeEvent

func IccinfochangeEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

KeyPressEvent provides DOM Event representation for the Event "KeyPress".

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

func KeyUpEvent

func KeyUpEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

LoadStartEvent provides DOM Event representation for the Event "LoadStart".

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

func LoadedDataEvent

func LoadedDataEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

MSManipulationStateChangedEvent provides DOM Event representation for the Event "MSManipulationStateChanged".

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

func MarkEvent

func MarkEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

MozbrowsercontextmenuEvent provides DOM Event representation for the Event "mozbrowsercontextmenu".

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

func MozbrowserdocumentfirstpaintEvent

func MozbrowserdocumentfirstpaintEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

MozbrowsererrorEvent provides DOM Event representation for the Event "mozbrowsererror".

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

func MozbrowserfindchangeEvent

func MozbrowserfindchangeEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

MozbrowserlocationchangeEvent provides DOM Event representation for the Event "mozbrowserlocationchange".

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

func MozbrowsermanifestchangeEvent

func MozbrowsermanifestchangeEvent(mods ...string) JSONEvent

MozbrowsermanifestchangeEvent provides DOM Event representation for the Event "mozbrowsermanifestchange".

Sent when 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(mods ...string) JSONEvent

MozbrowsermetachangeEvent provides DOM Event representation for the Event "mozbrowsermetachange".

Sent when a <meta> element 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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 MozbrowsershowmodalpromptEvent

func MozbrowsershowmodalpromptEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

MozbrowserusernameandpasswordrequiredEvent provides DOM Event representation for the Event "mozbrowserusernameandpasswordrequired".

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

func MozbrowservisibilitychangeEvent

func MozbrowservisibilitychangeEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

MsContentZoomEvent provides DOM Event representation for the Event "msContentZoom".

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

func NewJSONEvent

func NewJSONEvent(name string, targets ...string) JSONEvent

func NoMatchEvent

func NoMatchEvent(mods ...string) JSONEvent

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 NotificationClickEvent

func NotificationClickEvent(mods ...string) JSONEvent

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 OfflineEvent

func OfflineEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

PlayEvent provides DOM Event representation for the Event "play".

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

func PlayingEvent

func PlayingEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

PointerOutEvent provides DOM Event representation for the Event "PointerOut".

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

func PointerOverEvent

func PointerOverEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

PointerUpEvent provides DOM Event representation for the Event "PointerUp".

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

func PopStateEvent

func PopStateEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

ProgressEvent provides DOM Event representation for the Event "progress".

In progress. https://developer.mozilla.org/docs/Web/Events/progress

func PushEvent

func PushEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

ShowEvent provides DOM Event representation for the Event "show".

A contextmenu event was fired on (or bubbled to) an element that has a contextmenu attribute https://developer.mozilla.org/docs/Web/Events/show

func SizemodechangeEvent

func SizemodechangeEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

TimeoutEvent provides DOM Event representation for the Event "timeout".

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

func TouchCancelEvent

func TouchCancelEvent(mods ...string) JSONEvent

TouchCancelEvent provides DOM Event representation for the Event "TouchCancel".

A touch point has been disrupted in an implementation-specific manner (too many touch points, for example). https://developer.mozilla.org/docs/Web/Events/touchcancel

func TouchEndEvent

func TouchEndEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

TouchEnterEvent provides DOM Event representation for the Event "TouchEnter".

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

func TouchLeaveEvent

func TouchLeaveEvent(mods ...string) JSONEvent

TouchLeaveEvent provides DOM Event representation for the Event "TouchLeave".

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

func TouchMoveEvent

func TouchMoveEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

TransitioncancelEvent provides DOM Event representation for the Event "transitioncancel".

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

func TransitionrunEvent

func TransitionrunEvent(mods ...string) JSONEvent

TransitionrunEvent provides DOM Event representation for the Event "transitionrun".

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

func TransitionstartEvent

func TransitionstartEvent(mods ...string) JSONEvent

TransitionstartEvent provides DOM Event representation for the Event "transitionstart".

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

func UnderflowEvent

func UnderflowEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 UpgradeNeededEvent

func UpgradeNeededEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

VRDisplayPresentChangeEvent provides DOM Event representation for the Event "VRDisplayPresentChange".

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

func ValueChangeEvent

func ValueChangeEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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(mods ...string) JSONEvent

VrdisplayactivateEvent provides DOM Event representation for the Event "vrdisplayactivate".

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

func VrdisplayblurEvent

func VrdisplayblurEvent(mods ...string) JSONEvent

VrdisplayblurEvent provides DOM Event representation for the Event "vrdisplayblur".

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

func VrdisplayconnectEvent

func VrdisplayconnectEvent(mods ...string) JSONEvent

VrdisplayconnectEvent provides DOM Event representation for the Event "vrdisplayconnect".

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

func VrdisplaydeactivateEvent

func VrdisplaydeactivateEvent(mods ...string) JSONEvent

VrdisplaydeactivateEvent provides DOM Event representation for the Event "vrdisplaydeactivate".

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

func VrdisplaydisconnectEvent

func VrdisplaydisconnectEvent(mods ...string) JSONEvent

VrdisplaydisconnectEvent provides DOM Event representation for the Event "vrdisplaydisconnect".

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

func VrdisplayfocusEvent

func VrdisplayfocusEvent(mods ...string) JSONEvent

VrdisplayfocusEvent provides DOM Event representation for the Event "vrdisplayfocus".

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

func WaitingEvent

func WaitingEvent(mods ...string) JSONEvent

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(mods ...string) JSONEvent

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 (JSONEvent) Mount

func (nj JSONEvent) Mount(root *Node) error

func (JSONEvent) Text

func (nj JSONEvent) Text() string

type JSONNode

type JSONNode struct {
	Type        int         `json:"type"`
	Removed     bool        `json:"removed"`
	Changed     bool        `json:"changed"`
	AttrChanged bool        `json:"attr_changed"`
	Id          string      `json:"id"`
	Tid         string      `json:"tid"`
	AtId        string      `json:"atid"`
	Ref         string      `json:"ref"`
	TypeName    string      `json:"type_name"`
	Name        string      `json:"name"`
	Content     string      `json:"content"`
	Namespace   string      `json:"namespace"`
	Attrs       []JSONAttr  `json:"attrs"`
	Events      []JSONEvent `json:"events"`
	Children    []JSONNode  `json:"children"`
}

func (*JSONNode) EncodeObject

func (n *JSONNode) EncodeObject(encoder npkg.ObjectEncoder)

EncodeObject implements the npkg.EncodableObject interface.

type JSONNodes

type JSONNodes []JSONNode

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

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.

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 Carrier

func Carrier(renders ...Mounter) *Node

Carrier returns the Carrier node type which has no parent and should be the start position of a set nodes which will be applied to the parent to be mounted to.

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, 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(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(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(renders ...Mounter) *Node

HTMLAnchor provides Node representation for the element "a" in XHTML/HTML DOM The HTML <a> element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

func HTMLArea

func HTMLArea(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(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). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article

func HTMLAside

func HTMLAside(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(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(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 in a document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

func HTMLBidirectionalIsolation

func HTMLBidirectionalIsolation(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(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(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(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(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(renders ...Mounter) *Node

HTMLButton provides Node representation for the element "button" in XHTML/HTML DOM The HTML <button> element represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

func HTMLCanvas

func HTMLCanvas(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(renders ...Mounter) *Node

HTMLCaption provides Node representation for the element "caption" in XHTML/HTML DOM The HTML <caption> element specifies the caption (or title) of a table. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption

func HTMLCitation

func HTMLCitation(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(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(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(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(renders ...Mounter) *Node

HTMLData provides Node representation for the element "data" in XHTML/HTML DOM The HTML <data> element links a given piece of 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(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 permissible or recommended options available to choose from within other controls. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

func HTMLDefinition

func HTMLDefinition(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(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(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(renders ...Mounter) *Node

HTMLDescription provides Node representation for the element "dd" in XHTML/HTML DOM The HTML <dd> element provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd

func HTMLDescriptionList

func HTMLDescriptionList(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(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(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 a dismissable alert, inspector, or subwindow. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

func HTMLDiv

func HTMLDiv(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(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(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(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(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(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(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(renders ...Mounter) *Node

HTMLForm provides Node representation for the element "form" in XHTML/HTML DOM The HTML <form> element represents a document section containing interactive controls for submitting information. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form

func HTMLHeader

func HTMLHeader(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(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(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(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(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. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

func HTMLInlineFrame

func HTMLInlineFrame(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(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(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(renders ...Mounter) *Node

HTMLItalic provides Node representation for the element "i" in XHTML/HTML DOM The HTML Idiomatic Text element (<i>) represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomical designations, among others. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i

func HTMLKeyboardInput

func HTMLKeyboardInput(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(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(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(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 icons for the home screen and apps on mobile devices) among other things. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

func HTMLListItem

func HTMLListItem(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. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li

func HTMLMain

func HTMLMain(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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 offer alternative versions of an image for different display/device scenarios. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

func HTMLPreformatted

func HTMLPreformatted(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(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(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(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(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(renders ...Mounter) *Node

HTMLRuby provides Node representation for the element "ruby" in XHTML/HTML DOM The HTML <ruby> element represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters. It can also be used for annotating other kinds of text, but this usage is less common. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby

func HTMLRubyParenthesis

func HTMLRubyParenthesis(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(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(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(renders ...Mounter) *Node

HTMLScript provides Node representation for the element "script" in XHTML/HTML DOM The HTML <script> element is used to embed executable code or data; 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(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(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(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(renders ...Mounter) *Node

HTMLSmall provides Node representation for the element "small" in XHTML/HTML DOM The HTML <small> element represents side-comments and small print, like copyright and legal text, independent of its styled presentation. By default, it renders text within it one font-size smaller, such as from small to x-small. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small

func HTMLSource

func HTMLSource(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(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(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(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(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(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(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(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(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(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 rows (<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(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(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(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(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(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. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr

func HTMLTemplate

func HTMLTemplate(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 HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

func HTMLTextArea

func HTMLTextArea(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(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(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(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. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track

func HTMLUnderline

func HTMLUnderline(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(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(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(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. You can use <video> for audio content as well, but the <audio> element may provide a more appropriate user experience. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func HTMLWordBreakOpportunity

func HTMLWordBreakOpportunity(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) *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 Replicate

func Replicate(renders ...Mounter) *Node

Replicate returns the Replicate node type which has no parent and should be the start position of a set nodes which will be applied to the parent to be mounted to.

func SVGAnchor

func SVGAnchor(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 in the same page, email addresses, or any other URL. It is very similar to HTML’s <a> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a

func SVGAnimate

func SVGAnimate(renders ...Mounter) *Node

SVGAnimate provides Node representation for the element "animate" in XML/SVG DOM The SVG <animate> element provides a way to animate an attribute of an element over time. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate

func SVGAnimateMotion

func SVGAnimateMotion(renders ...Mounter) *Node

SVGAnimateMotion provides Node representation for the element "animateMotion" in XML/SVG DOM The SVG <animateMotion> element let define how an element moves along a motion path. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateMotion

func SVGAnimateTransform

func SVGAnimateTransform(renders ...Mounter) *Node

SVGAnimateTransform provides Node representation for the element "animateTransform" in XML/SVG DOM The animateTransform element animates a transformation attribute on its 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(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 draw circles based on a center point and a radius. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle

func SVGClipPath

func SVGClipPath(renders ...Mounter) *Node

SVGClipPath provides Node representation for the element "clipPath" in XML/SVG DOM The <clipPath> SVG element defines a clipping path, to be used by the clip-path property. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath

func SVGColorProfile

func SVGColorProfile(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(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(renders ...Mounter) *Node

SVGDesc provides Node representation for the element "desc" in XML/SVG DOM The <desc> element provides an accessible, long-text description of any SVG container element or graphics element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc

func SVGDiscard

func SVGDiscard(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(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(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(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  [R,G,B,A] is matrix multiplied by a 5 by 5 color matrix to create new color [R',G',B',A']. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix

func SVGFeComponentTransfer

func SVGFeComponentTransfer(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(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(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(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(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(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(renders ...Mounter) *Node

SVGFeDropShadow provides Node representation for the element "feDropShadow" in XML/SVG DOM The SVG <feDropShadow> filter primitive creates a drop shadow of the input image. It can only be used inside a <filter> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDropShadow

func SVGFeFlood

func SVGFeFlood(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(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(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(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(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(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(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(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(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(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. Its usefulness lies especially in fattening or thinning effects. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology

func SVGFeOffset

func SVGFeOffset(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(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(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(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(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(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(renders ...Mounter) *Node

SVGFilter provides Node representation for the element "filter" in XML/SVG DOM The <filter> SVG element defines a custom filter effect by grouping atomic filter primitives. It is never rendered itself, but must be used by the filter attribute on SVG elements, or the filter CSS property for SVG/HTML elements. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter

func SVGForeignObject

func SVGForeignObject(renders ...Mounter) *Node

SVGForeignObject provides Node representation for the element "foreignObject" in XML/SVG DOM The <foreignObject> SVG element includes elements from a different XML namespace. In the context of a browser, it is most likely (X)HTML. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject

func SVGGroup

func SVGGroup(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(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(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(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(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(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(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(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(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(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(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(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(renders ...Mounter) *Node

SVGMetadata provides Node representation for the element "metadata" in XML/SVG DOM The <metadata> SVG element adds metadata to SVG content. Metadata is structured information about data. The contents of <metadata> 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(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(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(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(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. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon

func SVGPolyline

func SVGPolyline(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(renders ...Mounter) *Node

SVGRadialGradient provides Node representation for the element "radialGradient" in XML/SVG DOM The <radialGradient> element lets authors define radial gradients that can be applied to fill or stroke of graphical elements. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/radialGradient

func SVGRect

func SVGRect(renders ...Mounter) *Node

SVGRect provides Node representation for the element "rect" in XML/SVG DOM The <rect> element is a basic SVG shape that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect

func SVGScript

func SVGScript(renders ...Mounter) *Node

SVGScript provides Node representation for the element "script" in XML/SVG DOM The SVG script element allows to add scripts to an SVG document. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script

func SVGSet

func SVGSet(renders ...Mounter) *Node

SVGSet provides Node representation for the element "set" in XML/SVG DOM The SVG <set> element provides a simple means of just setting the value of an attribute for a specified duration. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/set

func SVGSolidcolor

func SVGSolidcolor(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(renders ...Mounter) *Node

SVGStop provides Node representation for the element "stop" in XML/SVG DOM The SVG <stop> element defines a color and its position to use on a gradient. This element is always a child of a <linearGradient> or <radialGradient> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop

func SVGStyle

func SVGStyle(renders ...Mounter) *Node

SVGStyle provides Node representation for the element "style" in XML/SVG DOM The SVG <style> element allows style sheets to be embedded directly within SVG content. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style

func SVGSwitch

func SVGSwitch(renders ...Mounter) *Node

SVGSwitch provides Node representation for the element "switch" in XML/SVG DOM The <switch> SVG element evaluates any requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then renders the first child where these attributes evaluate to true. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/switch

func SVGSymbol

func SVGSymbol(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(renders ...Mounter) *Node

SVGText provides Node representation for the element "text" in XML/SVG DOM The SVG <text> element draws a graphics element consisting of text. It's possible to apply a gradient, pattern, clipping path, mask, or filter to <text>, like any other SVG graphics element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

func SVGTextPath

func SVGTextPath(renders ...Mounter) *Node

SVGTextPath provides Node representation for the element "textPath" in XML/SVG DOM To render text along the shape of a <path>, enclose the text in a <textPath> element that has an href attribute with a reference to the <path> element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath

func SVGTitle

func SVGTitle(renders ...Mounter) *Node

SVGTitle provides Node representation for the element "title" in XML/SVG DOM The <title> element provides an accessible, short-text description of any SVG container element or graphics element. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title

func SVGTspan

func SVGTspan(renders ...Mounter) *Node

SVGTspan provides Node representation for the element "tspan" in XML/SVG DOM The SVG <tspan> element defines a subtext within a <text> element or another <tspan> element. It allows for adjustment of the style and/or position of that subtext as needed. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tspan

func SVGUnknown

func SVGUnknown(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(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(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(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 SVG documents, but it can also be used to embed a SVG fragment inside an 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, 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)

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.

Operation will fail if the node.Err() has an error.

func (*Node) Apply

func (n *Node) Apply(fns ...NodeFn) *Node

Apply applies giving set of functions to the node.

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

func (n *Node) Err() error

Err returns the current error found when adding into this node.

func (*Node) FindRefNode

func (n *Node) FindRefNode(ref string) (*Node, error)

FindRefNode walks through provided ref node paths till the last node is found.

func (*Node) FirstChild

func (n *Node) FirstChild() (*Node, error)

FirstChild returns first child of giving node if any, else returns an error.

func (*Node) FromJSONNode

func (n *Node) FromJSONNode(jsonNode JSONNode) 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) GetChangeStream

func (n *Node) GetChangeStream() []JSONNode

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)

Mount implements the Mounter interface where it mounts the provided node as a child node of it self.

Operation will fail if the node.Err() has an error.

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

Reconcile attempts to reconcile old Node set with this node set returning an true/false when 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) ReconcileStream

func (n *Node) ReconcileStream(old *Node) []JSONNode

ReconcileStream 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) 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) Render

func (n *Node) Render(data interface{}) (*Node, error)

Render implements the component interface.

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

func (n *Node) RenderHTMLDiff(w io.Writer, indented bool) error

RenderHTMLDiff 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 io.Writer, indented bool, renderRemoved 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) RenderJSONNode

func (n *Node) RenderJSONNode() JSONNode

func (*Node) RenderShallowHTML

func (n *Node) RenderShallowHTML(build io.Writer, indented bool) error

RenderShallowHTML renders as HTML giving node tag alone without rendering children.

func (*Node) RenderShallowJSONNode

func (n *Node) RenderShallowJSONNode() JSONNode

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

func (n *Node) SetAtid(id string)

func (*Node) SetErr

func (n *Node) SetErr(err error)

func (*Node) SetPrefix

func (n *Node) SetPrefix(route string)

SetRoutePart sets the routePrefix portion of this node.

func (*Node) SetTid

func (n *Node) SetTid(id string)

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 NodeFn

type NodeFn func(*Node) *Node

NodeFn defines a type which applies an operation to a node.

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
	CarrierNode          NodeType = 100
	ReplicateNode        NodeType = 101
)

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 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 MustQuery

func MustQuery(sel string) Selector

MustQuery returns a new selector based on provided matching string. If there is an error in compiling the text then it panics.

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

func (s StringAttr) Clone() Attr

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)

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, join string, v ...string) StringListAttr

NewStringListAttr returns a new instance of a StringListAttr

func (*StringListAttr) Add

func (s *StringListAttr) Add(item string)

Adds a new item into the list.

func (StringListAttr) Clone

func (s StringListAttr) Clone() Attr

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)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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