Breaking changes in upcoming v0.5 #56
stroiman
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
TLDR;
Element
methodsClick
,Auxclick
andContextmenu
will be removed in v0.5 in favor ofHTMLElement.click()
.Auxclick
andContextmenu
are not planned, as no such method exist in the DOM (shout out if you use them).To trigger a click from Go code may require a type assertion going forward, as
GetElementById()
orQuerySelector(...)
return anElement
notHTMLElement
.Version 0.4 generate event "factory" functions from web specifications. This ensures correct
Event
subclass in JS, and correct bubbling/cancel behaviour. This generated the corresponding methods, but that was a mistake, revealed when adding focus behaviour.click
,focus
, andblur
are defined onHTMLElement
, notElement
.focus
could potentially result in 4 distinct events,blur
,focusout
,focus
, andfocusin
from two different targets, andclick
could result in focus change.Beta Was this translation helpful? Give feedback.
All reactions