Skip to content

Arbitrary 'on*' handlers #11

Description

@daurnimator

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'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions