Implement basic inline event handler support.

Fixes #1238.