Attribute driven event delegation