Maybe this is a bug. Assigning string to DOM event handler