We only should be exposing event handler attributes to elements and documents.
Created attachment 31629 [details] patch