Skip to content

Arbitrary 'on*' handlers #11

@daurnimator

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions