Model inline event handlers as relations.