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;
ElementmethodsClick,AuxclickandContextmenuwill be removed in v0.5 in favor ofHTMLElement.click().AuxclickandContextmenuare 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 anElementnotHTMLElement.Version 0.4 generate event "factory" functions from web specifications. This ensures correct
Eventsubclass in JS, and correct bubbling/cancel behaviour. This generated the corresponding methods, but that was a mistake, revealed when adding focus behaviour.click,focus, andblurare defined onHTMLElement, notElement.focuscould potentially result in 4 distinct events,blur,focusout,focus, andfocusinfrom two different targets, andclickcould result in focus change.Beta Was this translation helpful? Give feedback.
All reactions