Pleasing the DOM event handling