the interfaces found within this section are not mandatory. the first goal is the design of a generic event system which allows registration of event handlers, describes event flow through a tree structure, and provides basic contextual information for each event. the second goal of the event model is to provide a common subset of the current event systems used in dom level 0 browsers. see also dom events for details.