Can we support any on* handlers on any element?
- Use a namespaced attribute in html to know that it's lua? e.g.
<button lua:onclick="foo()">
- Use a mutation observer to watch for adding/removal of the
:on* properties
- Would mean that at load time we have to iterate every element to check for attributes: is that too expensive?
- The query selector
[attr^=val] is for the value starting with 'val', not attribute names starting with 'val'.
Can we support any
on*handlers on any element?<button lua:onclick="foo()">:on*properties[attr^=val]is for the value starting with 'val', not attribute names starting with 'val'.