Use :on for state attribute with event matcher.

Fixes issue #4.