Two symptoms:
To investigate after I disentangle myself from my current mess.
Hope that mess isn't too bad @domenic. That being said...
In the snuggsi web components library we do the following convention:
<foo-bar onclick=onbaz></foo-bar>
<script>
Element `foo-bar`
(class extends HTMLElement {
onbaz (event)
{ console.log (this, 'is the `<foo-bar>` element') }
})
</script>
We basically traverse the custom element's children looking for attributes within GlobalEventHandlers
and "register" the class method of the exact same name. Afterwards then .bind
ing handler to the custom element _(or explicitly registered .childNode
as in the example above)_. Attempting to stick with tried and true classic event registration. _(Amazed no frameworks have really nailed this. Was a simple algo actually)_
Will this effect us at all? Or is this irrelevant to GlobalEventHandlers
. We use jsdom for testing (of course). Also does this hint a phasing out in the html spec?
Seems to me that would be throwing out 馃嵓 馃懚 with 馃泙 馃毧 .
Thanks in advance for the heads up!
/cc @brandondees
@snuggs I don't think it would affect you folks, it's just that the order of execution between listeners specified through the attribute and listeners registered through JS is fairly nuanced, and we haven't quite gotten it fully correct.
Copy that @TimothyGu thanks for the swift response! Always love following you guys' work. 馃檹
Most helpful comment
@snuggs I don't think it would affect you folks, it's just that the order of execution between listeners specified through the attribute and listeners registered through JS is fairly nuanced, and we haven't quite gotten it fully correct.