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 ¶
- Variables
- func MakeHTMLSpace(count int) string
- func ParseTemplateInto(root *Node, markup string, binding interface{})
- func ParseToRoot(root *Node, markup string)
- type Atom
- type AtomRead
- type AtomSet
- type Attr
- type AttrEncodable
- type AttrEncoder
- type AttrList
- func (l *AttrList) Add(v Attr)
- func (l AttrList) Attr(key string) (Attr, bool)
- func (l AttrList) Each(fx func(Attr) bool)
- func (l AttrList) EncodeAttr(encoder AttrEncoder) error
- func (l AttrList) EncodeList(encoder npkg.ListEncoder)
- func (l AttrList) Has(key string) bool
- func (l *AttrList) Len() int
- func (l AttrList) Match(key string, value string) bool
- func (l AttrList) MatchAttrs(attrs Attrs) bool
- type Attrs
- type DOMAttrEncoder
- func (dm *DOMAttrEncoder) Attr(key string, attrs AttrEncodable) error
- func (dm *DOMAttrEncoder) Float(key string, val float64) error
- func (dm *DOMAttrEncoder) Int(key string, val int) error
- func (dm *DOMAttrEncoder) List(key string, set ...string) error
- func (dm *DOMAttrEncoder) QuotedString(key string, val string) error
- func (dm *DOMAttrEncoder) String() string
- func (dm *DOMAttrEncoder) UnquotedString(key string, val string) error
- func (dm *DOMAttrEncoder) WithAttr(key string, fn func(encoder AttrEncoder) error) error
- func (dm *DOMAttrEncoder) WriteTo(w io.Writer) (int64, error)
- type EventHashList
- func (na *EventHashList) Add(eventName string, callNames ...string)
- func (na *EventHashList) AddJSONEvent(ev JSONEvent)
- func (na *EventHashList) Count() int
- func (na *EventHashList) EncodeEvents(encoder *strings.Builder) error
- func (na *EventHashList) EncodeList(enc npkg.ListEncoder)
- func (na *EventHashList) Len() int
- func (na *EventHashList) MatchEvents(other *EventHashList) bool
- func (na *EventHashList) Remove(eventName string, callNames ...string)
- func (na *EventHashList) RemoveAll(event string)
- func (na *EventHashList) Reset()
- type FunctionApplier
- type IDList
- type IdAttr
- func (s IdAttr) Clone() Attr
- func (s IdAttr) Contains(other string) bool
- func (s IdAttr) EncodeAttr(encoder AttrEncoder) error
- func (s IdAttr) EncodeObject(enc npkg.ObjectEncoder)
- func (s IdAttr) Key() string
- func (s IdAttr) Match(other Attr) bool
- func (s IdAttr) Mount(parent *Node)
- func (s IdAttr) Text() string
- func (s IdAttr) Value() interface{}
- type IndexUpdated
- type InputType
- type IntAtomImpl
- type IntAttr
- func (s IntAttr) Clone() Attr
- func (s IntAttr) Contains(other string) bool
- func (s IntAttr) EncodeAttr(encoder AttrEncoder) error
- func (s IntAttr) EncodeObject(enc npkg.ObjectEncoder)
- func (s IntAttr) Key() string
- func (s IntAttr) Match(other Attr) bool
- func (s IntAttr) Mount(parent *Node) error
- func (s IntAttr) Text() string
- func (s IntAttr) Value() interface{}
- type IterableAttr
- type JSONAttr
- type JSONEvent
- func AbortEvent(mods ...string) JSONEvent
- func AfterPrintEvent(mods ...string) JSONEvent
- func AfterScriptExecuteEvent(mods ...string) JSONEvent
- func AlertActiveEvent(mods ...string) JSONEvent
- func AlertCloseEvent(mods ...string) JSONEvent
- func AlertingEvent(mods ...string) JSONEvent
- func AnimationEndEvent(mods ...string) JSONEvent
- func AnimationIterationEvent(mods ...string) JSONEvent
- func AnimationStartEvent(mods ...string) JSONEvent
- func AnimationcancelEvent(mods ...string) JSONEvent
- func ApplicationInstalledEvent(mods ...string) JSONEvent
- func AudioEndEvent(mods ...string) JSONEvent
- func AudioProcessEvent(mods ...string) JSONEvent
- func AudioStartEvent(mods ...string) JSONEvent
- func AuxclickEvent(mods ...string) JSONEvent
- func BeforePrintEvent(mods ...string) JSONEvent
- func BeforeUnloadEvent(mods ...string) JSONEvent
- func BeforeinstallpromptEvent(mods ...string) JSONEvent
- func BeforescriptexecuteEvent(mods ...string) JSONEvent
- func BeginEventEvent(mods ...string) JSONEvent
- func BlockedEvent(mods ...string) JSONEvent
- func BlurEvent(mods ...string) JSONEvent
- func BoundaryEvent(mods ...string) JSONEvent
- func BroadcastEvent(mods ...string) JSONEvent
- func BusyEvent(mods ...string) JSONEvent
- func CSSRuleViewCSSLinkClickedEvent(mods ...string) JSONEvent
- func CSSRuleViewChangeEvent(mods ...string) JSONEvent
- func CSSRuleViewRefreshedEvent(mods ...string) JSONEvent
- func CallschangedEvent(mods ...string) JSONEvent
- func CanPlayEvent(mods ...string) JSONEvent
- func CanPlayThroughEvent(mods ...string) JSONEvent
- func CardstatechangeEvent(mods ...string) JSONEvent
- func CfstatechangeEvent(mods ...string) JSONEvent
- func ChangeEvent(mods ...string) JSONEvent
- func ChargingChangeEvent(mods ...string) JSONEvent
- func ChargingTimeChangeEvent(mods ...string) JSONEvent
- func CheckboxStateChangeEvent(mods ...string) JSONEvent
- func ClickEvent(mods ...string) JSONEvent
- func CloseEvent(mods ...string) JSONEvent
- func CommandEvent(mods ...string) JSONEvent
- func CommandupdateEvent(mods ...string) JSONEvent
- func CompleteEvent(mods ...string) JSONEvent
- func CompositionEndEvent(mods ...string) JSONEvent
- func CompositionStartEvent(mods ...string) JSONEvent
- func CompositionUpdateEvent(mods ...string) JSONEvent
- func ConnectingEvent(mods ...string) JSONEvent
- func ConnectionInfoUpdateEvent(mods ...string) JSONEvent
- func ContextMenuEvent(mods ...string) JSONEvent
- func CopyEvent(mods ...string) JSONEvent
- func CutEvent(mods ...string) JSONEvent
- func DOMAutoCompleteEvent(mods ...string) JSONEvent
- func DOMContentLoadedEvent(mods ...string) JSONEvent
- func DOMFrameContentLoadedEvent(mods ...string) JSONEvent
- func DOMLinkAddedEvent(mods ...string) JSONEvent
- func DOMLinkRemovedEvent(mods ...string) JSONEvent
- func DOMMenuItemActiveEvent(mods ...string) JSONEvent
- func DOMMenuItemInactiveEvent(mods ...string) JSONEvent
- func DOMMetaAddedEvent(mods ...string) JSONEvent
- func DOMMetaRemovedEvent(mods ...string) JSONEvent
- func DOMModalDialogClosedEvent(mods ...string) JSONEvent
- func DOMPopupBlockedEvent(mods ...string) JSONEvent
- func DOMTitleChangedEvent(mods ...string) JSONEvent
- func DOMWillOpenModalDialogEvent(mods ...string) JSONEvent
- func DOMWindowCloseEvent(mods ...string) JSONEvent
- func DOMWindowCreatedEvent(mods ...string) JSONEvent
- func DatachangeEvent(mods ...string) JSONEvent
- func DataerrorEvent(mods ...string) JSONEvent
- func DeliveredEvent(mods ...string) JSONEvent
- func DeviceChangeEvent(mods ...string) JSONEvent
- func DeviceMotionEvent(mods ...string) JSONEvent
- func DeviceOrientationEvent(mods ...string) JSONEvent
- func DialingEvent(mods ...string) JSONEvent
- func DisabledEvent(mods ...string) JSONEvent
- func DischargingTimeChangeEvent(mods ...string) JSONEvent
- func DisconnectedEvent(mods ...string) JSONEvent
- func DisconnectingEvent(mods ...string) JSONEvent
- func DoubleClickEvent(mods ...string) JSONEvent
- func DragEndEvent(mods ...string) JSONEvent
- func DragEnterEvent(mods ...string) JSONEvent
- func DragEvent(mods ...string) JSONEvent
- func DragLeaveEvent(mods ...string) JSONEvent
- func DragOverEvent(mods ...string) JSONEvent
- func DragStartEvent(mods ...string) JSONEvent
- func DropEvent(mods ...string) JSONEvent
- func DurationChangeEvent(mods ...string) JSONEvent
- func EmptiedEvent(mods ...string) JSONEvent
- func EnabledEvent(mods ...string) JSONEvent
- func EndEvent(mods ...string) JSONEvent
- func EndEventEvent(mods ...string) JSONEvent
- func EndedEvent(mods ...string) JSONEvent
- func FocusEvent(mods ...string) JSONEvent
- func FocusInEvent(mods ...string) JSONEvent
- func FocusOutEvent(mods ...string) JSONEvent
- func FullScreenChangeEvent(mods ...string) JSONEvent
- func FullScreenErrorEvent(mods ...string) JSONEvent
- func FullscreenEvent(mods ...string) JSONEvent
- func GamepadConnectedEvent(mods ...string) JSONEvent
- func GamepadDisconnectedEvent(mods ...string) JSONEvent
- func GotPointerCaptureEvent(mods ...string) JSONEvent
- func HashChangeEvent(mods ...string) JSONEvent
- func HeldEvent(mods ...string) JSONEvent
- func HoldingEvent(mods ...string) JSONEvent
- func ICCCardLockErrorEvent(mods ...string) JSONEvent
- func IccinfochangeEvent(mods ...string) JSONEvent
- func IncomingEvent(mods ...string) JSONEvent
- func InputEvent(mods ...string) JSONEvent
- func InvalidEvent(mods ...string) JSONEvent
- func KeyDownEvent(mods ...string) JSONEvent
- func KeyPressEvent(mods ...string) JSONEvent
- func KeyUpEvent(mods ...string) JSONEvent
- func LanguageChangeEvent(mods ...string) JSONEvent
- func LevelChangeEvent(mods ...string) JSONEvent
- func LoadEndEvent(mods ...string) JSONEvent
- func LoadEvent(mods ...string) JSONEvent
- func LoadStartEvent(mods ...string) JSONEvent
- func LoadedDataEvent(mods ...string) JSONEvent
- func LoadedMetadataEvent(mods ...string) JSONEvent
- func LocalizedEvent(mods ...string) JSONEvent
- func LostPointerCaptureEvent(mods ...string) JSONEvent
- func MSManipulationStateChangedEvent(mods ...string) JSONEvent
- func MarkEvent(mods ...string) JSONEvent
- func MessageErrorEvent(mods ...string) JSONEvent
- func MessageEvent(mods ...string) JSONEvent
- func MouseDownEvent(mods ...string) JSONEvent
- func MouseEnterEvent(mods ...string) JSONEvent
- func MouseLeaveEvent(mods ...string) JSONEvent
- func MouseMoveEvent(mods ...string) JSONEvent
- func MouseOutEvent(mods ...string) JSONEvent
- func MouseOverEvent(mods ...string) JSONEvent
- func MouseUpEvent(mods ...string) JSONEvent
- func MozAfterPaintEvent(mods ...string) JSONEvent
- func MozAudioAvailableEvent(mods ...string) JSONEvent
- func MozBeforeResizeEvent(mods ...string) JSONEvent
- func MozEdgeUIGestureEvent(mods ...string) JSONEvent
- func MozEnteredDomFullscreenEvent(mods ...string) JSONEvent
- func MozGamepadButtonDownEvent(mods ...string) JSONEvent
- func MozGamepadButtonUpEvent(mods ...string) JSONEvent
- func MozMagnifyGestureEvent(mods ...string) JSONEvent
- func MozMagnifyGestureStartEvent(mods ...string) JSONEvent
- func MozMagnifyGestureUpdateEvent(mods ...string) JSONEvent
- func MozPressTapGestureEvent(mods ...string) JSONEvent
- func MozRotateGestureEvent(mods ...string) JSONEvent
- func MozRotateGestureStartEvent(mods ...string) JSONEvent
- func MozRotateGestureUpdateEvent(mods ...string) JSONEvent
- func MozScrolledAreaChangedEvent(mods ...string) JSONEvent
- func MozSwipeGestureEvent(mods ...string) JSONEvent
- func MozTapGestureEvent(mods ...string) JSONEvent
- func MozbrowseractivitydoneEvent(mods ...string) JSONEvent
- func MozbrowserasyncscrollEvent(mods ...string) JSONEvent
- func MozbrowseraudioplaybackchangeEvent(mods ...string) JSONEvent
- func MozbrowsercaretstatechangedEvent(mods ...string) JSONEvent
- func MozbrowsercloseEvent(mods ...string) JSONEvent
- func MozbrowsercontextmenuEvent(mods ...string) JSONEvent
- func MozbrowserdocumentfirstpaintEvent(mods ...string) JSONEvent
- func MozbrowsererrorEvent(mods ...string) JSONEvent
- func MozbrowserfindchangeEvent(mods ...string) JSONEvent
- func MozbrowserfirstpaintEvent(mods ...string) JSONEvent
- func MozbrowsericonchangeEvent(mods ...string) JSONEvent
- func MozbrowserloadendEvent(mods ...string) JSONEvent
- func MozbrowserloadstartEvent(mods ...string) JSONEvent
- func MozbrowserlocationchangeEvent(mods ...string) JSONEvent
- func MozbrowsermanifestchangeEvent(mods ...string) JSONEvent
- func MozbrowsermetachangeEvent(mods ...string) JSONEvent
- func MozbrowseropensearchEvent(mods ...string) JSONEvent
- func MozbrowseropentabEvent(mods ...string) JSONEvent
- func MozbrowseropenwindowEvent(mods ...string) JSONEvent
- func MozbrowserresizeEvent(mods ...string) JSONEvent
- func MozbrowserscrollEvent(mods ...string) JSONEvent
- func MozbrowserscrollareachangedEvent(mods ...string) JSONEvent
- func MozbrowserscrollviewchangeEvent(mods ...string) JSONEvent
- func MozbrowsersecuritychangeEvent(mods ...string) JSONEvent
- func MozbrowsershowmodalpromptEvent(mods ...string) JSONEvent
- func MozbrowsertitlechangeEvent(mods ...string) JSONEvent
- func MozbrowserusernameandpasswordrequiredEvent(mods ...string) JSONEvent
- func MozbrowservisibilitychangeEvent(mods ...string) JSONEvent
- func MoztimechangeEvent(mods ...string) JSONEvent
- func MsContentZoomEvent(mods ...string) JSONEvent
- func NewJSONEvent(name string, targets ...string) JSONEvent
- func NoMatchEvent(mods ...string) JSONEvent
- func NotificationClickEvent(mods ...string) JSONEvent
- func OfflineEvent(mods ...string) JSONEvent
- func OnconnectedEvent(mods ...string) JSONEvent
- func OnlineEvent(mods ...string) JSONEvent
- func OpenEvent(mods ...string) JSONEvent
- func OrientationChangeEvent(mods ...string) JSONEvent
- func OverflowEvent(mods ...string) JSONEvent
- func PageHideEvent(mods ...string) JSONEvent
- func PageShowEvent(mods ...string) JSONEvent
- func PasteEvent(mods ...string) JSONEvent
- func PauseEvent(mods ...string) JSONEvent
- func PlayEvent(mods ...string) JSONEvent
- func PlayingEvent(mods ...string) JSONEvent
- func PointerCancelEvent(mods ...string) JSONEvent
- func PointerDownEvent(mods ...string) JSONEvent
- func PointerEnterEvent(mods ...string) JSONEvent
- func PointerLeaveEvent(mods ...string) JSONEvent
- func PointerLockChangeEvent(mods ...string) JSONEvent
- func PointerLockErrorEvent(mods ...string) JSONEvent
- func PointerMoveEvent(mods ...string) JSONEvent
- func PointerOutEvent(mods ...string) JSONEvent
- func PointerOverEvent(mods ...string) JSONEvent
- func PointerUpEvent(mods ...string) JSONEvent
- func PopStateEvent(mods ...string) JSONEvent
- func PopuphiddenEvent(mods ...string) JSONEvent
- func PopuphidingEvent(mods ...string) JSONEvent
- func PopupshowingEvent(mods ...string) JSONEvent
- func PopupshownEvent(mods ...string) JSONEvent
- func ProgressEvent(mods ...string) JSONEvent
- func PushEvent(mods ...string) JSONEvent
- func PushSubscriptionChangeEvent(mods ...string) JSONEvent
- func RadioStateChangeEvent(mods ...string) JSONEvent
- func RateChangeEvent(mods ...string) JSONEvent
- func ReadyStateChangeEvent(mods ...string) JSONEvent
- func ReceivedEvent(mods ...string) JSONEvent
- func RepeatEventEvent(mods ...string) JSONEvent
- func ResetEvent(mods ...string) JSONEvent
- func ResizeEvent(mods ...string) JSONEvent
- func ResourceTimingBufferFullEvent(mods ...string) JSONEvent
- func ResultEvent(mods ...string) JSONEvent
- func ResumeEvent(mods ...string) JSONEvent
- func ResumingEvent(mods ...string) JSONEvent
- func SSTabClosingEvent(mods ...string) JSONEvent
- func SSTabRestoredEvent(mods ...string) JSONEvent
- func SSTabRestoringEvent(mods ...string) JSONEvent
- func SSWindowClosingEvent(mods ...string) JSONEvent
- func SSWindowStateBusyEvent(mods ...string) JSONEvent
- func SSWindowStateReadyEvent(mods ...string) JSONEvent
- func SVGAbortEvent(mods ...string) JSONEvent
- func SVGErrorEvent(mods ...string) JSONEvent
- func SVGLoadEvent(mods ...string) JSONEvent
- func SVGResizeEvent(mods ...string) JSONEvent
- func SVGScrollEvent(mods ...string) JSONEvent
- func SVGUnloadEvent(mods ...string) JSONEvent
- func SVGZoomEvent(mods ...string) JSONEvent
- func ScrollEvent(mods ...string) JSONEvent
- func SeekedEvent(mods ...string) JSONEvent
- func SeekingEvent(mods ...string) JSONEvent
- func SelectEvent(mods ...string) JSONEvent
- func SelectStartEvent(mods ...string) JSONEvent
- func SelectionChangeEvent(mods ...string) JSONEvent
- func SentEvent(mods ...string) JSONEvent
- func ShowEvent(mods ...string) JSONEvent
- func SizemodechangeEvent(mods ...string) JSONEvent
- func SlotChangeEvent(mods ...string) JSONEvent
- func SmartcardInsertEvent(mods ...string) JSONEvent
- func SmartcardRemoveEvent(mods ...string) JSONEvent
- func SoundEndEvent(mods ...string) JSONEvent
- func SoundStartEvent(mods ...string) JSONEvent
- func SpeechEndEvent(mods ...string) JSONEvent
- func SpeechStartEvent(mods ...string) JSONEvent
- func StalledEvent(mods ...string) JSONEvent
- func StartEvent(mods ...string) JSONEvent
- func StatechangeEvent(mods ...string) JSONEvent
- func StatuschangeEvent(mods ...string) JSONEvent
- func StkcommandEvent(mods ...string) JSONEvent
- func StksessionendEvent(mods ...string) JSONEvent
- func StorageEvent(mods ...string) JSONEvent
- func SubmitEvent(mods ...string) JSONEvent
- func SuccessEvent(mods ...string) JSONEvent
- func SuspendEvent(mods ...string) JSONEvent
- func TabCloseEvent(mods ...string) JSONEvent
- func TabHideEvent(mods ...string) JSONEvent
- func TabOpenEvent(mods ...string) JSONEvent
- func TabPinnedEvent(mods ...string) JSONEvent
- func TabSelectEvent(mods ...string) JSONEvent
- func TabShowEvent(mods ...string) JSONEvent
- func TabUnpinnedEvent(mods ...string) JSONEvent
- func TimeUpdateEvent(mods ...string) JSONEvent
- func TimeoutEvent(mods ...string) JSONEvent
- func TouchCancelEvent(mods ...string) JSONEvent
- func TouchEndEvent(mods ...string) JSONEvent
- func TouchEnterEvent(mods ...string) JSONEvent
- func TouchLeaveEvent(mods ...string) JSONEvent
- func TouchMoveEvent(mods ...string) JSONEvent
- func TouchStartEvent(mods ...string) JSONEvent
- func TransitionEndEvent(mods ...string) JSONEvent
- func TransitioncancelEvent(mods ...string) JSONEvent
- func TransitionrunEvent(mods ...string) JSONEvent
- func TransitionstartEvent(mods ...string) JSONEvent
- func UnderflowEvent(mods ...string) JSONEvent
- func UnloadEvent(mods ...string) JSONEvent
- func UpgradeNeededEvent(mods ...string) JSONEvent
- func UserProximityEvent(mods ...string) JSONEvent
- func UssdreceivedEvent(mods ...string) JSONEvent
- func VRDisplayPresentChangeEvent(mods ...string) JSONEvent
- func ValueChangeEvent(mods ...string) JSONEvent
- func VersionChangeEvent(mods ...string) JSONEvent
- func VisibilityChangeEvent(mods ...string) JSONEvent
- func VoicechangeEvent(mods ...string) JSONEvent
- func VoicesChangedEvent(mods ...string) JSONEvent
- func VolumeChangeEvent(mods ...string) JSONEvent
- func VrdisplayactivateEvent(mods ...string) JSONEvent
- func VrdisplayblurEvent(mods ...string) JSONEvent
- func VrdisplayconnectEvent(mods ...string) JSONEvent
- func VrdisplaydeactivateEvent(mods ...string) JSONEvent
- func VrdisplaydisconnectEvent(mods ...string) JSONEvent
- func VrdisplayfocusEvent(mods ...string) JSONEvent
- func WaitingEvent(mods ...string) JSONEvent
- func WheelEvent(mods ...string) JSONEvent
- type JSONNode
- type JSONNodes
- type Matchable
- type Mounter
- type Node
- func Carrier(renders ...Mounter) *Node
- func Comment(comment string) *Node
- func Document(renders ...Mounter) *Node
- func Element(name string, renders ...Mounter) *Node
- func HTMLAbbreviation(renders ...Mounter) *Node
- func HTMLAddress(renders ...Mounter) *Node
- func HTMLAnchor(renders ...Mounter) *Node
- func HTMLArea(renders ...Mounter) *Node
- func HTMLArticle(renders ...Mounter) *Node
- func HTMLAside(renders ...Mounter) *Node
- func HTMLAudio(renders ...Mounter) *Node
- func HTMLBase(renders ...Mounter) *Node
- func HTMLBidirectionalIsolation(renders ...Mounter) *Node
- func HTMLBidirectionalOverride(renders ...Mounter) *Node
- func HTMLBlockQuote(renders ...Mounter) *Node
- func HTMLBold(renders ...Mounter) *Node
- func HTMLBreak(renders ...Mounter) *Node
- func HTMLButton(renders ...Mounter) *Node
- func HTMLCanvas(renders ...Mounter) *Node
- func HTMLCaption(renders ...Mounter) *Node
- func HTMLCitation(renders ...Mounter) *Node
- func HTMLCode(renders ...Mounter) *Node
- func HTMLColumn(renders ...Mounter) *Node
- func HTMLColumnGroup(renders ...Mounter) *Node
- func HTMLData(renders ...Mounter) *Node
- func HTMLDataList(renders ...Mounter) *Node
- func HTMLDefinition(renders ...Mounter) *Node
- func HTMLDefinitionTerm(renders ...Mounter) *Node
- func HTMLDeletedText(renders ...Mounter) *Node
- func HTMLDescription(renders ...Mounter) *Node
- func HTMLDescriptionList(renders ...Mounter) *Node
- func HTMLDetails(renders ...Mounter) *Node
- func HTMLDialog(renders ...Mounter) *Node
- func HTMLDiv(renders ...Mounter) *Node
- func HTMLDoc(renders ...Mounter) *Node
- func HTMLEmbed(renders ...Mounter) *Node
- func HTMLEmphasis(renders ...Mounter) *Node
- func HTMLFieldSet(renders ...Mounter) *Node
- func HTMLFigure(renders ...Mounter) *Node
- func HTMLFigureCaption(renders ...Mounter) *Node
- func HTMLFooter(renders ...Mounter) *Node
- func HTMLForm(renders ...Mounter) *Node
- func HTMLHeader(renders ...Mounter) *Node
- func HTMLHeader1(renders ...Mounter) *Node
- func HTMLHeadingsGroup(renders ...Mounter) *Node
- func HTMLHorizontalRule(renders ...Mounter) *Node
- func HTMLImage(renders ...Mounter) *Node
- func HTMLInlineFrame(renders ...Mounter) *Node
- func HTMLInput(renders ...Mounter) *Node
- func HTMLInsertedText(renders ...Mounter) *Node
- func HTMLItalic(renders ...Mounter) *Node
- func HTMLKeyboardInput(renders ...Mounter) *Node
- func HTMLLabel(renders ...Mounter) *Node
- func HTMLLegend(renders ...Mounter) *Node
- func HTMLLink(renders ...Mounter) *Node
- func HTMLListItem(renders ...Mounter) *Node
- func HTMLMain(renders ...Mounter) *Node
- func HTMLMap(renders ...Mounter) *Node
- func HTMLMark(renders ...Mounter) *Node
- func HTMLMenu(renders ...Mounter) *Node
- func HTMLMeta(renders ...Mounter) *Node
- func HTMLMeter(renders ...Mounter) *Node
- func HTMLNavigation(renders ...Mounter) *Node
- func HTMLNoScript(renders ...Mounter) *Node
- func HTMLObject(renders ...Mounter) *Node
- func HTMLOption(renders ...Mounter) *Node
- func HTMLOptionsGroup(renders ...Mounter) *Node
- func HTMLOrderedList(renders ...Mounter) *Node
- func HTMLOutput(renders ...Mounter) *Node
- func HTMLParagraph(renders ...Mounter) *Node
- func HTMLParameter(renders ...Mounter) *Node
- func HTMLPicture(renders ...Mounter) *Node
- func HTMLPreformatted(renders ...Mounter) *Node
- func HTMLProgress(renders ...Mounter) *Node
- func HTMLQuote(renders ...Mounter) *Node
- func HTMLRb(renders ...Mounter) *Node
- func HTMLRtc(renders ...Mounter) *Node
- func HTMLRuby(renders ...Mounter) *Node
- func HTMLRubyParenthesis(renders ...Mounter) *Node
- func HTMLRubyText(renders ...Mounter) *Node
- func HTMLSample(renders ...Mounter) *Node
- func HTMLScript(renders ...Mounter) *Node
- func HTMLSection(renders ...Mounter) *Node
- func HTMLSelect(renders ...Mounter) *Node
- func HTMLSlot(renders ...Mounter) *Node
- func HTMLSmall(renders ...Mounter) *Node
- func HTMLSource(renders ...Mounter) *Node
- func HTMLSpan(renders ...Mounter) *Node
- func HTMLStrikethrough(renders ...Mounter) *Node
- func HTMLStrong(renders ...Mounter) *Node
- func HTMLStyle(renders ...Mounter) *Node
- func HTMLSubscript(renders ...Mounter) *Node
- func HTMLSummary(renders ...Mounter) *Node
- func HTMLSuperscript(renders ...Mounter) *Node
- func HTMLTable(renders ...Mounter) *Node
- func HTMLTableBody(renders ...Mounter) *Node
- func HTMLTableData(renders ...Mounter) *Node
- func HTMLTableFoot(renders ...Mounter) *Node
- func HTMLTableHead(renders ...Mounter) *Node
- func HTMLTableHeader(renders ...Mounter) *Node
- func HTMLTableRow(renders ...Mounter) *Node
- func HTMLTemplate(renders ...Mounter) *Node
- func HTMLTextArea(renders ...Mounter) *Node
- func HTMLTime(renders ...Mounter) *Node
- func HTMLTitle(renders ...Mounter) *Node
- func HTMLTrack(renders ...Mounter) *Node
- func HTMLUnderline(renders ...Mounter) *Node
- func HTMLUnorderedList(renders ...Mounter) *Node
- func HTMLVariable(renders ...Mounter) *Node
- func HTMLVideo(renders ...Mounter) *Node
- func HTMLWordBreakOpportunity(renders ...Mounter) *Node
- func NewNode(nt NodeType, tagName string) *Node
- func ParseAndFirst(markup string) *Node
- func ParseTemplate(markup string, binding interface{}) *Node
- func ParseTree(markup string) *Node
- func Replicate(renders ...Mounter) *Node
- func SVGAnchor(renders ...Mounter) *Node
- func SVGAnimate(renders ...Mounter) *Node
- func SVGAnimateMotion(renders ...Mounter) *Node
- func SVGAnimateTransform(renders ...Mounter) *Node
- func SVGCircle(renders ...Mounter) *Node
- func SVGClipPath(renders ...Mounter) *Node
- func SVGColorProfile(renders ...Mounter) *Node
- func SVGDefs(renders ...Mounter) *Node
- func SVGDesc(renders ...Mounter) *Node
- func SVGDiscard(renders ...Mounter) *Node
- func SVGEllipse(renders ...Mounter) *Node
- func SVGFeBlend(renders ...Mounter) *Node
- func SVGFeColorMatrix(renders ...Mounter) *Node
- func SVGFeComponentTransfer(renders ...Mounter) *Node
- func SVGFeComposite(renders ...Mounter) *Node
- func SVGFeConvolveMatrix(renders ...Mounter) *Node
- func SVGFeDiffuseLighting(renders ...Mounter) *Node
- func SVGFeDisplacementMap(renders ...Mounter) *Node
- func SVGFeDistantLight(renders ...Mounter) *Node
- func SVGFeDropShadow(renders ...Mounter) *Node
- func SVGFeFlood(renders ...Mounter) *Node
- func SVGFeFuncA(renders ...Mounter) *Node
- func SVGFeFuncB(renders ...Mounter) *Node
- func SVGFeFuncG(renders ...Mounter) *Node
- func SVGFeFuncR(renders ...Mounter) *Node
- func SVGFeGaussianBlur(renders ...Mounter) *Node
- func SVGFeImage(renders ...Mounter) *Node
- func SVGFeMerge(renders ...Mounter) *Node
- func SVGFeMergeNode(renders ...Mounter) *Node
- func SVGFeMorphology(renders ...Mounter) *Node
- func SVGFeOffset(renders ...Mounter) *Node
- func SVGFePointLight(renders ...Mounter) *Node
- func SVGFeSpecularLighting(renders ...Mounter) *Node
- func SVGFeSpotLight(renders ...Mounter) *Node
- func SVGFeTile(renders ...Mounter) *Node
- func SVGFeTurbulence(renders ...Mounter) *Node
- func SVGFilter(renders ...Mounter) *Node
- func SVGForeignObject(renders ...Mounter) *Node
- func SVGGroup(renders ...Mounter) *Node
- func SVGHatch(renders ...Mounter) *Node
- func SVGHatchpath(renders ...Mounter) *Node
- func SVGImage(renders ...Mounter) *Node
- func SVGLine(renders ...Mounter) *Node
- func SVGLinearGradient(renders ...Mounter) *Node
- func SVGMarker(renders ...Mounter) *Node
- func SVGMask(renders ...Mounter) *Node
- func SVGMesh(renders ...Mounter) *Node
- func SVGMeshgradient(renders ...Mounter) *Node
- func SVGMeshpatch(renders ...Mounter) *Node
- func SVGMeshrow(renders ...Mounter) *Node
- func SVGMetadata(renders ...Mounter) *Node
- func SVGMpath(renders ...Mounter) *Node
- func SVGPath(renders ...Mounter) *Node
- func SVGPattern(renders ...Mounter) *Node
- func SVGPolygon(renders ...Mounter) *Node
- func SVGPolyline(renders ...Mounter) *Node
- func SVGRadialGradient(renders ...Mounter) *Node
- func SVGRect(renders ...Mounter) *Node
- func SVGScript(renders ...Mounter) *Node
- func SVGSet(renders ...Mounter) *Node
- func SVGSolidcolor(renders ...Mounter) *Node
- func SVGStop(renders ...Mounter) *Node
- func SVGStyle(renders ...Mounter) *Node
- func SVGSwitch(renders ...Mounter) *Node
- func SVGSymbol(renders ...Mounter) *Node
- func SVGText(renders ...Mounter) *Node
- func SVGTextPath(renders ...Mounter) *Node
- func SVGTitle(renders ...Mounter) *Node
- func SVGTspan(renders ...Mounter) *Node
- func SVGUnknown(renders ...Mounter) *Node
- func SVGUse(renders ...Mounter) *Node
- func SVGView(renders ...Mounter) *Node
- func Svg(renders ...Mounter) *Node
- func Text(text string) *Node
- func TextType(textType NodeType, name string, content Stringer) *Node
- func (n *Node) AppendChild(kid *Node)
- func (n *Node) Apply(fns ...NodeFn) *Node
- func (n *Node) Balance()
- func (n *Node) ChildCount() int
- func (n *Node) Clone(deepClone bool) *Node
- func (n *Node) EachChild(fn func(*Node, int) bool)
- func (n *Node) Err() error
- func (n *Node) FindRefNode(ref string) (*Node, error)
- func (n *Node) FirstChild() (*Node, error)
- func (n *Node) FromJSONNode(jsonNode JSONNode) error
- func (n *Node) Get(index int) (*Node, error)
- func (n *Node) GetChangeStream() []JSONNode
- func (n *Node) ID() string
- func (n *Node) LastChild() (*Node, error)
- func (n *Node) Match(other *Node) bool
- func (n *Node) Mount(parent *Node)
- func (n *Node) Name() string
- func (n *Node) NextSibling() (*Node, error)
- func (n *Node) NodeAttr() NodeAttr
- func (n *Node) Parent() *Node
- func (n *Node) PreviousSibling() (*Node, error)
- func (n *Node) Reconcile(old *Node) bool
- func (n *Node) ReconcileStream(old *Node) []JSONNode
- func (n *Node) RefID() string
- func (n *Node) RefTree() string
- func (n *Node) Remove() error
- func (n *Node) Render(data interface{}) (*Node, error)
- func (n *Node) RenderHTML(w io.Writer, indented bool) error
- func (n *Node) RenderHTMLDiff(w io.Writer, indented bool) error
- func (n *Node) RenderHTMLTo(content io.Writer, indented bool, renderRemoved bool) error
- func (n *Node) RenderJSONNode() JSONNode
- func (n *Node) RenderShallowHTML(build io.Writer, indented bool) error
- func (n *Node) RenderShallowJSONNode() JSONNode
- func (n *Node) ResetNode()
- func (n *Node) ResetTree(doNode func(*Node))
- func (n *Node) SetAtid(id string)
- func (n *Node) SetErr(err error)
- func (n *Node) SetPrefix(route string)
- func (n *Node) SetTid(id string)
- func (n *Node) SwapAll(m *Node) error
- func (n *Node) SwapNode(m *Node) error
- func (n *Node) Text() string
- func (n *Node) Type() NodeType
- type NodeAttr
- type NodeAttrList
- type NodeEncoder
- type NodeFn
- type NodeHashList
- type NodeList
- type NodeType
- type Nodes
- type ReconcileNotifier
- type Selector
- type StringAttr
- func Alt(text string) StringAttr
- func Autofocus(autofocus bool) StringAttr
- func Checked(checked bool) StringAttr
- func Disabled(disabled bool) StringAttr
- func For(id string) StringAttr
- func Href(url string) StringAttr
- func ID(id string) StringAttr
- func Name(name string) StringAttr
- func NamespaceAttr(v string) StringAttr
- func NewStringAttr(n string, v string) StringAttr
- func Placeholder(text string) StringAttr
- func Src(url string) StringAttr
- func Type(t InputType) StringAttr
- func Value(v string) StringAttr
- func (s StringAttr) Clone() Attr
- func (s StringAttr) Contains(other string) bool
- func (s StringAttr) EncodeAttr(encoder AttrEncoder) error
- func (s StringAttr) EncodeObject(enc npkg.ObjectEncoder)
- func (s StringAttr) Key() string
- func (s StringAttr) Match(other Attr) bool
- func (s StringAttr) Mount(parent *Node)
- func (s StringAttr) Text() string
- func (s StringAttr) Value() interface{}
- type StringListAttr
- func (s *StringListAttr) Add(item string)
- func (s StringListAttr) Clone() Attr
- func (s StringListAttr) Contains(other string) bool
- func (s StringListAttr) EncodeAttr(encoder AttrEncoder) error
- func (s StringListAttr) EncodeObject(enc npkg.ObjectEncoder)
- func (s StringListAttr) Key() string
- func (s StringListAttr) Match(other Attr) bool
- func (s StringListAttr) Mount(parent *Node)
- func (s StringListAttr) Text() string
- func (s StringListAttr) Value() interface{}
- type Stringer
- type TextContent
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidNodeType = nerror.New("invalid node type, unsupported") ErrNotFound = errors.New("not found") )
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 ¶
MakeHTMLSpace returns a text containing '&nsbp;' the provided number 'count' times.
func ParseTemplateInto ¶
ParseTemplateInto parses the provided string has a template which is processed with the provided binding and passed into the root.
func ParseToRoot ¶
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) 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) MatchAttrs ¶
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 ¶
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.
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 ¶
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.
type IdAttr ¶
type IdAttr string
IdAttr represent a Id attribute that sets the Id of a giving node.
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.
type IndexUpdated ¶
type IndexUpdated int
IndexUpdated defines a int type which is used to represent a index update.
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 (*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 ¶
IntAttr implements the Attr interface for a string key-value pair.
func NewIntAttr ¶
NewIntAttr returns a new instance of a IntAttr.
func (IntAttr) Contains ¶
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.
type IterableAttr ¶
IterableAttr defines an interface that exposes a method to iterate through all possible attribute values or value.
type JSONEvent ¶
func AbortEvent ¶
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 ¶
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 ¶
AfterScriptExecuteEvent provides DOM Event representation for the Event "AfterScriptExecute".
A script has been executed. https://developer.mozilla.org/docs/Web/Events/afterscriptexecute
func AlertActiveEvent ¶
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 ¶
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 ¶
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 ¶
AnimationEndEvent provides DOM Event representation for the Event "AnimationEnd".
A CSS animation has completed. https://developer.mozilla.org/docs/Web/Events/animationend
func AnimationIterationEvent ¶
AnimationIterationEvent provides DOM Event representation for the Event "AnimationIteration".
A CSS animation is repeated. https://developer.mozilla.org/docs/Web/Events/animationiteration
func AnimationStartEvent ¶
AnimationStartEvent provides DOM Event representation for the Event "AnimationStart".
A CSS animation has started. https://developer.mozilla.org/docs/Web/Events/animationstart
func AnimationcancelEvent ¶
AnimationcancelEvent provides DOM Event representation for the Event "animationcancel".
A CSS animation has aborted. https://developer.mozilla.org/docs/Web/Events/animationcancel
func ApplicationInstalledEvent ¶
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 ¶
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 ¶
AudioProcessEvent provides DOM Event representation for the Event "AudioProcess".
(no documentation) https://developer.mozilla.org/docs/Web/Events/audioprocess
func AudioStartEvent ¶
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 ¶
AuxclickEvent provides DOM Event representation for the Event "auxclick".
(no documentation) https://developer.mozilla.org/docs/Web/Events/auxclick
func BeforePrintEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
BeginEventEvent provides DOM Event representation for the Event "beginEvent".
A SMIL animation element begins. https://developer.mozilla.org/docs/Web/Events/beginEvent
func BlockedEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
CfstatechangeEvent provides DOM Event representation for the Event "cfstatechange".
The call forwarding state changes. https://developer.mozilla.org/docs/Web/Events/cfstatechange
func ChangeEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
CommandEvent provides DOM Event representation for the Event "command".
An element has been activated. https://developer.mozilla.org/docs/Web/Events/command
func CommandupdateEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
DisconnectedEvent provides DOM Event representation for the Event "disconnected".
A call has been disconnected. https://developer.mozilla.org/docs/Web/Events/disconnected
func DisconnectingEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
EndEventEvent provides DOM Event representation for the Event "endEvent".
A SMIL animation element ends. https://developer.mozilla.org/docs/Web/Events/endEvent
func EndedEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GamepadConnectedEvent provides DOM Event representation for the Event "GamepadConnected".
A gamepad has been connected. https://developer.mozilla.org/docs/Web/Events/gamepadconnected
func GamepadDisconnectedEvent ¶
GamepadDisconnectedEvent provides DOM Event representation for the Event "GamepadDisconnected".
A gamepad has been disconnected. https://developer.mozilla.org/docs/Web/Events/gamepaddisconnected
func GotPointerCaptureEvent ¶
GotPointerCaptureEvent provides DOM Event representation for the Event "GotPointerCapture".
Element receives pointer capture. https://developer.mozilla.org/docs/Web/Events/gotpointercapture
func HashChangeEvent ¶
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 ¶
HeldEvent provides DOM Event representation for the Event "held".
A call has been held. https://developer.mozilla.org/docs/Web/Events/held
func HoldingEvent ¶
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 ¶
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 ¶
IccinfochangeEvent provides DOM Event representation for the Event "iccinfochange".
The MozMobileConnection.iccInfo object changes. https://developer.mozilla.org/docs/Web/Events/iccinfochange
func IncomingEvent ¶
IncomingEvent provides DOM Event representation for the Event "incoming".
A call is being received. https://developer.mozilla.org/docs/Web/Events/incoming
func InputEvent ¶
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 ¶
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 ¶
KeyDownEvent provides DOM Event representation for the Event "KeyDown".
A key is pressed down. https://developer.mozilla.org/docs/Web/Events/keydown
func KeyPressEvent ¶
KeyPressEvent provides DOM Event representation for the Event "KeyPress".
(no documentation) https://developer.mozilla.org/docs/Web/Events/keypress
func KeyUpEvent ¶
KeyUpEvent provides DOM Event representation for the Event "KeyUp".
A key is released. https://developer.mozilla.org/docs/Web/Events/keyup
func LanguageChangeEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
LoadStartEvent provides DOM Event representation for the Event "LoadStart".
Progress has begun. https://developer.mozilla.org/docs/Web/Events/loadstart
func LoadedDataEvent ¶
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 ¶
LoadedMetadataEvent provides DOM Event representation for the Event "LoadedMetadata".
The metadata has been loaded. https://developer.mozilla.org/docs/Web/Events/loadedmetadata
func LocalizedEvent ¶
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 ¶
LostPointerCaptureEvent provides DOM Event representation for the Event "LostPointerCapture".
Element lost pointer capture. https://developer.mozilla.org/docs/Web/Events/lostpointercapture
func MSManipulationStateChangedEvent ¶
MSManipulationStateChangedEvent provides DOM Event representation for the Event "MSManipulationStateChanged".
(no documentation) https://developer.mozilla.org/docs/Web/Events/MSManipulationStateChanged
func MarkEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
MozAfterPaintEvent provides DOM Event representation for the Event "MozAfterPaint".
Content has been repainted. https://developer.mozilla.org/docs/Web/Reference/Events/MozAfterPaint
func MozAudioAvailableEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
MozGamepadButtonUpEvent provides DOM Event representation for the Event "MozGamepadButtonUp".
A gamepad button is released. https://developer.mozilla.org/docs/Web/Events/MozGamepadButtonUp
func MozMagnifyGestureEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
MsContentZoomEvent provides DOM Event representation for the Event "msContentZoom".
(no documentation) https://developer.mozilla.org/docs/Web/Events/msContentZoom
func NewJSONEvent ¶
func NoMatchEvent ¶
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 ¶
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 ¶
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 ¶
OnconnectedEvent provides DOM Event representation for the Event "onconnected".
A call has been connected. https://developer.mozilla.org/docs/DOM/onconnected
func OnlineEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
PlayEvent provides DOM Event representation for the Event "play".
Playback has begun. https://developer.mozilla.org/docs/Web/Events/play
func PlayingEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
PointerMoveEvent provides DOM Event representation for the Event "PointerMove".
The pointer changed coordinates. https://developer.mozilla.org/docs/Web/Events/pointermove
func PointerOutEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
ProgressEvent provides DOM Event representation for the Event "progress".
In progress. https://developer.mozilla.org/docs/Web/Events/progress
func PushEvent ¶
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 ¶
PushSubscriptionChangeEvent provides DOM Event representation for the Event "PushSubscriptionChange".
A PushSubscription has expired. https://developer.mozilla.org/docs/Web/Events/pushsubscriptionchange
func RadioStateChangeEvent ¶
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 ¶
RateChangeEvent provides DOM Event representation for the Event "RateChange".
The playback rate has changed. https://developer.mozilla.org/docs/Web/Events/ratechange
func ReadyStateChangeEvent ¶
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 ¶
ReceivedEvent provides DOM Event representation for the Event "received".
An SMS has been received. https://developer.mozilla.org/docs/Web/Events/received
func RepeatEventEvent ¶
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 ¶
ResetEvent provides DOM Event representation for the Event "reset".
A form is reset. https://developer.mozilla.org/docs/Web/Events/reset
func ResizeEvent ¶
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 ¶
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 ¶
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 ¶
ResumeEvent provides DOM Event representation for the Event "resume".
A paused utterance is resumed. https://developer.mozilla.org/docs/Web/Events/resume
func ResumingEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
SeekedEvent provides DOM Event representation for the Event "seeked".
A seek operation completed. https://developer.mozilla.org/docs/Web/Events/seeked
func SeekingEvent ¶
SeekingEvent provides DOM Event representation for the Event "seeking".
A seek operation began. https://developer.mozilla.org/docs/Web/Events/seeking
func SelectEvent ¶
SelectEvent provides DOM Event representation for the Event "select".
Some text is being selected. https://developer.mozilla.org/docs/Web/Events/select
func SelectStartEvent ¶
SelectStartEvent provides DOM Event representation for the Event "SelectStart".
A selection just started. https://developer.mozilla.org/docs/Web/Events/selectstart
func SelectionChangeEvent ¶
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 ¶
SentEvent provides DOM Event representation for the Event "sent".
An SMS has been sent. https://developer.mozilla.org/docs/Web/Events/sent
func ShowEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
SubmitEvent provides DOM Event representation for the Event "submit".
A form is submitted. https://developer.mozilla.org/docs/Web/Events/submit
func SuccessEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
TimeoutEvent provides DOM Event representation for the Event "timeout".
(no documentation) https://developer.mozilla.org/docs/Web/Events/timeout
func TouchCancelEvent ¶
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 ¶
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 ¶
TouchEnterEvent provides DOM Event representation for the Event "TouchEnter".
(no documentation) https://developer.mozilla.org/docs/Web/Events/touchenter
func TouchLeaveEvent ¶
TouchLeaveEvent provides DOM Event representation for the Event "TouchLeave".
(no documentation) https://developer.mozilla.org/docs/Web/Events/touchleave
func TouchMoveEvent ¶
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 ¶
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 ¶
TransitionEndEvent provides DOM Event representation for the Event "TransitionEnd".
A CSS transition has completed. https://developer.mozilla.org/docs/Web/Events/transitionend
func TransitioncancelEvent ¶
TransitioncancelEvent provides DOM Event representation for the Event "transitioncancel".
(no documentation) https://developer.mozilla.org/docs/Web/Events/transitioncancel
func TransitionrunEvent ¶
TransitionrunEvent provides DOM Event representation for the Event "transitionrun".
(no documentation) https://developer.mozilla.org/docs/Web/Events/transitionrun
func TransitionstartEvent ¶
TransitionstartEvent provides DOM Event representation for the Event "transitionstart".
(no documentation) https://developer.mozilla.org/docs/Web/Events/transitionstart
func UnderflowEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
VRDisplayPresentChangeEvent provides DOM Event representation for the Event "VRDisplayPresentChange".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaypresentchange
func ValueChangeEvent ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
VolumeChangeEvent provides DOM Event representation for the Event "VolumeChange".
The volume has changed. https://developer.mozilla.org/docs/Web/Events/volumechange
func VrdisplayactivateEvent ¶
VrdisplayactivateEvent provides DOM Event representation for the Event "vrdisplayactivate".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayactivate
func VrdisplayblurEvent ¶
VrdisplayblurEvent provides DOM Event representation for the Event "vrdisplayblur".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayblur
func VrdisplayconnectEvent ¶
VrdisplayconnectEvent provides DOM Event representation for the Event "vrdisplayconnect".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayconnect
func VrdisplaydeactivateEvent ¶
VrdisplaydeactivateEvent provides DOM Event representation for the Event "vrdisplaydeactivate".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaydeactivate
func VrdisplaydisconnectEvent ¶
VrdisplaydisconnectEvent provides DOM Event representation for the Event "vrdisplaydisconnect".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplaydisconnect
func VrdisplayfocusEvent ¶
VrdisplayfocusEvent provides DOM Event representation for the Event "vrdisplayfocus".
(no documentation) https://developer.mozilla.org/docs/Web/Events/vrdisplayfocus
func WaitingEvent ¶
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 ¶
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
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 Matchable ¶
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 ¶
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 Document ¶
Document returns the document node type which has no parent and should be the start position of all nodes.
func Element ¶
Element returns a element node type which can be added into a parent or use as a base for other nodes.
func HTMLAbbreviation ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
HTMLDoc returns the document node type which has no parent and should be the start position of all nodes.
func HTMLEmbed ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
ParseAndFirst expects the markup provided to only have one root element which will be returned.
func ParseTemplate ¶
ParseTemplate parses the provided string has a template which is processed with the provided binding.
func ParseTree ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 TextType ¶
TextType returns a element node type which can be added into a parent or use as a base for other nodes.
func (*Node) AppendChild ¶
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) 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 ¶
ChildCount returns the current total count of kids.
func (*Node) Clone ¶
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) FindRefNode ¶
FindRefNode walks through provided ref node paths till the last node is found.
func (*Node) FirstChild ¶
FirstChild returns first child of giving node if any, else returns an error.
func (*Node) FromJSONNode ¶
func (*Node) Get ¶
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 (*Node) Match ¶
Match returns true/false if provided node matches this node exactly in type, name and attributes.
func (*Node) Mount ¶
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) NextSibling ¶
NextSibling returns a node that is next to this giving node in it's parent's list.
func (*Node) PreviousSibling ¶
PreviousSibling returns a node that is previous to this giving node in it's parent's list.
func (*Node) Reconcile ¶
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 ¶
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) RefTree ¶
RefTree returns the tree path for giving node by collecting the parents ID till this node.
func (*Node) RenderHTML ¶
RenderHTML renders giving Nodes using a html markup syntax format.
Underneath it calls Node.RenderHTMLTo (See comments for method).
func (*Node) RenderHTMLDiff ¶
RenderHTMLDiff renders giving Nodes using a html markup syntax format.
Underneath it calls Node.RenderHTMLTo (See comments for method).
func (*Node) RenderHTMLTo ¶
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 (*Node) RenderShallowHTML ¶
RenderShallowHTML renders as HTML giving node tag alone without rendering children.
func (*Node) RenderShallowJSONNode ¶
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 ¶
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) SwapAll ¶
SwapAll swaps provided node with myself within parent list, the swapped node replaces me and my children nodes list.
func (*Node) SwapNode ¶
SwapNode swaps provided node with myself within parent's list. The swapped node takes over my children node list.
type NodeAttrList ¶
type NodeAttrList struct {
// contains filtered or unexported fields
}
NodeAttrList implements the a set list for Nodes using their Node.RefID() value as unique keys.
func (*NodeAttrList) Add ¶
func (na *NodeAttrList) Add(n *Node)
Add adds giving node into giving list if it has giving attribute value.
func (*NodeAttrList) Count ¶
func (na *NodeAttrList) Count() int
Count returns the total content count of map
func (*NodeAttrList) Remove ¶
func (na *NodeAttrList) Remove(n *Node)
Remove removes giving node into giving list if it has giving attribute value.
func (*NodeAttrList) Reset ¶
func (na *NodeAttrList) Reset()
Reset resets the internal hashmap used for storing nodes. There by removing all registered nodes.
type NodeEncoder ¶
type NodeEncoder interface { AttrEncodable EncodeChild(Nodes) error EncodeName(string) error }
NodeEncoder exposes method which provide means of encoding a giving node which is a combination of a name, attributes and child nodes.
type NodeHashList ¶
type NodeHashList struct {
// contains filtered or unexported fields
}
NodeHashList implements the a set list for Nodes using their Node.RefID() value as unique keys.
func (*NodeHashList) Add ¶
func (na *NodeHashList) Add(n *Node)
Add adds giving node into giving list if it has giving attribute value.
func (*NodeHashList) Count ¶
func (na *NodeHashList) Count() int
Count returns the total content count of map
func (*NodeHashList) Remove ¶
func (na *NodeHashList) Remove(n *Node)
Remove removes giving node into giving list if it has giving attribute value.
func (*NodeHashList) Reset ¶
func (na *NodeHashList) Reset()
Reset resets the internal hashmap used for storing nodes. There by removing all registered nodes.
type NodeList ¶
type NodeList []*Node
NodeList defines a type for slice of nodes, implementing the Mounter interface.
type NodeType ¶
type NodeType int
NodeType defines a giving type of node.
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 ¶
A Selector is a function which tells whether a node matches or not.
func MustQuery ¶
MustQuery returns a new selector based on provided matching string. If there is an error in compiling the text then it panics.
func Query ¶
Query parses a selector and returns, if successful, a Selector object that can be used to match against Node objects.
func (Selector) MatchAll ¶
MatchAll returns a slice of the nodes that match the selector, from n and its children.
func (Selector) MatchFirst ¶
MatchFirst returns the first node that matches s, from n and its children.
type StringAttr ¶
StringAttr implements the Attr interface for a string key-value pair.
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 (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 ¶
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.